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 5166add commit d38f469Copy full SHA for d38f469
nibabel/cmdline/diff.py
@@ -309,11 +309,11 @@ def display_diff(files, diff):
309
item_str = str(item)
310
# Value might start/end with some invisible spacing characters so we
311
# would "condition" it on both ends a bit
312
- item_str = re.sub('^[ \t]+', '<', item_str)
313
- item_str = re.sub('[ \t]+$', '>', item_str)
+ item_str = re.sub(r'^[ \t]+', '<', item_str)
+ item_str = re.sub(r'[ \t]+$', '>', item_str)
314
# and also replace some other invisible symbols with a question
315
# mark
316
- item_str = re.sub('[\x00]', '?', item_str)
+ item_str = re.sub(r'[\x00]', '?', item_str)
317
output += value_width.format(item_str)
318
319
output += '\n'
0 commit comments