Fix #5732 (python function terminated unexpectedly redefinition of group name 'w' as group 4; was group 3)

This commit is contained in:
Kovid Goyal 2010-06-11 22:13:19 -06:00
parent a10091170b
commit fa5b55b084

View File

@ -31,7 +31,7 @@ class SafeLocalTimeZone(tzlocal):
def compute_locale_info_for_parse_date(): def compute_locale_info_for_parse_date():
try: try:
dt = datetime.strptime('1/5/2000', "%x") dt = datetime.strptime('1/5/2000', "%x")
except ValueError: except:
try: try:
dt = datetime.strptime('1/5/01', '%x') dt = datetime.strptime('1/5/01', '%x')
except: except: