Skip to content

Commit

Permalink
Need to force bytes before hashing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dusty Phillips committed Jan 24, 2010
1 parent 12f9c10 commit 027e173
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion psyclone/web.py
Expand Up @@ -666,7 +666,7 @@ def static_url(self, path):
try:
f = open(os.path.join(
self.application.settings["static_path"], path))
hashes[path] = hashlib.md5(f.read()).hexdigest()
hashes[path] = hashlib.md5(force_bytes(f.read())).hexdigest()
f.close()
except:
logging.error("Could not open static file %r", path)
Expand Down

0 comments on commit 027e173

Please sign in to comment.