1
0
mirror of https://github.com/aquatix/digimarks.git synced 2025-12-06 23:05:10 +01:00

Python 2 and 3 compatible print statements

This commit is contained in:
2016-07-29 14:48:59 +02:00
parent 974fadf3d9
commit 8bb8aff6c4

View File

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