Skip to content

Commit be72dd0

Browse files
committed
Fix: String can't be repeated & minor fix
1 parent 9f93262 commit be72dd0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

piduck.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def pharse_p1(line):
3333
elif command[0] == "REPEAT":
3434
try:
3535
for i in range(int(command[1])):
36-
pharse_p2(last_line.strip(), [[], []], False)
36+
pharse_p1(last_line)
3737
except RecursionError:
3838
eprint("RecursionError!")
3939
exit(4)
@@ -104,7 +104,6 @@ def out(ccl):
104104

105105

106106
def main():
107-
global last_line
108107
if piargs.input is not None:
109108
file1 = open(piargs.input, "r")
110109
while True:

0 commit comments

Comments
 (0)