Seconded what Dmitrijs says. Instead of
- print >> sys.stderr, 'ERROR (dkms apport): both -m and -v are required' + print('ERROR (dkms apport): both -m and -v are required', file=sys.stderr)
use something like
sys.stderr.write('ERROR... required\n')
(i. e. add the explicit \n at the end). This will work with both Python 2 and 3. Alternatively, use
from __future__ import print_statement.
Seconded what Dmitrijs says. Instead of
- print >> sys.stderr, 'ERROR (dkms apport): both -m and -v are required'
+ print('ERROR (dkms apport): both -m and -v are required', file=sys.stderr)
use something like
sys.stderr. write(' ERROR.. . required\n')
(i. e. add the explicit \n at the end). This will work with both Python 2 and 3. Alternatively, use
from __future__ import print_statement.