diff --git a/README.rst b/README.rst index c6c276585..f59e213e8 100644 --- a/README.rst +++ b/README.rst @@ -134,7 +134,7 @@ Here's a basic example (for more see the *examples* section of the docs): >>> db.my_collection.find_one() {u'x': 10, u'_id': ObjectId('4aba15ebe23f6b53b0000000')} >>> for item in db.my_collection.find(): - ... print item["x"] + ... print(item["x"]) ... 10 8 @@ -142,7 +142,7 @@ Here's a basic example (for more see the *examples* section of the docs): >>> db.my_collection.create_index("x") u'x_1' >>> for item in db.my_collection.find().sort("x", pymongo.ASCENDING): - ... print item["x"] + ... print(item["x"]) ... 8 10