File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -253,8 +253,8 @@ def pattern(self, format):
253
253
# format directives (%m, etc.).
254
254
regex_chars = re_compile (r"([\\.^$*+?\(\){}\[\]|])" )
255
255
format = regex_chars .sub (r"\\\1" , format )
256
- whitespace_replacement = re_compile ('\s+' )
257
- format = whitespace_replacement .sub (' \s+' , format )
256
+ whitespace_replacement = re_compile (r '\s+' )
257
+ format = whitespace_replacement .sub (r'\ \s+' , format )
258
258
while '%' in format :
259
259
directive_index = format .index ('%' )+ 1
260
260
processed_format = "%s%s%s" % (processed_format ,
Original file line number Diff line number Diff line change @@ -915,7 +915,7 @@ def addgroup(index):
915
915
if c in ASCIILETTERS :
916
916
import warnings
917
917
warnings .warn ('bad escape %s' % this ,
918
- DeprecationWarning , stacklevel = 5 )
918
+ DeprecationWarning , stacklevel = 4 )
919
919
lappend (this )
920
920
else :
921
921
lappend (this )
You can’t perform that action at this time.
0 commit comments