Skip to content

Commit b6c141d

Browse files
authored
Merge pull request #353 from js361014/push-file
Fix for #352
2 parents c7bab7c + dfde913 commit b6c141d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AppiumLibrary/keywords/_android_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def push_file(self, path, data, encode=False):
8282
driver = self._current_application()
8383
data = to_bytes(data)
8484
if encode:
85-
data = base64.b64encode(data)
85+
data = base64.b64encode(data).decode('utf-8')
8686
driver.push_file(path, data)
8787

8888
def get_activity(self):

0 commit comments

Comments
 (0)