[stem/master] Minor python 3.x fixes for cache_manual.py

commit 399511fabf53d013d42a62c98dc418c752f62b63 Author: Damian Johnson <atagar@torproject.org> Date: Sat Dec 5 16:33:20 2015 -0800 Minor python 3.x fixes for cache_manual.py Oops, wrong print statements a couple places and missing suppression for a pyflakes false positive. --- cache_manual.py | 4 ++-- test/settings.cfg | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cache_manual.py b/cache_manual.py index eedb1ed..731fd7b 100755 --- a/cache_manual.py +++ b/cache_manual.py @@ -28,13 +28,13 @@ if __name__ == '__main__': man_log_page = urllib.urlopen(GITWEB_MAN_LOG).read() man_commit = re.search(MAN_LOG_LINK, man_log_page).group(1) except: - print "Unable to determine the latest commit to edit tor's man page: %s" % sys.exc_info()[1] + print("Unable to determine the latest commit to edit tor's man page: %s" % sys.exc_info()[1]) sys.exit(1) try: stem_commit = stem.util.system.call('git rev-parse HEAD')[0] except IOError as exc: - print "Unable to determine stem's current commit: %s" % exc + print("Unable to determine stem's current commit: %s" % exc) sys.exit(1) print('Latest tor commit editing man page: %s' % man_commit) diff --git a/test/settings.cfg b/test/settings.cfg index 6812a90..7443544 100644 --- a/test/settings.cfg +++ b/test/settings.cfg @@ -141,6 +141,7 @@ pyflakes.ignore stem/prereq.py => 'asn1' imported but unused pyflakes.ignore stem/prereq.py => 'unittest' imported but unused pyflakes.ignore stem/prereq.py => 'long_to_bytes' imported but unused pyflakes.ignore stem/interpreter/__init__.py => undefined name 'raw_input' +pyflakes.ignore stem/util/conf.py => undefined name 'unicode' pyflakes.ignore stem/util/test_tools.py => 'pyflakes' imported but unused pyflakes.ignore stem/util/test_tools.py => 'pep8' imported but unused pyflakes.ignore test/mocking.py => undefined name 'test'
participants (1)
-
atagar@torproject.org