diff --git a/psyclone/web.py b/psyclone/web.py index 07381a117f..b5805fb4c3 100644 --- a/psyclone/web.py +++ b/psyclone/web.py @@ -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)