File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -4340,7 +4340,7 @@ def remove_code_comment_markers(s):
43404340 Return ``s`` removing code comments such as C and C++ style comment markers and assimilated
43414341
43424342 >>> remove_code_comment_markers(r"\\ *#%; /\\ /*a*/b/*c\\ d#e%f \\ *#%; /")
4343- 'a b c\\ d e f'
4343+ 'a b c\\ \ d e f'
43444344 """
43454345 return (s
43464346 .replace ('/*' , ' ' )
Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ def starts_or_ends_with_digit(s):
147147 True
148148 """
149149 # first and last character (works even if the string is empty)
150- return s and (s [:1 ].isdigit () or s [- 1 :].isdigit ())
150+ return bool ( s and (s [:1 ].isdigit () or s [- 1 :].isdigit () ))
151151
152152
153153def get_demarkuped_text (text , splitter , keeper ):
You can’t perform that action at this time.
0 commit comments