Skip to content

Commit 6e7f9e1

Browse files
author
Ethan Lee
committed
Fix the flake8 error
Signed-off-by: Ethan Lee <[email protected]>
1 parent 0fac3e5 commit 6e7f9e1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/fosslight_binary/cli.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,19 @@
1414
_PKG_NAME = "fosslight_binary"
1515

1616

17-
def get_terminal_size():
17+
18+
def get_terminal_size():
1819
size = shutil.get_terminal_size()
1920
return size.lines
2021

21-
def paginate_file(file_path):
22+
def paginate_file(file_path):
2223
lines_per_page = get_terminal_size() - 1
2324
with open(file_path, 'r') as file:
2425
lines = file.readlines()
25-
26+
2627
for i in range(0, len(lines), lines_per_page):
2728
os.system('clear' if os.name == 'posix' else 'cls')
28-
print(''.join(lines[i:i+lines_per_page]))
29+
print(''.join(lines[i : i + lines_per_page]))
2930
if i + lines_per_page < len(lines):
3031
input("Press Enter to see the next page...")
3132

0 commit comments

Comments
 (0)