]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
print() is a function in Python 3 4382/head
authorcclauss <cclauss@bluewin.ch>
Wed, 28 Nov 2018 09:38:57 +0000 (10:38 +0100)
committerGitHub <noreply@github.com>
Wed, 28 Nov 2018 09:38:57 +0000 (10:38 +0100)
test/perf/invalidate_stresstest.py

index 6d70c98adc99dcea7154333a0b9e6fded0918b32..cbf20e18b219b9e75bfb9179ea4acffbde36a476 100644 (file)
@@ -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())