Skip to content

Commit

Permalink
remove windows-only error, see #50
Browse files Browse the repository at this point in the history
  • Loading branch information
purarue committed Sep 8, 2023
1 parent ece2c4b commit d9e7fb2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions browserexport/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,6 @@ def _read_buf_as_sqlite_db(buf: BinaryIO) -> sqlite3.Connection:
# once the tempfile is deleted, we can still access the data
dbin.backup(dbout)

# needed for windows to be able to delete the folder
tfp.unlink(missing_ok=True)

assert not tfp.exists(), f"tempfile {tfp} should be deleted, but still exists"
return dbout

Expand Down
2 changes: 0 additions & 2 deletions browserexport/save.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ def _path_backup(
_sqlite_backup(srcp, tfp)
_print_sqlite_db_to_stdout(tfp)

# needed for windows to be able to delete the folder
tfp.unlink(missing_ok=True)
assert not tfp.exists(), f"expected {tfp} to be deleted, but it still exists!"
return None
else:
Expand Down

0 comments on commit d9e7fb2

Please sign in to comment.