Skip to content

Commit f3d8b86

Browse files
committed
Minor doc updates.
1 parent 5133b0f commit f3d8b86

7 files changed

Lines changed: 14 additions & 9 deletions

File tree

bson/binary.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@
5151
current default is :data:`OLD_UUID_SUBTYPE` but will
5252
change to this in a future release.
5353
54-
.. versionchanged:: 2.0.1+
54+
.. versionchanged:: 2.1
55+
Changed to subtype 4.
5556
.. versionadded:: 1.5
5657
"""
5758

@@ -61,7 +62,7 @@
6162
:class:`uuid.UUID` instances will automatically be encoded
6263
by :mod:`bson` using this subtype.
6364
64-
.. versionadded:: 2.0.1+
65+
.. versionadded:: 2.1
6566
"""
6667

6768
MD5_SUBTYPE = 5

doc/changelog.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ Important New Features:
3030
- Added support for the MongoDB URI options socketTimeoutMS and connectTimeoutMS.
3131
- Added support for the ContinueOnError insert flag.
3232
- Added basic SSL support.
33+
- Added basic support for Jython.
3334
- Secondaries can be used for :meth:`~pymongo.cursor.Cursor.count`,
3435
:meth:`~pymongo.cursor.Cursor.distinct`, :meth:`~pymongo.collection.Collection.group`,
3536
and querying :class:`~gridfs.GridFS`.

pymongo/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
GEOHAYSTACK = "geoHaystack"
3434
"""Index specifier for a 2-dimensional `haystack index`_.
3535
36-
.. versionadded:: 2.0.1+
36+
.. versionadded:: 2.1
3737
3838
.. note:: Geo-spatial indexing requires server version **>= 1.5.6+**.
3939

pymongo/collection.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ def __init__(self, database, name, options=None, create=False, **kwargs):
6363
- `**kwargs` (optional): additional keyword arguments will
6464
be passed as options for the create collection command
6565
66+
.. versionadded:: 2.1
67+
uuid_subtype attribute
6668
.. versionchanged:: 1.5
6769
deprecating `options` in favor of kwargs
6870
.. versionadded:: 1.5
@@ -280,7 +282,7 @@ def insert(self, doc_or_docs, manipulate=True,
280282
281283
.. note:: `continue_on_error` requires server version **>= 1.9.1**
282284
283-
.. versionadded:: 2.0.1+
285+
.. versionadded:: 2.1
284286
Support for continue_on_error.
285287
.. versionadded:: 1.8
286288
Support for passing `getLastError` options as keyword

pymongo/common.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ def __set_options(self, options):
186186
def __get_slave_okay(self):
187187
"""DEPRECATED. Use `read_preference` instead.
188188
189-
.. versionchanged:: 2.0.1+
189+
.. versionchanged:: 2.1
190+
Deprecated slave_okay.
190191
.. versionadded:: 2.0
191192
"""
192193
return self.__slave_okay
@@ -204,7 +205,7 @@ def __get_read_pref(self):
204205
205206
See :class:`~pymongo.ReadPreference` for available options.
206207
207-
.. versionadded:: 2.0.1+
208+
.. versionadded:: 2.1
208209
"""
209210
return self.__read_pref
210211

pymongo/connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ def __init__(self, host=None, port=None, max_pool_size=10,
270270
instead.
271271
272272
.. seealso:: :meth:`end_request`
273-
.. versionchanged:: 2.0.1+
273+
.. versionchanged:: 2.1
274274
Support `w` = integer or string.
275275
Added `ssl` option.
276276
DEPRECATED slave_okay/slaveOk.
@@ -720,7 +720,7 @@ def close(self):
720720
could lead to unexpected results.
721721
722722
.. seealso:: :meth:`end_request`
723-
.. versionadded:: 2.0.1+
723+
.. versionadded:: 2.1
724724
"""
725725
self.disconnect()
726726

pymongo/replica_set_connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def __init__(self, hosts_or_uri=None, max_pool_size=10,
179179
- `slave_okay` or `slaveOk` (deprecated): Use `read_preference`
180180
instead.
181181
182-
.. versionadded:: 2.0.1+
182+
.. versionadded:: 2.1
183183
"""
184184
self.__max_pool_size = max_pool_size
185185
self.__document_class = document_class

0 commit comments

Comments
 (0)