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
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
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()