Rev 4850: we need to support the non-extension StaticTuple type. in http://bazaar.launchpad.net/~jameinel/bzr/2.1.0b4-490600-no-extensions

John Arbash Meinel john at arbash-meinel.com
Tue Dec 1 19:44:15 GMT 2009


At http://bazaar.launchpad.net/~jameinel/bzr/2.1.0b4-490600-no-extensions

------------------------------------------------------------
revno: 4850
revision-id: john at arbash-meinel.com-20091201194412-k99flbryjf2c24hi
parent: john at arbash-meinel.com-20091201160314-kw90ls7dhrpsnilw
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: 2.1.0b4-490600-no-extensions
timestamp: Tue 2009-12-01 13:44:12 -0600
message:
  we need to support the non-extension StaticTuple type.
-------------- next part --------------
=== modified file 'bzrlib/util/_bencode_py.py'
--- a/bzrlib/util/_bencode_py.py	2009-10-13 14:36:50 +0000
+++ b/bzrlib/util/_bencode_py.py	2009-12-01 19:44:12 +0000
@@ -154,6 +154,8 @@
         encode_int(int(x), r)
     encode_func[BooleanType] = encode_bool
 
+from bzrlib._static_tuple_py import StaticTuple
+encode_func[StaticTuple] = encode_list
 try:
     from bzrlib._static_tuple_c import StaticTuple
 except ImportError:



More information about the bazaar-commits mailing list