We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b1caf01 + 4d7e315 commit 084f715Copy full SHA for 084f715
pandas/tslib.pyx
@@ -4773,8 +4773,8 @@ class TimeRE(dict):
4773
# format directives (%m, etc.).
4774
regex_chars = re_compile(r"([\\.^$*+?\(\){}\[\]|])")
4775
format = regex_chars.sub(r"\\\1", format)
4776
- whitespace_replacement = re_compile('\s+')
4777
- format = whitespace_replacement.sub('\s+', format)
+ whitespace_replacement = re_compile(r'\s+')
+ format = whitespace_replacement.sub(r'\\s+', format)
4778
while '%' in format:
4779
directive_index = format.index('%')+1
4780
processed_format = "%s%s%s" % (processed_format,
0 commit comments