You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by dg...@apache.org on 2019/12/18 12:51:45 UTC

[openwhisk] 01/03: Update invoke.py for python 3.

This is an automated email from the ASF dual-hosted git repository.

dgrove pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwhisk.git

commit 104e89ebca7b67302289c3ff5ef3334e73e7f25b
Author: Rodric Rabbah <ro...@gmail.com>
AuthorDate: Tue Dec 17 22:37:47 2019 -0500

    Update invoke.py for python 3.
---
 tools/actionProxy/invoke.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/actionProxy/invoke.py b/tools/actionProxy/invoke.py
index 6e7000e..1fe1c0e 100755
--- a/tools/actionProxy/invoke.py
+++ b/tools/actionProxy/invoke.py
@@ -99,7 +99,7 @@ def init(args):
     if artifact and (args.binary or artifact.endswith('.zip') or artifact.endswith('tgz') or artifact.endswith('jar')):
         with open(artifact, 'rb') as fp:
             contents = fp.read()
-        contents = base64.b64encode(contents)
+        contents = str(base64.b64encode(contents), 'utf-8')
         binary = True
     elif artifact is not '':
         with(codecs.open(artifact, 'r', 'utf-8')) as fp: