Skip to content

Commit

Permalink
Don't split the extension off for Windows?
Browse files Browse the repository at this point in the history
  • Loading branch information
brainsik committed Sep 9, 2024
1 parent d58102b commit fd65734
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/json_store/shelve2json.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ def convert(oldfile):
if not os.path.isfile(oldfile):
raise ValueError("No such file: {}".format(oldfile))

name = oldfile.rsplit(".dat")[0] # Windows
name = oldfile.rsplit(".db")[0] # macOS
data = shelve.open(name)

Expand Down

0 comments on commit fd65734

Please sign in to comment.