Skip to content

Commit

Permalink
Fix three remaining flake8 errors in fitz/table.py.
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-smith-artifex-com committed Nov 21, 2023
1 parent ed9e7a8 commit b276011
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions fitz/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@
* external: A bool indicating whether the header is outside the table cells.
"""
import inspect
import itertools
import string
from dataclasses import dataclass
Expand Down Expand Up @@ -1896,7 +1895,7 @@ def make_line(p, p1, p2, clip):
items = p["items"] # items in this path

# if 'closePath', add a line from last to first point
if p["closePath"] and i[0][0] == "l" and i[-1][0] == "l":
if p["closePath"] and items[0][0] == "l" and items[-1][0] == "l":
items.append(("l", items[-1][2], items[0][1]))

for i in items:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_flake8.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ def run(command):
print(f'test_flake8(): Running: {command}')
subprocess.run(command, shell=1, check=1)
run(f'pip install flake8')
run(f'flake8 --ignore={ignores} --statistics {root}/src/__init__.py {root}/src/utils.py')
run(f'flake8 --ignore={ignores} --statistics {root}/src/__init__.py {root}/src/utils.py {root}/fitz/table.py')
print(f'test_flake8(): flake8 succeeded.')

0 comments on commit b276011

Please sign in to comment.