[Python-checkins] r50735 - sandbox/branches/setuptools-0.6/setuptools/package_index.py

phillip.eby python-checkins at python.org
Thu Jul 20 22:47:41 CEST 2006


Author: phillip.eby
Date: Thu Jul 20 22:47:41 2006
New Revision: 50735

Modified:
   sandbox/branches/setuptools-0.6/setuptools/package_index.py
Log:
Backport PyPI regex change.


Modified: sandbox/branches/setuptools-0.6/setuptools/package_index.py
==============================================================================
--- sandbox/branches/setuptools-0.6/setuptools/package_index.py	(original)
+++ sandbox/branches/setuptools-0.6/setuptools/package_index.py	Thu Jul 20 22:47:41 2006
@@ -11,8 +11,8 @@
 HREF = re.compile("""href\\s*=\\s*['"]?([^'"> ]+)""", re.I)
 # this is here to fix emacs' cruddy broken syntax highlighting
 PYPI_MD5 = re.compile(
-    '<a href="([^"#]+)">([^<]+)</a>\n\s+\\(<a href="[^?]+\?:action=show_md5'
-    '&amp;digest=([0-9a-f]{32})">md5</a>\\)'
+    '<a href="([^"#]+)">([^<]+)</a>\n\s+\\(<a (?:title="MD5 hash"\n\s+)'
+    'href="[^?]+\?:action=show_md5&amp;digest=([0-9a-f]{32})">md5</a>\\)'
 )
 
 URL_SCHEME = re.compile('([-+.a-z0-9]{2,}):',re.I).match


More information about the Python-checkins mailing list