mirror of
				https://github.com/psycopg/psycopg2.git
				synced 2025-10-30 23:37:29 +03:00 
			
		
		
		
	Remove __nonzero__ method
				
					
				
			This commit is contained in:
		
							parent
							
								
									07c83ef8bb
								
							
						
					
					
						commit
						3e7bb8d1aa
					
				|  | @ -143,10 +143,6 @@ class Range: | |||
|     def __bool__(self): | ||||
|         return self._bounds is not None | ||||
| 
 | ||||
|     def __nonzero__(self): | ||||
|         # Python 2 compatibility | ||||
|         return type(self).__bool__(self) | ||||
| 
 | ||||
|     def __eq__(self, other): | ||||
|         if not isinstance(other, Range): | ||||
|             return False | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user