Commit 82cb8e79 authored by fred's avatar fred

commands: use print as a function

parent 2a8c358d
......@@ -35,7 +35,7 @@ class Command(BaseCommand):
with open(filename) as fd:
if self.verbose:
print 'Reading SPIP dump file'
print('Reading SPIP dump file')
content = fd.read()
# the spip_courriers parts of the spip export are not properly
# encoded, we manually remove them here so the XML file can be
......@@ -47,7 +47,7 @@ class Command(BaseCommand):
self.load_authors()
if self.verbose:
print 'Creating subscribers'
print('Creating subscribers')
for author_xml in self.root.iter('spip_auteurs_elargis'):
if author_xml.find('spip_listes_format').text not in ('texte', 'html'):
continue
......
......@@ -12,5 +12,5 @@ class Command(BaseCommand):
for subscriber in Subscriber.objects.filter(is_validated=True).exclude(is_registered=True):
if self.verbose:
print 'subscribing', subscriber.email
print('subscribing', subscriber.email)
subscriber.subscribe_in_mailman()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment