Comment 12 for bug 158747

Revision history for this message
Cybjit (cybjit) wrote :

Something in 02_fix_python_warnings.dpatch broke torrent-checking.

With the patch I get this:

$ cfv -f XYZ.torrent
/usr/lib/pymodules/python2.6/BitTornado/__init__.py:8: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  from sha import sha
Traceback (most recent call last):
  File "/usr/bin/cfv", line 3, in <module>
    cfv.main()
  File "/usr/lib/pymodules/python2.6/cfv.py", line 2465, in main
    test(a, typename)
  File "/usr/lib/pymodules/python2.6/cfv.py", line 2125, in test
    cf.test_chksumfile(file, filename)
  File "/usr/lib/pymodules/python2.6/cfv.py", line 862, in test_chksumfile
    self.do_test_chksumfile(file)
  File "/usr/lib/pymodules/python2.6/cfv.py", line 1533, in do_test_chksumfile
    sh = sha.sha()
AttributeError: 'builtin_function_or_method' object has no attribute 'sha'

Without it, it works.