[New-bugs-announce] [issue21906] Tools\Scripts\md5sum.py doesn't work in Python 3.4.1 on Windows 7 64bit.
Torrin
report at bugs.python.org
Wed Jul 2 17:38:52 CEST 2014
New submission from Torrin:
md5sum.py uses at least 1 undefined object in Python 3.4.1. I only tried this on Windows. I have no idea if it is a problem on any other OS.
C:\>C:\Python27\python.exe --version
Python 2.7.6
C:\>C:\Python34\python.exe --version
Python 3.4.1
C:\>C:\Python34\python.exe C:\Python34\Tools\Scripts\md5sum.py C:\Python34\python.exe
Traceback (most recent call last):
File "C:\Python34\Tools\Scripts\md5sum.py", line 90, in <module>
sys.exit(main(sys.argv[1:], sys.stdout))
File "C:\Python34\Tools\Scripts\md5sum.py", line 87, in main
return sum(args, out)
File "C:\Python34\Tools\Scripts\md5sum.py", line 27, in sum
if files and isinstance(files[-1], file):
NameError: name 'file' is not defined
Here is why . . .
C:\>C:\Python27\python.exe -c "print(file)"
<type 'file'>
C:\>C:\Python34\python.exe -c "print(file)"
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'file' is not defined
So "file" is defined in 2.7.6 but not in 3.4.1.
----------
components: Demos and Tools
messages: 222109
nosy: torrin
priority: normal
severity: normal
status: open
title: Tools\Scripts\md5sum.py doesn't work in Python 3.4.1 on Windows 7 64bit.
versions: Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21906>
_______________________________________
More information about the New-bugs-announce
mailing list