diff options
author | teor <teor@torproject.org> | 2019-12-12 15:58:51 +1000 |
---|---|---|
committer | teor <teor@torproject.org> | 2019-12-12 15:58:51 +1000 |
commit | 1619f14a0420b0a57d65b9adeab8e8a4ef222b3a (patch) | |
tree | e58abb1dd7d9bae4d48ca00fb7b10b837d952a67 /scripts/test | |
parent | a38014e5c6fa7955e9af61b42eddb2bc9edc29a9 (diff) | |
download | tor-1619f14a0420b0a57d65b9adeab8e8a4ef222b3a.tar.gz tor-1619f14a0420b0a57d65b9adeab8e8a4ef222b3a.zip |
python: Add __future__ imports for python 3 compatibility
Except for src/ext, which we may not want to modify.
Closes ticket 32732.
Diffstat (limited to 'scripts/test')
-rw-r--r-- | scripts/test/appveyor-irc-notify.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/test/appveyor-irc-notify.py b/scripts/test/appveyor-irc-notify.py index cfe0afe7ae..598a68f47d 100644 --- a/scripts/test/appveyor-irc-notify.py +++ b/scripts/test/appveyor-irc-notify.py @@ -75,8 +75,10 @@ in Appveyor's YAML: - "python scripts/test/appveyor-irc-notify.py irc.oftc.net:6697 tor-ci failure """ +# Future imports for Python 2.7, mandatory in 3.0 +from __future__ import division from __future__ import print_function -from __future__ import absolute_import +from __future__ import unicode_literals import os import random |