Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

Commit b021bfa

Browse files
committed
Fix UnicodeDecodeError on fastboot.Download(filename)
1 parent f4e597f commit b021bfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adb/fastboot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ def Download(self, source_file, source_len=0,
312312
"""
313313
if isinstance(source_file, str):
314314
source_len = os.stat(source_file).st_size
315-
source_file = open(source_file)
315+
source_file = open(source_file, mode='rb')
316316

317317
with source_file:
318318
if source_len == 0:

0 commit comments

Comments
 (0)