Skip to content

Commit

Permalink
Use print function instead of print statement
Browse files Browse the repository at this point in the history
  • Loading branch information
dcermak committed Jan 22, 2019
1 parent 4aa77c8 commit 091b999
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions factory-package-news/announcer.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/python

from __future__ import print_function

import httplib
import re
from urlparse import urlparse, urljoin
Expand Down Expand Up @@ -75,7 +77,7 @@ def _load_config(handle=None):
format='%(asctime)s - %(module)s:%(lineno)d - %(levelname)s - %(message)s')

if options.dump_config:
print yaml.dump(config_defaults, default_flow_style=False)
print(yaml.dump(config_defaults, default_flow_style=False))
sys.exit(0)

config = _load_config(options.config)
Expand Down Expand Up @@ -153,8 +155,8 @@ def _load_config(handle=None):
msg['Message-ID'] = email.utils.make_msgid()

if options.dry:
print "sending ..."
print msg.as_string()
print("sending ...")
print(msg.as_string())
else:
logger.info("announcing version {}".format(version))
s = smtplib.SMTP(options.relay)
Expand Down

0 comments on commit 091b999

Please sign in to comment.