Skip to content

Commit 5772095

Browse files
committed
Fixed with an older method that should work in python 2.x and 3.x
1 parent 530a3bd commit 5772095

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lia.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def cacheProcess(queueData,ruleList, importAccount, outputFile, cacheFileSRC, pr
9595

9696
def manualAddProcess(importAccount, outputFile, dateFormat, ruleList= False, orderList= ["description", "date", "amount"], promptColor= False):
9797
"""CLI sequence for manually adding entries"""
98-
head, *tail = orderList
98+
head, tail = orderList[0], orderList[1:]
9999
userInput = getUserInput("Enter in transaction " + head + ": ", promptColor= promptColor)
100100
lineData = {}
101101
while userInput:

tests.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def test_setSecondAccounts():
8080

8181
def test_headTail():
8282
l = [1,2,3]
83-
head, *tail = l
83+
head, tail = l[0], l[1:]
8484
return(head == 1 and tail == [2,3])
8585

8686

0 commit comments

Comments
 (0)