We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d98673 commit 1a88955Copy full SHA for 1a88955
true/tpy.py
@@ -2,6 +2,7 @@
2
try: code = open(sys.argv[1]).read()
3
except: print(f"Usage: python {__file__.split(chr(0x5c))[-1]} \"(file name)\"");exit()
4
p = 0; ts = []; s = []
5
+if not code : code=" "
6
while 1:
7
if code[p] == '"' :
8
p+=1;s.append(code[p : code.index('"', p)])
@@ -16,4 +17,4 @@
16
17
elif code[p] == ":" : s.append(s[-1])
18
if code[p] == "\n" : break
19
if len(code) == p +1 : p = -1
- p += 1
20
+ p += 1
0 commit comments