Skip to content

Commit 8b986a4

Browse files
committed
PYTHON-967 - Call print as a function in README
1 parent f62dbc1 commit 8b986a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,15 +134,15 @@ Here's a basic example (for more see the *examples* section of the docs):
134134
>>> db.my_collection.find_one()
135135
{u'x': 10, u'_id': ObjectId('4aba15ebe23f6b53b0000000')}
136136
>>> for item in db.my_collection.find():
137-
... print item["x"]
137+
... print(item["x"])
138138
...
139139
10
140140
8
141141
11
142142
>>> db.my_collection.create_index("x")
143143
u'x_1'
144144
>>> for item in db.my_collection.find().sort("x", pymongo.ASCENDING):
145-
... print item["x"]
145+
... print(item["x"])
146146
...
147147
8
148148
10

0 commit comments

Comments
 (0)