Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove debug from last PR #274

Merged
merged 1 commit into from
Dec 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/sinol_make/helpers/oicompare.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ def compare(file1_path: str, file2_path: str) -> bool:
"""
Compare two files in the same way as oicompare does. Returns True if the files are the same, False otherwise.
"""
print("start")
with open(file1_path, "r") as file1, open(file2_path, "r") as file2:
eof1 = False
eof2 = False
Expand All @@ -85,7 +84,6 @@ def compare(file1_path: str, file2_path: str) -> bool:
except StopIteration:
eof2 = True

print(eof1, eof2)
if eof1 and eof2:
return True
if eof1:
Expand All @@ -94,7 +92,6 @@ def compare(file1_path: str, file2_path: str) -> bool:
line2 = _strip(next(file2))
except StopIteration:
eof2 = True
print("xd")
break
elif eof2:
while line1 == "":
Expand All @@ -108,7 +105,6 @@ def compare(file1_path: str, file2_path: str) -> bool:

if eof1 and eof2:
return True
# print(f'"{line1}" "{line2}" {eof1=} {eof2=}')
if (eof1 and line2 == "") or (eof2 and line1 == ""):
continue
if (eof1 and line2 != "") or (eof2 and line1 != ""):
Expand Down
Loading