Depending on how your interpreter runs, the re.match calls can generate warnings like:
DeprecationWarning: invalid escape sequence '\d'
"""elif re.match("^\d+(\.\d+)?$", self.data) and re.match(".*[hsmdyY]", format_str) and not re.match("""
This PR just ensures the calls to re.match are also raw string literals (like the calls to re.sub).
Thanks!
Depending on how your interpreter runs, the
re.match
calls can generate warnings like:This PR just ensures the calls to
re.match
are also raw string literals (like the calls tore.sub
). Thanks!