[filter] correct '_regexp' attribut name in Duration

This commit is contained in:
Alexandre Morignot 2015-02-05 19:17:05 +01:00 committed by Romain Bignon
commit 7fc06dd16c

View file

@ -636,7 +636,7 @@ class Time(Filter):
class Duration(Time):
klass = datetime.timedelta
regexp = re.compile(r'((?P<hh>\d+)[:;])?(?P<mm>\d+)[;:](?P<ss>\d+)')
_regexp = re.compile(r'((?P<hh>\d+)[:;])?(?P<mm>\d+)[;:](?P<ss>\d+)')
kwargs = {'hours': 'hh', 'minutes': 'mm', 'seconds': 'ss'}