setup: fix bug (wrong import) in error message, as noticed by pyflakes

This commit is contained in:
Zooko O'Whielacronx 2009-05-19 12:56:42 -07:00
parent 18be10ceeb
commit a664c1699f
1 changed files with 2 additions and 2 deletions

View File

@ -47,8 +47,8 @@ def require_python_2_with_working_base64():
# make sure we have a working base64.b32decode. The one in # make sure we have a working base64.b32decode. The one in
# python2.4.[01] was broken. # python2.4.[01] was broken.
nodeid_b32 = 't5g7egomnnktbpydbuijt6zgtmw4oqi5' nodeid_b32 = 't5g7egomnnktbpydbuijt6zgtmw4oqi5'
from base64 import b32decode import base64
nodeid = b32decode(nodeid_b32.upper()) nodeid = base64.b32decode(nodeid_b32.upper())
if nodeid != "\x9fM\xf2\x19\xcckU0\xbf\x03\r\x10\x99\xfb&\x9b-\xc7A\x1d": if nodeid != "\x9fM\xf2\x19\xcckU0\xbf\x03\r\x10\x99\xfb&\x9b-\xc7A\x1d":
raise NotImplementedError("There is a bug in this base64 module: %r. This was a known issue in Python v2.4.0 and v2.4.1 (http://bugs.python.org/issue1171487 ). Tahoe-LAFS current requires Python v2.4.2 or greater (but less than v3). The current Python version is %r" % (base64, sys.version_info,)) raise NotImplementedError("There is a bug in this base64 module: %r. This was a known issue in Python v2.4.0 and v2.4.1 (http://bugs.python.org/issue1171487 ). Tahoe-LAFS current requires Python v2.4.2 or greater (but less than v3). The current Python version is %r" % (base64, sys.version_info,))