[pypy-commit] pypy default: we no longer have lib_pypy/binascii.py to get the crc32_tab from. Fish it from module/binascii instead, even if it's suboptimal because rlib should not import from pypy.module :-(

antocuni noreply at buildbot.pypy.org
Thu Mar 22 17:32:04 CET 2012


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: 
Changeset: r53914:82854a176b6c
Date: 2012-03-22 17:14 +0100
http://bitbucket.org/pypy/pypy/changeset/82854a176b6c/

Log:	we no longer have lib_pypy/binascii.py to get the crc32_tab from.
	Fish it from module/binascii instead, even if it's suboptimal
	because rlib should not import from pypy.module :-(

diff --git a/pypy/rlib/rzipfile.py b/pypy/rlib/rzipfile.py
--- a/pypy/rlib/rzipfile.py
+++ b/pypy/rlib/rzipfile.py
@@ -12,8 +12,7 @@
     rzlib = None
 
 # XXX hack to get crc32 to work
-from pypy.tool.lib_pypy import import_from_lib_pypy
-crc_32_tab = import_from_lib_pypy('binascii').crc_32_tab
+from pypy.module.binascii.interp_crc32 import crc_32_tab
 
 rcrc_32_tab = [r_uint(i) for i in crc_32_tab]
 


More information about the pypy-commit mailing list