summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>2021-05-24 17:40:10 +0000
committerpre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>2021-05-24 17:40:10 +0000
commit66f83405ddc2f759056ec248bddc89c4173ffdbd (patch)
tree6eee11ded18b6ae4c8d109f657e41886756464de
parent53ced94ff4c16977bdaa823ef61f07785f158a0d (diff)
downloadflake8-66f83405ddc2f759056ec248bddc89c4173ffdbd.tar.gz
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
-rw-r--r--src/flake8/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/flake8/utils.py b/src/flake8/utils.py
index 9c46359..62c8ad4 100644
--- a/src/flake8/utils.py
+++ b/src/flake8/utils.py
@@ -270,9 +270,9 @@ def parse_unified_diff(diff: Optional[str] = None) -> Dict[str, Set[int]]:
# So we can more simply check for a match instead of slicing and
# comparing.
if hunk_match:
- (row, number_of_rows) = [
+ (row, number_of_rows) = (
1 if not group else int(group) for group in hunk_match.groups()
- ]
+ )
assert current_path is not None
parsed_paths[current_path].update(range(row, row + number_of_rows))