add missing closing paren from commit 16636
svn: r16637
This commit is contained in:
parent
a19e65073c
commit
4a67b6fdaa
@ -585,7 +585,7 @@ class DateParser(object):
|
|||||||
match = self._calny_iso.match(text)
|
match = self._calny_iso.match(text)
|
||||||
if match:
|
if match:
|
||||||
cal = self.calendar_to_int[match.group(2).lower()]
|
cal = self.calendar_to_int[match.group(2).lower()]
|
||||||
newyear = tuple(map(int, match.group(3).split("-"))
|
newyear = tuple(map(int, match.group(3).split("-")))
|
||||||
text = match.group(1) + match.group(4)
|
text = match.group(1) + match.group(4)
|
||||||
return (text, cal, newyear)
|
return (text, cal, newyear)
|
||||||
|
|
||||||
@ -602,7 +602,7 @@ class DateParser(object):
|
|||||||
else:
|
else:
|
||||||
match = self._ny_iso.match(text)
|
match = self._ny_iso.match(text)
|
||||||
if match:
|
if match:
|
||||||
newyear = tuple(map(int, match.group(2).split("-"))
|
newyear = tuple(map(int, match.group(2).split("-")))
|
||||||
text = match.group(1) + match.group(3)
|
text = match.group(1) + match.group(3)
|
||||||
return (text, newyear)
|
return (text, newyear)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user