standardize date handler's internal argument names, for easier comparisons

svn: r22667
This commit is contained in:
Paul Franklin 2013-07-09 01:31:56 +00:00
parent 9058a04bc1
commit 59d225108c

View File

@ -216,15 +216,15 @@ class DateParserSR(DateParser):
# match Day.Month.Year. # match Day.Month.Year.
self._numeric = re.compile("((\d+)[/\. ])?\s*((\d+)[/\.])?\s*(\d+)\.?$") self._numeric = re.compile("((\d+)[/\. ])?\s*((\d+)[/\.])?\s*(\d+)\.?$")
_span1 = ['od', 'од'] _span_1 = ['od', 'од']
_span2 = ['do', 'до'] _span_2 = ['do', 'до']
_range1 = ['između', 'између'] _range_1 = ['između', 'између']
_range2 = ['i', 'и'] _range_2 = ['i', 'и']
self._span = re.compile("(%s)\s+(?P<start>.+)\s+(%s)\s+(?P<stop>.+)" % self._span = re.compile("(%s)\s+(?P<start>.+)\s+(%s)\s+(?P<stop>.+)" %
('|'.join(_span1),'|'.join(_span2)), ('|'.join(_span_1),'|'.join(_span_2)),
re.IGNORECASE) re.IGNORECASE)
self._range = re.compile("(%s)\s+(?P<start>.+)\s+(%s)\s+(?P<stop>.+)" % self._range = re.compile("(%s)\s+(?P<start>.+)\s+(%s)\s+(?P<stop>.+)" %
('|'.join(_range1),'|'.join(_range2)), ('|'.join(_range_1),'|'.join(_range_2)),
re.IGNORECASE) re.IGNORECASE)
#------------------------------------------------------------------------- #-------------------------------------------------------------------------