python3: update print calls to be function calls
This commit is contained in:
parent
9751386861
commit
f6c37a62e4
|
@ -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()
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue