From 47c8a511ff60d7815a1c13149fa1e0694bd713d0 Mon Sep 17 00:00:00 2001 From: pictuga Date: Wed, 25 Feb 2015 11:36:55 +0800 Subject: [PATCH] 2to3: print's --- morss/morss.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/morss/morss.py b/morss/morss.py index 7f7b646..158320c 100644 --- a/morss/morss.py +++ b/morss/morss.py @@ -76,7 +76,7 @@ def log(txt, force=False): if 'REQUEST_URI' in os.environ: open('morss.log', 'a').write("%s\n" % repr(txt)) else: - print repr(txt) + print(repr(txt)) def len_html(txt): @@ -786,7 +786,7 @@ def cli_app(): out = Format(rss, options) if not options.silent: - print out + print(out) log('done') @@ -805,7 +805,7 @@ def main(): except (KeyboardInterrupt, SystemExit): raise except Exception as e: - print 'ERROR: %s' % e.message + print('ERROR: %s' % e.message) if __name__ == '__main__': main()