summaryrefslogtreecommitdiff
path: root/tests/root/special/code.py
diff options
context:
space:
mode:
authorDmitry Shachnev <mitya57@gmail.com>2014-01-19 14:17:10 +0400
committerDmitry Shachnev <mitya57@gmail.com>2014-01-19 14:17:10 +0400
commitce2185ce279664e54ba22b14663091abc5a3a8f2 (patch)
tree97b00b55be0e28a73399acc0f80e21e6a4e24b28 /tests/root/special/code.py
parentfa9695dbe0b090eb9907647b7a8d1c20210efa5b (diff)
downloadsphinx-git-ce2185ce279664e54ba22b14663091abc5a3a8f2.tar.gz
Modernize the code now that Python 2.5 is no longer supported
- Use print function instead of print statement; - Use new exception handling; - Use in operator instead of has_key(); - Do not use tuple arguments in functions; - Other miscellaneous improvements. This is based on output of `futurize --stage1`, with some manual corrections.
Diffstat (limited to 'tests/root/special/code.py')
-rw-r--r--tests/root/special/code.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/root/special/code.py b/tests/root/special/code.py
index 70c48d2e7..b7934b231 100644
--- a/tests/root/special/code.py
+++ b/tests/root/special/code.py
@@ -1,2 +1,2 @@
-print "line 1"
-print "line 2"
+print("line 1")
+print("line 2")