mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 05:04:11 +03:00
more graceful fix related to the last commit
This commit is contained in:
parent
402c623119
commit
48ac9911c0
|
@ -467,10 +467,9 @@ class OrderedSet(MutableSet):
|
|||
return len(self) == len(other) and list(self) == list(other)
|
||||
return set(self) == set(other)
|
||||
|
||||
# causing "Exception TypeError: TypeError('list indices must be integers, not NoneType',)"
|
||||
# in garbage collection phase
|
||||
#def __del__(self):
|
||||
#self.clear() # remove circular references
|
||||
def __del__(self):
|
||||
if all([KEY, PREV, NEXT]):
|
||||
self.clear() # remove circular references
|
||||
|
||||
if __name__ == '__main__':
|
||||
print(OrderedSet('abracadaba'))
|
||||
|
|
|
@ -76,9 +76,8 @@ class OrderedSet(MutableSet):
|
|||
return len(self) == len(other) and list(self) == list(other)
|
||||
return set(self) == set(other)
|
||||
|
||||
# causing "Exception TypeError: TypeError('list indices must be integers, not NoneType',)"
|
||||
# in garbage collection phase
|
||||
#def __del__(self):
|
||||
#self.clear() # remove circular references
|
||||
def __del__(self):
|
||||
if all([KEY, PREV, NEXT]):
|
||||
self.clear() # remove circular references
|
||||
|
||||
oset = OrderedSet
|
||||
|
|
Loading…
Reference in New Issue
Block a user