Permalink
Browse files

Merge pull request #190 from davidbrai/master

Read files in binary mode to avoid windows file reading issue.
  • Loading branch information...
jezdez committed Jan 10, 2012
2 parents 1b511bc + fedb57e commit 1a82db7f8a0ed3bda18139119eaaf0e8c172b164
Showing with 1 addition and 1 deletion.
  1. +1 −1 compressor/filters/css_default.py
@@ -62,7 +62,7 @@ def add_suffix(self, url):
if settings.COMPRESS_CSS_HASHING_METHOD == "mtime":
suffix = get_hashed_mtime(filename)
elif settings.COMPRESS_CSS_HASHING_METHOD == "hash":
- hash_file = open(filename)
+ hash_file = open(filename, 'rb')
try:
suffix = get_hexdigest(hash_file.read(), 12)
finally:

0 comments on commit 1a82db7

Please sign in to comment.