From: cclauss Date: Wed, 28 Nov 2018 09:38:57 +0000 (+0100) Subject: print() is a function in Python 3 X-Git-Tag: rel_1_3_0b2~83^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=971f0867856d04cb7da5eeea10daad5ad984d776;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git print() is a function in Python 3 --- diff --git a/test/perf/invalidate_stresstest.py b/test/perf/invalidate_stresstest.py index 6d70c98adc..cbf20e18b2 100644 --- a/test/perf/invalidate_stresstest.py +++ b/test/perf/invalidate_stresstest.py @@ -1,3 +1,5 @@ +from __future__ import print_function + import gevent.monkey gevent.monkey.patch_all() # noqa @@ -16,7 +18,7 @@ engine = create_engine('mysql+pymysql://scott:tiger@localhost/test', @event.listens_for(engine, "connect") def conn(*arg): - print "new connection!" + print("new connection!") def worker(): @@ -45,7 +47,7 @@ def main(): while True: result = list(engine.execute("show processlist")) engine.execute("kill %d" % result[-2][0]) - print "\n\n\n BOOM!!!!! \n\n\n" + print("\n\n\n BOOM!!!!! \n\n\n") gevent.sleep(5) print(engine.pool.status())