/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 breezy/util/_bencode_py.py

  • Committer: Martin
  • Date: 2017-11-12 13:53:51 UTC
  • mto: This revision was merged to the branch mainline in revision 6810.
  • Revision ID: gzlist@googlemail.com-20171112135351-uyr1ncw7visg62c2
Apply 2to3 ws_comma fixer

Show diffs side-by-side

added added

removed removed

Lines of Context:
109
109
        self.bencoded = s
110
110
 
111
111
 
112
 
def encode_bencached(x,r):
 
112
def encode_bencached(x, r):
113
113
    r.append(x.bencoded)
114
114
 
115
 
def encode_bool(x,r):
 
115
def encode_bool(x, r):
116
116
    encode_int(int(x), r)
117
117
 
118
118
def encode_int(x, r):
127
127
        encode_func[type(i)](i, r)
128
128
    r.append(b'e')
129
129
 
130
 
def encode_dict(x,r):
 
130
def encode_dict(x, r):
131
131
    r.append(b'd')
132
132
    ilist = sorted(x.items())
133
133
    for k, v in ilist: