/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: John Arbash Meinel
  • Date: 2009-10-27 03:39:16 UTC
  • mto: This revision was merged to the branch mainline in revision 4772.
  • Revision ID: john@arbash-meinel.com-20091027033916-ol3lz84kd2ts9h5b
Don't allow extra attributes on the pure-python StaticTuple.

Should save some memory as well.

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
157
try:
160
158
    from bzrlib._static_tuple_c import StaticTuple
161
159
except ImportError: