Skip to content

Commit 21def4e

Browse files
committed
Fixes old print statement in some documentation pages
1 parent c5ed6c5 commit 21def4e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/patterns/sqlite3.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,16 +113,16 @@ raw cursor and connection objects.
113113
Here is how you can use it::
114114

115115
for user in query_db('select * from users'):
116-
print user['username'], 'has the id', user['user_id']
116+
print(user['username'], 'has the id', user['user_id'])
117117

118118
Or if you just want a single result::
119119

120120
user = query_db('select * from users where username = ?',
121121
[the_username], one=True)
122122
if user is None:
123-
print 'No such user'
123+
print('No such user')
124124
else:
125-
print the_username, 'has the id', user['user_id']
125+
print(the_username, 'has the id', user['user_id'])
126126

127127
To pass variable parts to the SQL statement, use a question mark in the
128128
statement and pass in the arguments as a list. Never directly add them to

docs/signals.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ With Blinker 1.1 you can also easily subscribe to signals by using the new
177177

178178
@template_rendered.connect_via(app)
179179
def when_template_rendered(sender, template, context, **extra):
180-
print f'Template {template.name} is rendered with {context}'
180+
print(f'Template {template.name} is rendered with {context}')
181181

182182
Core Signals
183183
------------

0 commit comments

Comments
 (0)