From: Kyr Shatskyy Date: Mon, 7 Oct 2019 09:48:25 +0000 (+0200) Subject: Use future print for python3 compatibility X-Git-Tag: 1.1.0~223^2~16 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=802dd492bbaae285c30791658a431c77bc76f2bc;p=teuthology.git Use future print for python3 compatibility Signed-off-by: Kyr Shatskyy --- diff --git a/teuthology/__init__.py b/teuthology/__init__.py index 591c92e6c..9c7b78b6e 100644 --- a/teuthology/__init__.py +++ b/teuthology/__init__.py @@ -1,4 +1,6 @@ +from __future__ import print_function import os + # Tell gevent not to patch os.waitpid() since it is susceptible to race # conditions. See: # http://www.gevent.org/gevent.monkey.html#gevent.monkey.patch_os @@ -41,7 +43,7 @@ try: ).strip() except Exception as e: # before logging; should be unusual - print >>sys.stderr, 'Can\'t get version from git rev-parse', e + print("Can't get version from git rev-parse %s" % e, file=sys.stderr) # If we are running inside a virtualenv, ensure we have its 'bin' directory in # our PATH. This doesn't happen automatically if scripts are called without