diff --git a/djangobwr/management/commands/bower_install.py b/djangobwr/management/commands/bower_install.py index de6e5b0c0..a77e3dae7 100644 --- a/djangobwr/management/commands/bower_install.py +++ b/djangobwr/management/commands/bower_install.py @@ -158,9 +158,9 @@ class Command(BaseCommand): # Check if we need to copy the file at all. if os.path.exists(dst_path): - with open(src_path) as src: + with open(src_path, 'br') as src: src_hash = hashlib.sha1(src.read()).hexdigest() - with open(dst_path) as dst: + with open(dst_path, 'br') as dst: dst_hash = hashlib.sha1(dst.read()).hexdigest() if src_hash == dst_hash: #print('{0} = {1}'.format(src_path, dst_path))