Skip to content

Commit

Permalink
Filenames are not bytes in Py3
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinmit committed Jul 22, 2020
1 parent 1529d7f commit 291496f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shinysdr/i/persistence.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def apply_defaults():
root_object.state_from_json(state_json)
# make a backup in case this code version misreads the state and loses things on save (but only if the load succeeded, in case the file but not its backup is bad)
# TODO: should automatically use backup if main file is missing or broken
shutil.copyfile(filename, filename + b'~')
shutil.copyfile(filename, filename + '~')
else:
apply_defaults()

Expand Down

0 comments on commit 291496f

Please sign in to comment.