@@ -502,9 +502,9 @@ class Pyrediff:
502
502
_add_del_re = re.compile(r"^(\d+a\d+(,\d+)?|\d+(,\d+)?d\d+)$")
503
503
_change_re = re.compile(r"^\d+(,\d+)?c\d+(,\d+)?$")
504
504
_group_re = re.compile(r"\\g<([^>]+)>")
505
- if sys.version_info < (3,3):
505
+ if sys.version_info < (3, 3):
506
506
_escape_re = re.compile(r"\\([-\s!\"#&%,/:;<=>@_`' \' ' ~])")
507
- elif sys.version_info < (3,7):
507
+ elif sys.version_info < (3, 7):
508
508
# 3.3 .. 3.6 doesn' \' ' t escape "_"
509
509
_escape_re = re.compile(r"\\([-\s!\"#&%,/:;<=>@`' \' ' ~])")
510
510
else:
@@ -646,7 +646,8 @@ be replaced with a previously captured value before the pattern is applied.
646
646
else:
647
647
# pylint: disable=bad-option-value,consider-using-with
648
648
pipe = subprocess.Popen(
649
- ["diff", args[0], args[1]], stdout=subprocess.PIPE
649
+ ["diff", args[0], args[1]],
650
+ stdout=subprocess.PIPE,
650
651
)
651
652
if sys.version_info < (3, 0):
652
653
pout = pipe.stdout
@@ -3118,9 +3119,9 @@ class Pyrediff:
3118
3119
_add_del_re = re.compile(r"^(\d+a\d+(,\d+)?|\d+(,\d+)?d\d+)$")
3119
3120
_change_re = re.compile(r"^\d+(,\d+)?c\d+(,\d+)?$")
3120
3121
_group_re = re.compile(r"\\g<([^>]+)>")
3121
- if sys.version_info < (3,3):
3122
+ if sys.version_info < (3, 3):
3122
3123
_escape_re = re.compile(r"\\([-\s!\"#&%,/:;<=>@_`'~])")
3123
- elif sys.version_info < (3,7):
3124
+ elif sys.version_info < (3, 7):
3124
3125
# 3.3 .. 3.6 doesn't escape "_"
3125
3126
_escape_re = re.compile(r"\\([-\s!\"#&%,/:;<=>@`'~])")
3126
3127
else:
@@ -3262,7 +3263,8 @@ be replaced with a previously captured value before the pattern is applied.
3262
3263
else:
3263
3264
# pylint: disable=bad-option-value,consider-using-with
3264
3265
pipe = subprocess.Popen(
3265
- ["diff", args[0], args[1]], stdout=subprocess.PIPE
3266
+ ["diff", args[0], args[1]],
3267
+ stdout=subprocess.PIPE,
3266
3268
)
3267
3269
if sys.version_info < (3, 0):
3268
3270
pout = pipe.stdout
0 commit comments