/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: Ian Clatworthy
  • Date: 2009-06-10 10:50:17 UTC
  • mfrom: (4426 +trunk)
  • mto: (4837.1.1 faster-log)
  • mto: This revision was merged to the branch mainline in revision 4844.
  • Revision ID: ian.clatworthy@canonical.com-20090610105017-f0xtw9m3hbrw098k
merge bzr.dev r4426

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
        return (r, f + 1)
87
87
 
88
88
    def bdecode(self, x):
 
89
        if type(x) != str:
 
90
            raise TypeError
89
91
        try:
90
92
            r, l = self.decode_func[x[0]](x, 0)
91
93
        except (IndexError, KeyError):