[pywin32-checkins] pywin32/win32/Lib win32timezone.py, 1.9.2.7, 1.9.2.8
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2009-01-03 04:49:42
|
Update of /cvsroot/pywin32/pywin32/win32/Lib In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv7835/win32/Lib Modified Files: Tag: py3k win32timezone.py Log Message: reflect recent 2to3 fixes Index: win32timezone.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/Lib/win32timezone.py,v retrieving revision 1.9.2.7 retrieving revision 1.9.2.8 diff -C2 -d -r1.9.2.7 -r1.9.2.8 *** win32timezone.py 6 Dec 2008 01:48:26 -0000 1.9.2.7 --- win32timezone.py 3 Jan 2009 04:49:36 -0000 1.9.2.8 *************** *** 232,236 **** tzRegKeyPath = os.path.join(self.tzRegKey, timeZoneName) try: ! key = winreg.OpenKeyEx(_winreg.HKEY_LOCAL_MACHINE, tzRegKeyPath) except: raise ValueError('Timezone Name %s not found.' % timeZoneName) --- 232,236 ---- tzRegKeyPath = os.path.join(self.tzRegKey, timeZoneName) try: ! key = winreg.OpenKeyEx(winreg.HKEY_LOCAL_MACHINE, tzRegKeyPath) except: raise ValueError('Timezone Name %s not found.' % timeZoneName) *************** *** 347,351 **** def _get_time_zone_key(subkey=None): "Return the registry key that stores time zone details" ! key = winreg.OpenKeyEx(_winreg.HKEY_LOCAL_MACHINE, TimeZoneInfo.tzRegKey) if subkey: key = winreg.OpenKeyEx(key, subkey) --- 347,351 ---- def _get_time_zone_key(subkey=None): "Return the registry key that stores time zone details" ! key = winreg.OpenKeyEx(winreg.HKEY_LOCAL_MACHINE, TimeZoneInfo.tzRegKey) if subkey: key = winreg.OpenKeyEx(key, subkey) *************** *** 455,459 **** """ tzRegKey = r'SYSTEM\CurrentControlSet\Control\TimeZoneInformation' ! key = winreg.OpenKeyEx(_winreg.HKEY_LOCAL_MACHINE, tzRegKey) local = _RegKeyDict(key) # if the user has not checked "Automatically adjust clock for daylight --- 455,459 ---- """ tzRegKey = r'SYSTEM\CurrentControlSet\Control\TimeZoneInformation' ! key = winreg.OpenKeyEx(winreg.HKEY_LOCAL_MACHINE, tzRegKey) local = _RegKeyDict(key) # if the user has not checked "Automatically adjust clock for daylight |