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