mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	#665194: fix variable name in exception code path.
It was correct in the original patch and I foobared it when I restructured part of the code.
This commit is contained in:
		
							parent
							
								
									b8687df653
								
							
						
					
					
						commit
						097a1208bc
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -401,7 +401,7 @@ def localtime(dt=None, isdst=-1):
 | 
				
			||||||
    except AttributeError:
 | 
					    except AttributeError:
 | 
				
			||||||
        # Compute UTC offset and compare with the value implied by tm_isdst.
 | 
					        # Compute UTC offset and compare with the value implied by tm_isdst.
 | 
				
			||||||
        # If the values match, use the zone name implied by tm_isdst.
 | 
					        # If the values match, use the zone name implied by tm_isdst.
 | 
				
			||||||
        delta = dt - datetime.datetime(*time.gmtime(ts)[:6])
 | 
					        delta = dt - datetime.datetime(*time.gmtime(seconds)[:6])
 | 
				
			||||||
        dst = time.daylight and localtm.tm_isdst > 0
 | 
					        dst = time.daylight and localtm.tm_isdst > 0
 | 
				
			||||||
        gmtoff = -(time.altzone if dst else time.timezone)
 | 
					        gmtoff = -(time.altzone if dst else time.timezone)
 | 
				
			||||||
        if delta == datetime.timedelta(seconds=gmtoff):
 | 
					        if delta == datetime.timedelta(seconds=gmtoff):
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue