mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
minor fix
This commit is contained in:
parent
53065ee1fb
commit
402c623119
|
@ -467,8 +467,10 @@ class OrderedSet(MutableSet):
|
|||
return len(self) == len(other) and list(self) == list(other)
|
||||
return set(self) == set(other)
|
||||
|
||||
def __del__(self):
|
||||
self.clear() # remove circular references
|
||||
# causing "Exception TypeError: TypeError('list indices must be integers, not NoneType',)"
|
||||
# in garbage collection phase
|
||||
#def __del__(self):
|
||||
#self.clear() # remove circular references
|
||||
|
||||
if __name__ == '__main__':
|
||||
print(OrderedSet('abracadaba'))
|
||||
|
|
|
@ -76,7 +76,9 @@ class OrderedSet(MutableSet):
|
|||
return len(self) == len(other) and list(self) == list(other)
|
||||
return set(self) == set(other)
|
||||
|
||||
def __del__(self):
|
||||
self.clear() # remove circular references
|
||||
# causing "Exception TypeError: TypeError('list indices must be integers, not NoneType',)"
|
||||
# in garbage collection phase
|
||||
#def __del__(self):
|
||||
#self.clear() # remove circular references
|
||||
|
||||
oset = OrderedSet
|
||||
|
|
Loading…
Reference in New Issue
Block a user