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

Commit

Permalink
Fix UnicodeDecodeError on fastboot.Download(filename)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmldrmota committed Aug 17, 2020
1 parent f4e597f commit b021bfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adb/fastboot.py
Expand Up @@ -312,7 +312,7 @@ def Download(self, source_file, source_len=0,
"""
if isinstance(source_file, str):
source_len = os.stat(source_file).st_size
source_file = open(source_file)
source_file = open(source_file, mode='rb')

with source_file:
if source_len == 0:
Expand Down

0 comments on commit b021bfa

Please sign in to comment.