/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

  • Committer: Andrew Bennetts
  • Date: 2009-01-29 01:36:51 UTC
  • mto: This revision was merged to the branch mainline in revision 3971.
  • Revision ID: andrew.bennetts@canonical.com-20090129013651-qbt3lnl9i7jm89a3
Tweaks prompted by John's review.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
13
13
# The above copyright notice and this permission notice shall be
14
14
# included in all copies or substantial portions of the Software.
15
 
16
 
# The Software is provided "AS IS", without warranty of any kind,
17
 
# express or implied, including but not limited to the warranties of
18
 
# merchantability,  fitness for a particular purpose and
19
 
# noninfringement. In no event shall the  authors or copyright holders
20
 
# be liable for any claim, damages or other liability, whether in an
21
 
# action of contract, tort or otherwise, arising from, out of or in
22
 
# connection with the Software or the use or other dealings in the
23
 
# Software.
 
15
#
 
16
# Modifications copyright (C) 2008 Canonical Ltd
24
17
 
25
18
class BDecoder(object):
26
19
 
106
99
bdecode = _decoder.bdecode
107
100
 
108
101
_tuple_decoder = BDecoder(True)
109
 
bdecode_tuple = _tuple_decoder.bdecode
 
102
bdecode_as_tuple = _tuple_decoder.bdecode
110
103
 
111
104
 
112
105
from types import StringType, IntType, LongType, DictType, ListType, TupleType