server/sqlutils.py
changeset 10589 7c23b7de2b8d
parent 10588 fdaa0e4b7eaf
child 10607 6519ae8cca0c
--- a/server/sqlutils.py	Fri Sep 11 14:28:06 2015 +0200
+++ b/server/sqlutils.py	Fri Sep 11 14:52:09 2015 +0200
@@ -16,6 +16,7 @@
 # You should have received a copy of the GNU Lesser General Public License along
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
 """SQL utilities functions and classes."""
+from __future__ import print_function
 
 __docformat__ = "restructuredtext en"
 
@@ -43,7 +44,7 @@
 SQL_PREFIX = 'cw_'
 
 def _run_command(cmd):
-    print ' '.join(cmd)
+    print(' '.join(cmd))
     return subprocess.call(cmd)
 
 
@@ -94,7 +95,7 @@
             if cnx:
                 cnx.commit()
     if withpb:
-        print
+        print()
     if sqlstmts_as_string:
         failed = delimiter.join(failed)
     return failed