Skip to content

Commit

Permalink
bug in setup.py and lfs_plugin not specifying encoding in file open c…
Browse files Browse the repository at this point in the history
…ommand
  • Loading branch information
lepmik committed Feb 23, 2021
1 parent 5ec8d84 commit 58fdc2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion exdir/plugins/git_lfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def __init__(self, verbose):
def before_load(self, dataset_path):
path = pathlib.Path(dataset_path)
parent_path = path.parent
with open(dataset_path, "rb") as f:
with open(dataset_path, "rb", encoding="utf-8") as f:
test_string = b"version https://git-lfs.github.com/spec/v1"
contents = f.read(len(test_string))
if contents == test_string:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import versioneer


long_description = open("README.md").read()
long_description = open("README.md", encoding="utf-8").read()

install_requires = []

Expand Down

0 comments on commit 58fdc2d

Please sign in to comment.