You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by si...@apache.org on 2018/11/03 17:44:13 UTC
[pulsar] branch master updated: Make print statement python3
friendly (#2921)
This is an automated email from the ASF dual-hosted git repository.
sijie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/master by this push:
new 7d1464f Make print statement python3 friendly (#2921)
7d1464f is described below
commit 7d1464f978bf0d450f86b78b66cd92a69c8ca477
Author: Sanjeev Kulkarni <sa...@gmail.com>
AuthorDate: Sat Nov 3 10:44:08 2018 -0700
Make print statement python3 friendly (#2921)
---
pulsar-functions/instance/src/main/python/python_instance_main.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pulsar-functions/instance/src/main/python/python_instance_main.py b/pulsar-functions/instance/src/main/python/python_instance_main.py
index 977345c..cc68fb0 100644
--- a/pulsar-functions/instance/src/main/python/python_instance_main.py
+++ b/pulsar-functions/instance/src/main/python/python_instance_main.py
@@ -99,7 +99,7 @@ def main():
cmd = cmd + " %s" % str(args.py)
retval = os.system(cmd)
if retval != 0:
- print "Could not install user depedencies"
+ print("Could not install user depedencies")
sys.exit(1)
else:
zpfile = zipfile.ZipFile(str(args.py), 'r')
@@ -121,7 +121,7 @@ def main():
cmd = "pip install -t %s -r %s --no-index --find-links %s" % (os.path.dirname(str(args.py)), requirements_txt_file, deps_file)
retval = os.system(cmd)
if retval != 0:
- print "Could not install user depedencies specified by the zip file"
+ print("Could not install user depedencies specified by the zip file")
sys.exit(1)
sys.path.insert(0, os.path.join(os.path.dirname(str(args.py)), basename, "src"))