Skip to content

Commit

Permalink
Remove whitespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
nebhrajani-a committed Aug 1, 2022
1 parent 214ee93 commit 7c26402
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/yhpdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ class PDFInfo:
Class that contains filename, directory for PDF to process.
Also holds information labels.
"""

boxes: list
filename: str = None
directory: str = None
Expand All @@ -36,7 +35,6 @@ def select_file(info: PDFInfo):
info.filename = fd.askopenfilename(title="Select scanned PDF",
initialdir=str(Path.home()),
filetypes=filetypes)

if info.filename:
info.boxes[0]["text"] = f"File selected: {info.filename}"

Expand All @@ -46,7 +44,6 @@ def select_directory(info: PDFInfo):
info.boxes[1]["text"] = ""
info.directory = fd.askdirectory(title="Select output folder",
initialdir=str(Path.home()))

if info.directory:
info.boxes[1]["text"] = f"Folder selected: {info.directory}"

Expand Down Expand Up @@ -83,7 +80,6 @@ def report_err(i: int):
)

err_dict = {}

if gui:
info.boxes[2]["text"] = ""

Expand All @@ -103,10 +99,8 @@ def report_err(i: int):

if page_too_large(i):
call_gs("ebook", i)

if page_too_large(i):
call_gs("screen", i)

if page_too_large(i):
if gui:
report_err(i)
Expand Down

0 comments on commit 7c26402

Please sign in to comment.