[Python-checkins] r88889 - in tracker/instances/python-dev/extensions: local_replace.py test/local_replace_data.txt
ezio.melotti
python-checkins at python.org
Mon Aug 22 23:34:21 CEST 2011
Author: ezio.melotti
Date: Mon Aug 22 23:34:21 2011
New Revision: 88889
Log:
Tweak PEP regex to prevent linkification in URLs.
Modified:
tracker/instances/python-dev/extensions/local_replace.py
tracker/instances/python-dev/extensions/test/local_replace_data.txt
Modified: tracker/instances/python-dev/extensions/local_replace.py
==============================================================================
--- tracker/instances/python-dev/extensions/local_replace.py (original)
+++ tracker/instances/python-dev/extensions/local_replace.py Mon Aug 22 23:34:21 2011
@@ -98,7 +98,7 @@
make_traceback_link),
# PEP 8, PEP8, PEP 0008, ...
- (re.compile(r'PEP\s*(\d{1,4})\b', re.I),
+ (re.compile(r'\b(?<!/)PEP\s*(\d{1,4})\b', re.I),
make_pep_link),
# devguide
Modified: tracker/instances/python-dev/extensions/test/local_replace_data.txt
==============================================================================
--- tracker/instances/python-dev/extensions/test/local_replace_data.txt (original)
+++ tracker/instances/python-dev/extensions/test/local_replace_data.txt Mon Aug 22 23:34:21 2011
@@ -190,6 +190,8 @@
see PEP 15000
write a PEP!
write a PEP!
+http://wiki.python.org/moin/SummerOfCode/2011/PEP393
+<a href="http://wiki.python.org/moin/SummerOfCode/2011/PEP393">http://wiki.python.org/moin/SummerOfCode/2011/PEP393</a>
##
##
see the devguide.
More information about the Python-checkins
mailing list