]> granicus.if.org Git - python/commitdiff
Use source reST role instead of file where it makes sense.
authorÉric Araujo <merwok@netwok.org>
Mon, 5 Mar 2012 15:43:41 +0000 (16:43 +0100)
committerÉric Araujo <merwok@netwok.org>
Mon, 5 Mar 2012 15:43:41 +0000 (16:43 +0100)
source generates a nifty link to the Mercurial web viewer.

Doc/howto/cporting.rst
Doc/howto/regex.rst

index 98db9dd3698ea0127976b096657dd9df30accc72..bea21535947ea005b9c51d243c88d3e15c431b77 100644 (file)
@@ -261,8 +261,8 @@ behave slightly differently from real Capsules.  Specifically:
     copy as you see fit.)
 
 You can find :file:`capsulethunk.h` in the Python source distribution
-in the :file:`Doc/includes` directory.  We also include it here for
-your reference; here is :file:`capsulethunk.h`:
+as :source:`Doc/includes/capsulethunk.h`.  We also include it here for
+your convenience:
 
 .. literalinclude:: ../includes/capsulethunk.h
 
index 1523c48664614712ec73c42c9871802e6a2507ec..d56be2195ca72ddaeb0b51602abe4caed1cc1f9c 100644 (file)
@@ -365,7 +365,7 @@ and more.
 
 You can learn about this by interactively experimenting with the :mod:`re`
 module.  If you have Tkinter available, you may also want to look at
-:file:`Tools/scripts/redemo.py`, a demonstration program included with the
+:source:`Tools/scripts/redemo.py`, a demonstration program included with the
 Python distribution.  It allows you to enter REs and strings, and displays
 whether the RE matches or fails. :file:`redemo.py` can be quite useful when
 trying to debug a complicated RE.  Phil Schwartz's `Kodos
@@ -501,7 +501,7 @@ more convenient.  If a program contains a lot of regular expressions, or re-uses
 the same ones in several locations, then it might be worthwhile to collect all
 the definitions in one place, in a section of code that compiles all the REs
 ahead of time.  To take an example from the standard library, here's an extract
-from :file:`xmllib.py`::
+from the deprecated :mod:`xmllib` module::
 
    ref = re.compile( ... )
    entityref = re.compile( ... )