bep40 commited on
Commit
7cd2273
·
verified ·
1 Parent(s): 1010c85

Upload size_test2.py

Browse files
Files changed (1) hide show
  1. size_test2.py +9 -0
size_test2.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ # a longer script with backslashes and quotes to test escaping round-trip
3
+ lines = []
4
+ for i in range(2000):
5
+ lines.append('print("line %d with \\\\ backslash and \' quote" % i)' % i)
6
+ lines.append('x = "path\\\\to\\\\file"')
7
+ lines.append('y = "a\\"b"')
8
+ lines.append('print("done", x, y)')
9
+ print("\n".join(lines))