Skip to content

Commit 8b2dd1f

Browse files
committed
Fixed a Py2/3 issue in the djangobwr's bower_install command
- Legacy-Id: 17568
1 parent 8faf272 commit 8b2dd1f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

djangobwr/management/commands/bower_install.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ def clean_components_to_static_dir(self, bower_dir, override):
158158

159159
# Check if we need to copy the file at all.
160160
if os.path.exists(dst_path):
161-
with open(src_path) as src:
161+
with open(src_path, 'br') as src:
162162
src_hash = hashlib.sha1(src.read()).hexdigest()
163-
with open(dst_path) as dst:
163+
with open(dst_path, 'br') as dst:
164164
dst_hash = hashlib.sha1(dst.read()).hexdigest()
165165
if src_hash == dst_hash:
166166
#print('{0} = {1}'.format(src_path, dst_path))

0 commit comments

Comments
 (0)