/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/util/_bencode_py.py

  • Committer: Neil Martinsen-Burrell
  • Date: 2009-11-23 15:29:24 UTC
  • mto: (4825.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 4826.
  • Revision ID: nmb@wartburg.edu-20091123152924-z2b9vjzv8z602ut2
fix broken link in User Guide

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
            raise TypeError
91
91
        try:
92
92
            r, l = self.decode_func[x[0]](x, 0)
93
 
        except (IndexError, KeyError, OverflowError), e:
94
 
            import sys
95
 
            raise ValueError, ValueError(str(e)), sys.exc_info()[2]
 
93
        except (IndexError, KeyError):
 
94
            raise ValueError
96
95
        if l != len(x):
97
96
            raise ValueError
98
97
        return r
155
154
        encode_int(int(x), r)
156
155
    encode_func[BooleanType] = encode_bool
157
156
 
158
 
from bzrlib._static_tuple_py import StaticTuple
159
 
encode_func[StaticTuple] = encode_list
160
157
try:
161
158
    from bzrlib._static_tuple_c import StaticTuple
162
159
except ImportError: