mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-11-04 09:57:38 +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 len(self) == len(other) and list(self) == list(other)
 | 
				
			||||||
        return set(self) == set(other)
 | 
					        return set(self) == set(other)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # causing "Exception TypeError: TypeError('list indices must be integers, not NoneType',)"
 | 
					    def __del__(self):
 | 
				
			||||||
    # in garbage collection phase
 | 
					        if all([KEY, PREV, NEXT]):
 | 
				
			||||||
    #def __del__(self):
 | 
					            self.clear()                    # remove circular references
 | 
				
			||||||
        #self.clear()                    # remove circular references
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
if __name__ == '__main__':
 | 
					if __name__ == '__main__':
 | 
				
			||||||
    print(OrderedSet('abracadaba'))
 | 
					    print(OrderedSet('abracadaba'))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -76,9 +76,8 @@ class OrderedSet(MutableSet):
 | 
				
			||||||
            return len(self) == len(other) and list(self) == list(other)
 | 
					            return len(self) == len(other) and list(self) == list(other)
 | 
				
			||||||
        return set(self) == set(other)
 | 
					        return set(self) == set(other)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # causing "Exception TypeError: TypeError('list indices must be integers, not NoneType',)"
 | 
					    def __del__(self):
 | 
				
			||||||
    # in garbage collection phase
 | 
					        if all([KEY, PREV, NEXT]):
 | 
				
			||||||
    #def __del__(self):
 | 
					            self.clear()                    # remove circular references
 | 
				
			||||||
        #self.clear()                    # remove circular references
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
oset = OrderedSet
 | 
					oset = OrderedSet
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user