Skip to content

Commit 79fc8ee

Browse files
committed
Fix copyright doctests
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
1 parent 55b9717 commit 79fc8ee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/cluecode/copyrights.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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('/*', ' ')

src/textcode/markup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

153153
def get_demarkuped_text(text, splitter, keeper):

0 commit comments

Comments
 (0)