diff options
Diffstat (limited to 'tests/heredoctest.py')
-rw-r--r-- | tests/heredoctest.py | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/tests/heredoctest.py b/tests/heredoctest.py deleted file mode 100644 index 7508c18..0000000 --- a/tests/heredoctest.py +++ /dev/null @@ -1,19 +0,0 @@ -import sys - -globalvars = {} -localvars = {} -lines = sys.stdin.readlines() -while lines: - l = lines.pop(0) - if l.startswith('SALT'): - print l[:-1] - elif l.startswith('>>> '): - snippet = l[4:] - while lines and lines[0].startswith('... '): - l = lines.pop(0) - snippet += "\n" + l[4:] - c = compile(snippet, '<heredoc>', 'single') - try: - exec c in globalvars, localvars - except Exception, inst: - print repr(inst) |