diff --git a/adb/fastboot.py b/adb/fastboot.py index 1507494..b6c3631 100644 --- a/adb/fastboot.py +++ b/adb/fastboot.py @@ -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: diff --git a/adb/fastboot_debug.py b/adb/fastboot_debug.py index e168f69..2a8dc16 100755 --- a/adb/fastboot_debug.py +++ b/adb/fastboot_debug.py @@ -105,7 +105,7 @@ def main(): if 'info_cb' in argspec.args: kwargs['info_cb'] = _InfoCb if 'progress_callback' in argspec.args and progressbar: - bar = progressbar.ProgessBar( + bar = progressbar.ProgressBar( widgets=[progressbar.Bar(), progressbar.Percentage()]) bar.start()