mirror of
				https://github.com/psycopg/psycopg2.git
				synced 2025-11-04 01:37:31 +03:00 
			
		
		
		
	More idiomatic way to call FixedOffsetTimezone.__new__ superclass
This commit is contained in:
		
							parent
							
								
									e4a07c3a30
								
							
						
					
					
						commit
						790843a48a
					
				| 
						 | 
					@ -63,7 +63,7 @@ class FixedOffsetTimezone(datetime.tzinfo):
 | 
				
			||||||
        try:
 | 
					        try:
 | 
				
			||||||
            return cls._cache[key]
 | 
					            return cls._cache[key]
 | 
				
			||||||
        except KeyError:
 | 
					        except KeyError:
 | 
				
			||||||
            tz = datetime.tzinfo.__new__(cls, offset, name)
 | 
					            tz = super(FixedOffsetTimezone, cls).__new__(cls, offset, name)
 | 
				
			||||||
            cls._cache[key] = tz
 | 
					            cls._cache[key] = tz
 | 
				
			||||||
            return tz
 | 
					            return tz
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user