summaryrefslogtreecommitdiffstats
path: root/Tools/faqwiz/faqconf.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-12-21 07:05:32 (GMT)
committerGuido van Rossum <guido@python.org>1997-12-21 07:05:32 (GMT)
commit80e57fb21b76fb3aa78c327d2d8381b5014d5642 (patch)
treef34389aa704bdbe07f500866bab8f166ebb992ea /Tools/faqwiz/faqconf.py
parent9897f0f847b1107f897862602531d5f78112d7fb (diff)
downloadcpython-80e57fb21b76fb3aa78c327d2d8381b5014d5642.zip
cpython-80e57fb21b76fb3aa78c327d2d8381b5014d5642.tar.gz
cpython-80e57fb21b76fb3aa78c327d2d8381b5014d5642.tar.bz2
Converted to use re instead of regex; version 0.9.0.
Diffstat (limited to 'Tools/faqwiz/faqconf.py')
-rw-r--r--Tools/faqwiz/faqconf.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/Tools/faqwiz/faqconf.py b/Tools/faqwiz/faqconf.py
index 1fd4672..e1e6e39 100644
--- a/Tools/faqwiz/faqconf.py
+++ b/Tools/faqwiz/faqconf.py
@@ -49,7 +49,7 @@ entries marked with * were changed within the last 7 days.)
# Version -- don't change unless you edit faqwiz.py
-WIZVERSION = "0.8.4" # FAQ Wizard version
+WIZVERSION = "0.9.0" # FAQ Wizard version
# This parameter is normally overwritten with a dynamic value
@@ -58,12 +58,12 @@ import os, sys
FAQCGI = os.path.basename(sys.argv[0]) or FAQCGI
del os, sys
-# Regular expression to recognize FAQ entry files: group(1) should be
-# the section number, group(2) should be the question number. Both
-# should be fixed width so simple-minded sorting yields the right
-# order.
+# Perl (re module) style regular expression to recognize FAQ entry
+# files: group(1) should be the section number, group(2) should be the
+# question number. Both should be fixed width so simple-minded
+# sorting yields the right order.
-OKFILENAME = "^faq\([0-9][0-9]\)\.\([0-9][0-9][0-9]\)\.htp$"
+OKFILENAME = r"^faq(\d\d)\.(\d\d\d)\.htp$"
# Format to construct a FAQ entry file name