2to3: print's

master
pictuga 2015-02-25 11:36:55 +08:00
parent 7a66115012
commit 47c8a511ff
1 changed files with 3 additions and 3 deletions

View File

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