[Python-checkins] devguide: Use built-in reST roles for PEP links

eric.araujo python-checkins at python.org
Sun Jun 19 16:56:21 CEST 2011


http://hg.python.org/devguide/rev/8eb739687196
changeset:   433:8eb739687196
user:        Éric Araujo <merwok at netwok.org>
date:        Sun Jun 19 16:51:30 2011 +0200
summary:
  Use built-in reST roles for PEP links

files:
  index.rst |  6 ++----
  patch.rst |  4 +---
  2 files changed, 3 insertions(+), 7 deletions(-)


diff --git a/index.rst b/index.rst
--- a/index.rst
+++ b/index.rst
@@ -136,8 +136,8 @@
   Core developers should use ssh://hg@hg.python.org/devguide instead, so
   that they can push back their edits to the server.
 * Coding style guides
-    * `PEP 7`_ (Style Guide for C Code)
-    * `PEP 8`_ (Style Guide for Python Code)
+    * :PEP:`7` (Style Guide for C Code)
+    * :PEP:`8` (Style Guide for Python Code)
 * `Issue tracker <http://bugs.python.org/>`_
     * `Meta tracker <http://psf.upfronthosting.co.za/roundup/meta>`_ (issue
       tracker for the issue tracker)
@@ -165,8 +165,6 @@
 .. _Firefox search engine plug-in: http://www.python.org/dev/searchplugin/
 .. _Misc directory: http://hg.python.org/cpython/file/tip/Misc
 .. _PEPs: http://www.python.org/dev/peps
-.. _PEP 7: http://www.python.org/dev/peps/pep-0007
-.. _PEP 8: http://www.python.org/dev/peps/pep-0008
 .. _python.org maintenance: http://python.org/dev/pydotorg/
 .. _Python Mentors: http://pythonmentors.com/
 .. _PyPy: http://www.pypy.org/
diff --git a/patch.rst b/patch.rst
--- a/patch.rst
+++ b/patch.rst
@@ -69,7 +69,7 @@
 do to help ensure that your patch is accepted.
 
 First, make sure to follow Python's style guidelines. For Python code you
-should follow `PEP 8`_, and for C code you should follow `PEP 7`_. If you have
+should follow :PEP:`8`, and for C code you should follow :PEP:`7`. If you have
 one or two discrepencies those can be fixed by the core developer who commits
 your patch. But if you have systematic deviations from the style guides your
 patch will be put on hold until you fix the formatting issues.
@@ -104,8 +104,6 @@
 
 
 .. _contributor form: http://www.python.org/psf/contrib/
-.. _PEP 7: http://www.python.org/dev/peps/pep-0007
-.. _PEP 8: http://www.python.org/dev/peps/pep-0008
 .. _Python Software Foundation: http://www.python.org/psf/
 
 

-- 
Repository URL: http://hg.python.org/devguide


More information about the Python-checkins mailing list