don't use OrderedDict
This commit is contained in:
parent
4b3a449e82
commit
06e95b816a
1 changed files with 1 additions and 3 deletions
|
@ -3,8 +3,6 @@
|
|||
# bencode.py python3 compatable bencode / bdecode
|
||||
#
|
||||
##
|
||||
from collections import OrderedDict
|
||||
|
||||
|
||||
class Decoder(object):
|
||||
|
||||
|
@ -54,7 +52,7 @@ class Decoder(object):
|
|||
decode dict from bytearray
|
||||
return dict
|
||||
"""
|
||||
d = OrderedDict()
|
||||
d = {}
|
||||
self.idx += 1
|
||||
while self.data[self.idx] != ord(b'e'):
|
||||
k = self._decode_str()
|
||||
|
|
Loading…
Reference in a new issue