python3: update print calls to be function calls

This commit is contained in:
Frédéric Péters 2018-07-25 14:28:05 +02:00
parent 9751386861
commit f6c37a62e4
2 changed files with 3 additions and 2 deletions

View File

@ -46,5 +46,5 @@ class Command(BaseCommand):
raise CommandError(e.message)
except GenerationInfo as e:
if int(kwargs.get('verbosity')) > 0:
print e.message
print(e.message)
translation.deactivate()

View File

@ -18,6 +18,7 @@ import json
import sys
from django.core.management.base import BaseCommand
from django.utils.encoding import force_text
from combo.data.utils import import_site, MissingGroups
@ -44,4 +45,4 @@ class Command(BaseCommand):
if_empty=options['if_empty'],
clean=options['clean'])
except MissingGroups as e:
print >> sys.stderr, unicode(e)
sys.stderr.write(force_text(e) + '\n')