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