Skip to content

Commit 057429c

Browse files
committed
PYTHON-1023 - Explicitly drop support for MongoDB 2.2
We haven't tested against anything older than MongoDB 2.2 in a long timei, but we've never been explicit about what versions we actually support. As of this commit we are no longer testing against MongoDB 2.2 either. MongoDB 2.2 reached EOL in February of 2014.
1 parent 53a7bea commit 057429c

File tree

5 files changed

+8
-13
lines changed

5 files changed

+8
-13
lines changed

README.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ is a `gridfs
1616
<http://www.mongodb.org/display/DOCS/GridFS+Specification>`_
1717
implementation on top of ``pymongo``.
1818

19+
PyMongo 3.3.0.dev0 supports MongoDB 2.4, 2.6, 3.0, and 3.2
20+
1921
Support / Feedback
2022
==================
2123

doc/examples/aggregation.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,8 @@ documents that will be mapped over:
151151
{u'_id': u'cat', u'value': 1.0}
152152
{u'_id': u'dog', u'value': 1.0}
153153

154-
With MongoDB 1.8.0 or newer you can use :class:`~bson.son.SON` or
155-
:class:`collections.OrderedDict` to specify a different database to store the
156-
result collection:
154+
You can use :class:`~bson.son.SON` or :class:`collections.OrderedDict` to
155+
specify a different database to store the result collection:
157156

158157
.. doctest::
159158

doc/examples/authentication.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ MONGODB-X509
8888
The MONGODB-X509 mechanism authenticates a username derived from the
8989
distinguished subject name of the X.509 certificate presented by the driver
9090
during SSL negotiation. This authentication method requires the use of SSL
91-
connections with certificate validation and is available in MongoDB 2.5.1
91+
connections with certificate validation and is available in MongoDB 2.6
9292
and newer::
9393

9494
>>> import ssl
@@ -202,7 +202,7 @@ SASL PLAIN (RFC 4616)
202202
---------------------
203203
.. versionadded:: 2.6
204204

205-
MongoDB Enterprise Edition versions 2.5.0 and newer support the SASL PLAIN
205+
MongoDB Enterprise Edition version 2.6 and newer support the SASL PLAIN
206206
authentication mechanism, initially intended for delegating authentication
207207
to an LDAP server. Using the PLAIN mechanism is very similar to MONGODB-CR.
208208
These examples use the $external virtual database for LDAP support::

pymongo/collection.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1360,11 +1360,10 @@ def create_index(self, keys, **kwargs):
13601360
See the MongoDB documentation for a full list of supported options by
13611361
server version.
13621362
1363-
.. warning:: `dropDups` is not supported by MongoDB 2.7.5 or newer. The
1363+
.. warning:: `dropDups` is not supported by MongoDB 3.0 or newer. The
13641364
option is silently ignored by the server and unique index builds
13651365
using the option will fail if a duplicate value is detected.
13661366
1367-
.. note:: `expireAfterSeconds` requires server version **>= 2.2**
13681367
.. note:: `partialFilterExpression` requires server version **>= 3.2**
13691368
13701369
:Parameters:

pymongo/database.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -559,11 +559,6 @@ def validate_collection(self, name_or_collection,
559559
Returns a dict of validation info. Raises CollectionInvalid if
560560
validation fails.
561561
562-
With MongoDB < 1.9 the result dict will include a `result` key
563-
with a string value that represents the validation results. With
564-
MongoDB >= 1.9 the `result` key no longer exists and the results
565-
are split into individual fields in the result dict.
566-
567562
:Parameters:
568563
- `name_or_collection`: A Collection object or the name of a
569564
collection to validate.
@@ -572,7 +567,7 @@ def validate_collection(self, name_or_collection,
572567
- `full`: Have the server do a more thorough scan of the
573568
collection. Use with `scandata` for a thorough scan
574569
of the structure of the collection and the individual
575-
documents. Ignored in MongoDB versions before 1.9.
570+
documents.
576571
"""
577572
name = name_or_collection
578573
if isinstance(name, Collection):

0 commit comments

Comments
 (0)