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

Commit 209d8fa

Browse files
MohammadAGfahhem
authored andcommitted
Fixed binary file pushing being cut early on Windows (#77)
1 parent b77d0d5 commit 209d8fa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

adb/adb_commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def Push(self, source_file, device_filename, mtime='0', timeout_ms=None):
148148
for f in os.listdir(source_file):
149149
self.Push(os.path.join(source_file, f), device_filename + '/' + f)
150150
return
151-
source_file = open(source_file)
151+
source_file = open(source_file, "rb")
152152

153153
connection = self.protocol_handler.Open(
154154
self.handle, destination=b'sync:', timeout_ms=timeout_ms)

0 commit comments

Comments
 (0)