More porting to python3

Travis changed default python to 3.6, which has impact on the way
flake8 checks. So make sure we run fine under flake8 of python 3
This commit is contained in:
Stephan Kulow
2019-04-20 21:16:50 +02:00
parent 0016e77e71
commit 595e84191e
17 changed files with 87 additions and 65 deletions

View File

@@ -67,7 +67,7 @@ logging.basicConfig(level=logging.DEBUG if options.debug
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)
@@ -145,8 +145,8 @@ msg['Date'] = email.utils.formatdate(localtime=1)
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)