summaryrefslogtreecommitdiffstats
path: root/Doc/howto/regex.rst
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2012-03-05 14:50:37 (GMT)
committerÉric Araujo <merwok@netwok.org>2012-03-05 14:50:37 (GMT)
commitfdfaf0aba2fe8cc8e985d64bdd929b16a1c37690 (patch)
treeb1cf9e1c8057056c866ad6a3cd28c6981585f956 /Doc/howto/regex.rst
parentd3899e320fa4c10166c5eb7dc7996d15dd541f46 (diff)
downloadcpython-fdfaf0aba2fe8cc8e985d64bdd929b16a1c37690.zip
cpython-fdfaf0aba2fe8cc8e985d64bdd929b16a1c37690.tar.gz
cpython-fdfaf0aba2fe8cc8e985d64bdd929b16a1c37690.tar.bz2
Use source reST role instead of file where it makes sense.
source generates a nifty link to the Mercurial web viewer.
Diffstat (limited to 'Doc/howto/regex.rst')
-rw-r--r--Doc/howto/regex.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/howto/regex.rst b/Doc/howto/regex.rst
index 07a8b56..3ac03ca 100644
--- a/Doc/howto/regex.rst
+++ b/Doc/howto/regex.rst
@@ -360,7 +360,7 @@ and more.
You can learn about this by interactively experimenting with the :mod:`re`
module. If you have :mod:`tkinter` available, you may also want to look at
-:file:`Tools/demo/redemo.py`, a demonstration program included with the
+:source:`Tools/demo/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
@@ -495,7 +495,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 the now deprecated :file:`xmllib.py`::
+from the now-defunct Python 2 standard :mod:`xmllib` module::
ref = re.compile( ... )
entityref = re.compile( ... )