~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/util/_bencode_py.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-12-03 05:08:05 UTC
  • mfrom: (4854.1.1 merge-2.0-into-devel)
  • Revision ID: pqm@pqm.ubuntu.com-20091203050805-s70sybyrsrbbs10c
(andrew) Merge lp:bzr/2.0 into lp:bzr.

Show diffs side-by-side

added added

removed removed

Lines of Context:
154
154
        encode_int(int(x), r)
155
155
    encode_func[BooleanType] = encode_bool
156
156
 
 
157
from bzrlib._static_tuple_py import StaticTuple
 
158
encode_func[StaticTuple] = encode_list
 
159
try:
 
160
    from bzrlib._static_tuple_c import StaticTuple
 
161
except ImportError:
 
162
    pass
 
163
else:
 
164
    encode_func[StaticTuple] = encode_list
 
165
 
157
166
 
158
167
def bencode(x):
159
168
    r = []