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):
4340
4340
Return ``s`` removing code comments such as C and C++ style comment markers and assimilated
4341
4341
4342
4342
>>> 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'
4344
4344
"""
4345
4345
return (s
4346
4346
.replace ('/*' , ' ' )
Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ def starts_or_ends_with_digit(s):
147
147
True
148
148
"""
149
149
# 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 () ))
151
151
152
152
153
153
def get_demarkuped_text (text , splitter , keeper ):
You can’t perform that action at this time.
0 commit comments