This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author torrin
Recipients torrin
Date 2014-07-02.15:38:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1404315532.22.0.153511853972.issue21906@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-07-02 15:38:52torrinsetrecipients: + torrin
2014-07-02 15:38:52torrinsetmessageid: <1404315532.22.0.153511853972.issue21906@psf.upfronthosting.co.za>
2014-07-02 15:38:52torrinlinkissue21906 messages
2014-07-02 15:38:51torrincreate