From 2f17a0e8c8ae54411b2851941b3694194ae4fa01 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Sat, 9 Jun 2018 20:59:43 -0700 Subject: [PATCH] Update Python 2 doc links to Python 3 Python 3 docs are more actively maintained and are the future. --- doc/conf.py | 2 +- doc/usage/restructuredtext/directives.rst | 2 +- sphinx/ext/napoleon/iterators.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index 18d82b223..732c4d4a0 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -103,7 +103,7 @@ texinfo_documents = [ # We're not using intersphinx right now, but if we did, this would be part of # the mapping: -intersphinx_mapping = {'python': ('https://docs.python.org/2/', None)} +intersphinx_mapping = {'python': ('https://docs.python.org/3/', None)} # Sphinx document translation with sphinx gettext feature uses these settings: locale_dirs = ['locale/'] diff --git a/doc/usage/restructuredtext/directives.rst b/doc/usage/restructuredtext/directives.rst index a99ccdbf5..f03e12c4d 100644 --- a/doc/usage/restructuredtext/directives.rst +++ b/doc/usage/restructuredtext/directives.rst @@ -864,7 +864,7 @@ Including content based on tags All tags must follow the standard Python identifier syntax as set out in the `Identifiers and keywords - `_ + `_ documentation. That is, a tag expression may only consist of tags that conform to the syntax of Python variables. In ASCII, this consists of the uppercase and lowercase letters ``A`` through ``Z``, the underscore ``_`` diff --git a/sphinx/ext/napoleon/iterators.py b/sphinx/ext/napoleon/iterators.py index b4bba8863..8926c865c 100644 --- a/sphinx/ext/napoleon/iterators.py +++ b/sphinx/ext/napoleon/iterators.py @@ -41,7 +41,7 @@ class peek_iter(object): See Also -------- `peek_iter` can operate as a drop in replacement for the built-in - `iter `_ function. + `iter `_ function. Attributes ----------