X Tutup
Skip to content

Commit fdfaf0a

Browse files
committed
Use source reST role instead of file where it makes sense.
source generates a nifty link to the Mercurial web viewer.
1 parent d3899e3 commit fdfaf0a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Doc/howto/cporting.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,8 @@ behave slightly differently from real Capsules. Specifically:
261261
copy as you see fit.)
262262

263263
You can find :file:`capsulethunk.h` in the Python source distribution
264-
in the :file:`Doc/includes` directory. We also include it here for
265-
your reference; here is :file:`capsulethunk.h`:
264+
as :source:`Doc/includes/capsulethunk.h`. We also include it here for
265+
your convenience:
266266

267267
.. literalinclude:: ../includes/capsulethunk.h
268268

Doc/howto/regex.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ and more.
360360

361361
You can learn about this by interactively experimenting with the :mod:`re`
362362
module. If you have :mod:`tkinter` available, you may also want to look at
363-
:file:`Tools/demo/redemo.py`, a demonstration program included with the
363+
:source:`Tools/demo/redemo.py`, a demonstration program included with the
364364
Python distribution. It allows you to enter REs and strings, and displays
365365
whether the RE matches or fails. :file:`redemo.py` can be quite useful when
366366
trying to debug a complicated RE. Phil Schwartz's `Kodos
@@ -495,7 +495,7 @@ more convenient. If a program contains a lot of regular expressions, or re-uses
495495
the same ones in several locations, then it might be worthwhile to collect all
496496
the definitions in one place, in a section of code that compiles all the REs
497497
ahead of time. To take an example from the standard library, here's an extract
498-
from the now deprecated :file:`xmllib.py`::
498+
from the now-defunct Python 2 standard :mod:`xmllib` module::
499499

500500
ref = re.compile( ... )
501501
entityref = re.compile( ... )

0 commit comments

Comments
 (0)
X Tutup