Skip to content

Commit

Permalink
Remove debug
Browse files Browse the repository at this point in the history
  • Loading branch information
MasloMaslane committed Dec 19, 2024
1 parent 9531579 commit fd47c01
Showing 1 changed file with 0 additions and 4 deletions.
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

0 comments on commit fd47c01

Please sign in to comment.