don't use OrderedDict

This commit is contained in:
j 2016-08-30 11:16:02 +02:00
parent 4b3a449e82
commit 06e95b816a

View file

@ -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()