comparison roundup/date.py @ 5811:7d276bb8b46d

More invalid escape sequence fixes.
author John Rouillard <rouilj@ieee.org>
date Wed, 12 Jun 2019 21:32:46 -0400
parents 936275dfe1fa
children 69b1aaf9c51f
comparison
equal deleted inserted replaced
5810:5258e89e896a 5811:7d276bb8b46d
806 \s*(((?P<H>\d+):(?P<M>\d+))?(:(?P<S>\d+))?)? # time 806 \s*(((?P<H>\d+):(?P<M>\d+))?(:(?P<S>\d+))?)? # time
807 \s*(?P<D> 807 \s*(?P<D>
808 (\d\d\d\d[/-])?(\d\d?)?[/-](\d\d?)? # [yyyy-]mm-dd 808 (\d\d\d\d[/-])?(\d\d?)?[/-](\d\d?)? # [yyyy-]mm-dd
809 \.? # . 809 \.? # .
810 (\d?\d:\d\d)?(:\d\d)? # hh:mm:ss 810 (\d?\d:\d\d)?(:\d\d)? # hh:mm:ss
811 )?''', re.VERBOSE), serialised_re=re.compile(''' 811 )?''', re.VERBOSE), serialised_re=re.compile(r'''
812 (?P<s>[+-])?1?(?P<y>([ ]{3}\d|\d{4}))(?P<m>\d{2})(?P<d>\d{2}) 812 (?P<s>[+-])?1?(?P<y>([ ]{3}\d|\d{4}))(?P<m>\d{2})(?P<d>\d{2})
813 (?P<H>\d{2})(?P<M>\d{2})(?P<S>\d{2})''', re.VERBOSE), 813 (?P<H>\d{2})(?P<M>\d{2})(?P<S>\d{2})''', re.VERBOSE),
814 add_granularity=False): 814 add_granularity=False):
815 ''' set the date to the value in spec 815 ''' set the date to the value in spec
816 ''' 816 '''

Roundup Issue Tracker: http://roundup-tracker.org/