Skip to content

Commit

Permalink
Merge pull request #15 from sethjuarez/master
Browse files Browse the repository at this point in the history
corrected POSIX path issue
  • Loading branch information
sethjuarez authored Jun 12, 2019
2 parents 8fb0e9a + 5b16731 commit c7d6961
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/training/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def generate_hash(file, key):
print('Generating hash for {}'.format(file))
m = hmac.new(str.encode(key), digestmod=hashlib.sha256)
BUF_SIZE = 65536
with open(file, 'rb') as f:
with open(str(file), 'rb') as f:
while True:
data = f.read(BUF_SIZE)
if not data:
Expand Down

0 comments on commit c7d6961

Please sign in to comment.