Skip to content

Commit 084f715

Browse files
committed
Merge pull request pandas-dev#11798 from embray/fix-python3.5-deprecation-warning
Fix import-time DeprecationWarning on Python 3.5
2 parents b1caf01 + 4d7e315 commit 084f715

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tslib.pyx

+2-2
Original file line numberDiff line numberDiff line change
@@ -4773,8 +4773,8 @@ class TimeRE(dict):
47734773
# format directives (%m, etc.).
47744774
regex_chars = re_compile(r"([\\.^$*+?\(\){}\[\]|])")
47754775
format = regex_chars.sub(r"\\\1", format)
4776-
whitespace_replacement = re_compile('\s+')
4777-
format = whitespace_replacement.sub('\s+', format)
4776+
whitespace_replacement = re_compile(r'\s+')
4777+
format = whitespace_replacement.sub(r'\\s+', format)
47784778
while '%' in format:
47794779
directive_index = format.index('%')+1
47804780
processed_format = "%s%s%s" % (processed_format,

0 commit comments

Comments
 (0)