From 8bb8aff6c4caa19cc477c9b8ad4aa9ff6afb2fc0 Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Fri, 29 Jul 2016 14:48:59 +0200 Subject: [PATCH] Python 2 and 3 compatible print statements --- digimarks.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/digimarks.py b/digimarks.py index d8b68cf..ee3f959 100644 --- a/digimarks.py +++ b/digimarks.py @@ -1,3 +1,4 @@ +from __future__ import print_function import datetime import hashlib import os @@ -342,7 +343,7 @@ def deletingbookmark(userkey, urlhash): def tags(userkey): """ Overview of all tags used by user """ tags = get_tags_for_user(userkey) - print tags + print(tags) return render_template('tags.html', tags=tags, userkey=userkey) @@ -420,10 +421,10 @@ User.create_table(True) PublicTag.create_table(True) users = User.select() -print 'Current user keys:' +print('Current user keys:') for user in users: all_tags[user.key] = get_tags_for_user(user.key) - print user.key + print(user.key) if __name__ == '__main__': # run the application