Skip to content

Commit 9cab982

Browse files
authored
PYTHON-3164 [v3.13] Outdated link from PyMongo docs to community forum (#897)
1 parent 52d7795 commit 9cab982

17 files changed

+33
-34
lines changed

bson/binary.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ class Binary(bytes):
197197
- `data`: the binary data to represent. Can be any bytes-like type
198198
that implements the buffer protocol.
199199
- `subtype` (optional): the `binary subtype
200-
<http://bsonspec.org/#/specification>`_
200+
<https://bsonspec.org/spec.html>`_
201201
to use
202202
203203
.. versionchanged:: 3.9

doc/atlas.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ For a list of TLS/SSL-related dependencies, see :doc:`examples/tls`.
6060

6161
You can read more about TLS versions and their security implications here:
6262

63-
`<https://www.owasp.org/index.php/Transport_Layer_Protection_Cheat_Sheet#Rule_-_Only_Support_Strong_Protocols>`_
63+
`<https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Protection_Cheat_Sheet.html#only-support-strong-protocols>`_
6464

6565
.. _python.org: https://www.python.org/downloads/
6666
.. _homebrew: https://brew.sh/

doc/changelog.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,7 @@ Changes and Deprecations:
897897
- Deprecated the MongoClient option `socketKeepAlive`. It now defaults to true
898898
and disabling it is not recommended, see `does TCP keepalive time affect
899899
MongoDB Deployments?
900-
<https://docs.mongodb.com/manual/faq/diagnostics/#does-tcp-keepalive-time-affect-mongodb-deployments>`_
900+
<https://docs.mongodb.com/manual/faq/diagnostics/#does-tcp-keepalive-time-affect-mongodb-deployments->`_
901901
- Deprecated :meth:`~pymongo.collection.Collection.initialize_ordered_bulk_op`,
902902
:meth:`~pymongo.collection.Collection.initialize_unordered_bulk_op`, and
903903
:class:`~pymongo.bulk.BulkOperationBuilder`. Use

doc/conf.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,13 @@
7070
# A list of ignored prefixes for module index sorting.
7171
# modindex_common_prefix = []
7272

73+
# Options for link checking
74+
# The anchors on the rendered markdown page are created after the fact,
75+
# so this link results in a 404.
76+
linkcheck_ignore = [
77+
"https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-monitoring.rst#requesting-an-immediate-check"
78+
]
79+
7380
# -- Options for extensions ----------------------------------------------------
7481
autoclass_content = "init"
7582

doc/developer/periodic_executor.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Thus the current design of periodic executors is surprisingly simple: they
106106
do a simple `time.sleep` for a half-second, check if it is time to wake or
107107
terminate, and sleep again.
108108

109-
.. _Server Discovery And Monitoring Spec: https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-discovery-and-monitoring.rst#requesting-an-immediate-check
109+
.. _Server Discovery And Monitoring Spec: https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-monitoring.rst#requesting-an-immediate-check
110110

111111
.. _PYTHON-863: https://jira.mongodb.org/browse/PYTHON-863
112112

doc/examples/high_availability.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ milliseconds of the closest member's ping time.
304304
replica set *through* a mongos. The equivalent is the localThreshold_ command
305305
line option.
306306

307-
.. _localThreshold: http://docs.mongodb.org/manual/reference/mongos/#cmdoption--localThreshold
307+
.. _localThreshold: https://docs.mongodb.com/manual/reference/program/mongos/#std-option-mongos.--localThreshold
308308

309309
.. _health-monitoring:
310310

doc/examples/mod_wsgi.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
PyMongo and mod_wsgi
44
====================
55

6-
To run your application under `mod_wsgi <http://code.google.com/p/modwsgi/>`_,
6+
To run your application under `mod_wsgi <https://github.com/GrahamDumpleton/mod_wsgi/>`_,
77
follow these guidelines:
88

99
* Run ``mod_wsgi`` in daemon mode with the ``WSGIDaemonProcess`` directive.
@@ -48,9 +48,9 @@ interpreter.
4848

4949
Python C extensions in general have issues running in multiple
5050
Python sub interpreters. These difficulties are explained in the documentation for
51-
`Py_NewInterpreter <http://docs.python.org/2/c-api/init.html#Py_NewInterpreter>`_
51+
`Py_NewInterpreter <https://docs.python.org/3/c-api/init.html#c.Py_NewInterpreter>`_
5252
and in the `Multiple Python Sub Interpreters
53-
<https://code.google.com/p/modwsgi/wiki/ApplicationIssues#Multiple_Python_Sub_Interpreters>`_
53+
<https://modwsgi.readthedocs.io/en/master/user-guides/application-issues.html#multiple-python-sub-interpreters>`_
5454
section of the ``mod_wsgi`` documentation.
5555

5656
Beginning with PyMongo 2.7, the C extension for BSON detects when it is running

doc/examples/tailable.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ By default, MongoDB will automatically close a cursor when the client has
55
exhausted all results in the cursor. However, for `capped collections
66
<https://docs.mongodb.org/manual/core/capped-collections/>`_ you may
77
use a `tailable cursor
8-
<https://docs.mongodb.org/manual/reference/glossary/#term-tailable-cursor>`_
8+
<https://docs.mongodb.com/manual/core/tailable-cursors/>`_
99
that remains open after the client exhausts the results in the initial cursor.
1010

1111
The following is a basic example of using a tailable cursor to tail the oplog

doc/examples/tls.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ When using CPython < 2.7.9 or PyPy < 2.5.1:
6666

6767
You can read more about TLS versions and their security implications here:
6868

69-
`<https://www.owasp.org/index.php/Transport_Layer_Protection_Cheat_Sheet#Rule_-_Only_Support_Strong_Protocols>`_
69+
`<https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Protection_Cheat_Sheet.html#only-support-strong-protocols>`_
7070

7171
.. _python.org: https://www.python.org/downloads/
7272
.. _homebrew: https://brew.sh/

doc/faq.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ when it is serialized to BSON and used as a query. Thus you can create a
301301
subdocument that exactly matches the subdocument in the collection.
302302

303303
.. seealso:: `MongoDB Manual entry on subdocument matching
304-
<http://docs.mongodb.org/manual/tutorial/query-documents/#embedded-documents>`_.
304+
<https://docs.mongodb.com/manual/tutorial/query-embedded-documents/>`_.
305305

306306
What does *CursorNotFound* cursor id not valid at server mean?
307307
--------------------------------------------------------------

0 commit comments

Comments
 (0)