Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 195404f commit 0ca0c64Copy full SHA for 0ca0c64
1 file changed
Lib/difflib.py
@@ -1367,8 +1367,8 @@ def record_sub_info(match_object,sub_info=sub_info):
1367
text = lines.pop(0)[2:]
1368
# if line of text is just a newline, insert a space so there is
1369
# something for the user to highlight and see.
1370
- if len(text) <= 1:
1371
- text = ' '+text
+ if not text:
+ text = ' '
1372
# insert marks that won't be noticed by an xml/html escaper.
1373
text = '\0' + format_key + text + '\1'
1374
# Return line of text, first allow user's line formatter to do it's
0 commit comments