Merge pull request #3808 from OlegHahm/sniffer_python_version_check

dist: sniffer: fix python version check
This commit is contained in:
Martine Lenders 2015-09-10 00:36:11 +02:00
commit 683efb647e

View File

@ -127,7 +127,7 @@ def main(argv):
sys.stderr.write('trying to open file %s\n' % argv[4]) sys.stderr.write('trying to open file %s\n' % argv[4])
outfile = open(argv[4], 'w+b') outfile = open(argv[4], 'w+b')
except IndexError: except IndexError:
if sys.version > (3,): if sys.version_info > (3,):
outfile = sys.stdout.buffer outfile = sys.stdout.buffer
else: else:
outfile = sys.stdout outfile = sys.stdout