Skip to content

Commit d0df292

Browse files
committed
Review comment
1 parent e2151d0 commit d0df292

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pep8.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,7 +1055,7 @@ def readlines(filename):
10551055
f = TextIOWrapper(f, coding, line_buffering=True)
10561056
return [l.decode(coding) for l in lines] + f.readlines()
10571057
except (LookupError, SyntaxError, UnicodeError):
1058-
# Fall back if files are improperly declared
1058+
# Fall back if file encoding is improperly declared
10591059
with open(filename, encoding='latin-1') as f:
10601060
return f.readlines()
10611061
isidentifier = str.isidentifier
@@ -1125,7 +1125,7 @@ def parse_udiff(diff, patterns=None, parent='.'):
11251125
continue
11261126
if line[:3] == '@@ ':
11271127
hunk_match = HUNK_REGEX.match(line)
1128-
row, nrows = [int(g or '1') for g in hunk_match.groups()]
1128+
(row, nrows) = [int(g or '1') for g in hunk_match.groups()]
11291129
rv[path].update(range(row, row + nrows))
11301130
elif line[:3] == '+++':
11311131
path = line[4:].split('\t', 1)[0]

0 commit comments

Comments
 (0)