Skip to content

Commit

Permalink
Fixes a part in autoreloading problem
Browse files Browse the repository at this point in the history
  • Loading branch information
pashinin committed Sep 17, 2014
1 parent 32a5e8a commit 92b52db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion celery/worker/autoreload.py
Expand Up @@ -64,7 +64,7 @@ def register_with_event_loop(self, w, hub):
def file_hash(filename, algorithm='md5'):
hobj = hashlib.new(algorithm)
with open(filename, 'rb') as f:
for chunk in iter(lambda: f.read(2 ** 20), ''):
for chunk in iter(lambda: f.read(2 ** 20), b''):
hobj.update(ensure_bytes(chunk))
return hobj.digest()

Expand Down

0 comments on commit 92b52db

Please sign in to comment.