Update print syntax
[invirt/packages/invirt-base.git] / python / invirt / remctl.py
index 9dbe8bd..1295eac 100644 (file)
@@ -41,7 +41,7 @@ def remctl(host, *args, **kws):
     if kws.get('err'):
         return stdout, stderr
     if p.returncode:
-        print >> sys.stderr, 'Error', p.returncode, 'on remctl', args, ':'
-        print >> sys.stderr, stderr
+        print('Error', p.returncode, 'on remctl', args, ':', file=sys.stderr)
+        print(stderr, file=sys.stderr)
         raise CodeError('ERROR on remctl')
     return stdout