summaryrefslogtreecommitdiff
path: root/sphinx/pycode/pgen2/literals.py
diff options
context:
space:
mode:
authorDmitry Shachnev <mitya57@gmail.com>2014-01-22 18:34:51 +0400
committerDmitry Shachnev <mitya57@gmail.com>2014-01-22 18:34:51 +0400
commit953b33d3f721e58ab48490d33c141df1e4dd25c1 (patch)
tree26bce4c2ef75b4ebe8422685d8962aa07978bad2 /sphinx/pycode/pgen2/literals.py
parent317930a7fbd49b50fb8a144161a698fcafeab91a (diff)
parent5f13479408785818ee8b85d4172314ea5578fde3 (diff)
downloadsphinx-git-953b33d3f721e58ab48490d33c141df1e4dd25c1.tar.gz
Merge
Diffstat (limited to 'sphinx/pycode/pgen2/literals.py')
-rw-r--r--sphinx/pycode/pgen2/literals.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sphinx/pycode/pgen2/literals.py b/sphinx/pycode/pgen2/literals.py
index d48937028..ce4a0ebc3 100644
--- a/sphinx/pycode/pgen2/literals.py
+++ b/sphinx/pycode/pgen2/literals.py
@@ -4,6 +4,7 @@
# Extended to handle raw and unicode literals by Georg Brandl.
"""Safely evaluate Python string literals without using eval()."""
+from __future__ import print_function
import re
@@ -89,7 +90,7 @@ def test():
s = repr(c)
e = evalString(s)
if e != c:
- print i, c, s, e
+ print(i, c, s, e)
if __name__ == "__main__":