~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/util/_bencode_py.py

  • Committer: Andrew Bennetts
  • Date: 2009-07-08 07:03:38 UTC
  • mto: This revision was merged to the branch mainline in revision 4523.
  • Revision ID: andrew.bennetts@canonical.com-20090708070338-70crapsdixamosuf
Fix bug in HPSS v3 decoder when receiving multiple lots of excess bytes.

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
 
 
166
157
 
167
158
def bencode(x):
168
159
    r = []