Rev 4779: Use the relative import of '_static_tuple_c.pxd' to handle old pyrex versions. in http://bazaar.launchpad.net/~jameinel/bzr/2.1-static-tuple-btree-string-intern
John Arbash Meinel
john at arbash-meinel.com
Thu Oct 15 19:28:28 BST 2009
At http://bazaar.launchpad.net/~jameinel/bzr/2.1-static-tuple-btree-string-intern
------------------------------------------------------------
revno: 4779
revision-id: john at arbash-meinel.com-20091015182814-nmkoljsluq9uyzkd
parent: john at arbash-meinel.com-20091015181844-ame1y9yxta689ojp
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: 2.1-static-tuple-btree-string-intern
timestamp: Thu 2009-10-15 13:28:14 -0500
message:
Use the relative import of '_static_tuple_c.pxd' to handle old pyrex versions.
-------------- next part --------------
=== modified file 'bzrlib/_bencode_pyx.pyx'
--- a/bzrlib/_bencode_pyx.pyx 2009-10-13 14:36:50 +0000
+++ b/bzrlib/_bencode_pyx.pyx 2009-10-15 18:28:14 +0000
@@ -58,7 +58,9 @@
void D_UPDATE_TAIL(Decoder, int n)
void E_UPDATE_TAIL(Encoder, int n)
-from bzrlib._static_tuple_c cimport StaticTuple, StaticTuple_CheckExact, \
+# To maintain compatibility with older versions of pyrex, we have to use the
+# relative import here, rather than 'bzrlib._static_tuple_c'
+from _static_tuple_c cimport StaticTuple, StaticTuple_CheckExact, \
import_static_tuple_c
import_static_tuple_c()
More information about the bazaar-commits
mailing list