[ccplugin] print_function
authorJulien Cristau <julien.cristau@logilab.fr>
Wed, 04 Nov 2015 16:41:36 +0100
changeset 11663 6fb9d9276880
parent 11662 8e05f1db8d16
child 11664 7567e99d6ed5
[ccplugin] print_function
ccplugin.py
--- a/ccplugin.py	Thu Jul 30 09:55:36 2015 +0200
+++ b/ccplugin.py	Wed Nov 04 16:41:36 2015 +0100
@@ -4,6 +4,8 @@
 The reloading strategy is heavily inspired by (and partially copied from)
 the pyramid script 'pserve'.
 """
+from __future__ import print_function
+
 import atexit
 import errno
 import os
@@ -223,7 +225,7 @@
                     proc = subprocess.Popen(args, env=new_environ)
                     exit_code = proc.wait()
                     proc = None
-                    print "Process exited with ", exit_code
+                    print("Process exited with", exit_code)
                 except KeyboardInterrupt:
                     self.info('^C caught in monitor process')
                     return 1