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 5427df2 commit f25a38eCopy full SHA for f25a38e
1 file changed
Lib/difflib.py
@@ -1410,7 +1410,7 @@ def record_sub_info(match_object,sub_info=sub_info):
1410
change_re.sub(record_sub_info,markers)
1411
# process each tuple inserting our special marks that won't be
1412
# noticed by an xml/html escaper.
1413
- for key,(begin,end) in sub_info[::-1]:
+ for key,(begin,end) in reversed(sub_info):
1414
text = text[0:begin]+'\0'+key+text[begin:end]+'\1'+text[end:]
1415
text = text[2:]
1416
# Handle case of add/delete entire line
0 commit comments