/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: Alexander Belchenko
  • Date: 2007-08-12 01:53:05 UTC
  • mto: (4398.5.1 bencode_serializer)
  • mto: This revision was merged to the branch mainline in revision 4410.
  • Revision ID: bialix@ukr.net-20070812015305-1wzsgzrf8p7jtv6j
pyrex bencode (without benchmarks)

Show diffs side-by-side

added added

removed removed

Lines of Context:
133
133
 
134
134
try:
135
135
    from types import BooleanType
136
 
    encode_func[BooleanType] = encode_int
 
136
    encode_func[BooleanType] = lambda x,r: encode_int(int(x),r)
137
137
except ImportError:
138
138
    pass
139
139