Skip to content

Commit 1a88955

Browse files
authored
Update tpy.py
1 parent 2d98673 commit 1a88955

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

true/tpy.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
try: code = open(sys.argv[1]).read()
33
except: print(f"Usage: python {__file__.split(chr(0x5c))[-1]} \"(file name)\"");exit()
44
p = 0; ts = []; s = []
5+
if not code : code=" "
56
while 1:
67
if code[p] == '"' :
78
p+=1;s.append(code[p : code.index('"', p)])
@@ -16,4 +17,4 @@
1617
elif code[p] == ":" : s.append(s[-1])
1718
if code[p] == "\n" : break
1819
if len(code) == p +1 : p = -1
19-
p += 1
20+
p += 1

0 commit comments

Comments
 (0)