Submitter | Yuya Nishihara |
---|---|
Date | Sept. 28, 2014, 2:17 p.m. |
Message ID | <62ea66130006851da197.1411913836@mimosa> |
Download | mbox | patch |
Permalink | /patch/5996/ |
State | Superseded |
Headers | show |
Comments
Patch
diff --git a/tests/heredoctest.py b/tests/heredoctest.py --- a/tests/heredoctest.py +++ b/tests/heredoctest.py @@ -1,7 +1,6 @@ import sys globalvars = {} -localvars = {} lines = sys.stdin.readlines() while lines: l = lines.pop(0) @@ -14,6 +13,6 @@ while lines: snippet += "\n" + l[4:] c = compile(snippet, '<heredoc>', 'single') try: - exec c in globalvars, localvars + exec c in globalvars except Exception, inst: print repr(inst)