global name 'GetRandomNumber_DeprecationWarning' is not defined

Bug #620253 reported by Janne Snabb
28
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Python-Crypto
Fix Released
Undecided
Unassigned

Bug Description

It appears that pycrypto 2.2 introduced a problem:

          File "/usr/local/lib/python2.6/site-packages/Crypto/Util/number.py", line 65, in getRandomNumber
            GetRandomNumber_DeprecationWarning)
        exceptions.NameError: global name 'GetRandomNumber_DeprecationWarning' is not defined

The attached patch works for me.

Revision history for this message
Janne Snabb (snabb) wrote :
Revision history for this message
Janne Snabb (snabb) wrote :

Someone else has encountered this as well, this is the only thing when I googled around for this:

http://bpaste.net/show/8839/

Revision history for this message
Darsey Litzenberger (dlitz) wrote :
Changed in pycrypto:
status: New → Fix Committed
Revision history for this message
Darsey Litzenberger (dlitz) wrote :

This bug has been fixed in PyCrypto 2.3. Thanks!

Changed in pycrypto:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.