aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/package_index.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2018-06-03 10:05:20 -0400
committerJason R. Coombs <jaraco@jaraco.com>2018-06-03 10:05:20 -0400
commit3174f82b943f53e04ad7a5a6b2aa67ca2b2d44c5 (patch)
tree83a9498f1f79e409263afe3ff63befc50cfab356 /setuptools/package_index.py
parent08d20c8d43dcda7a79efca0434185102fe6dc9bc (diff)
downloadexternal_python_setuptools-3174f82b943f53e04ad7a5a6b2aa67ca2b2d44c5.tar.gz
external_python_setuptools-3174f82b943f53e04ad7a5a6b2aa67ca2b2d44c5.tar.bz2
external_python_setuptools-3174f82b943f53e04ad7a5a6b2aa67ca2b2d44c5.zip
Use raw strings for regexes
Diffstat (limited to 'setuptools/package_index.py')
-rwxr-xr-xsetuptools/package_index.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/setuptools/package_index.py b/setuptools/package_index.py
index ed4162cd..9bf0421f 100755
--- a/setuptools/package_index.py
+++ b/setuptools/package_index.py
@@ -29,11 +29,11 @@ from setuptools.wheel import Wheel
__metaclass__ = type
EGG_FRAGMENT = re.compile(r'^egg=([-A-Za-z0-9_.+!]+)$')
-HREF = re.compile("""href\\s*=\\s*['"]?([^'"> ]+)""", re.I)
+HREF = re.compile(r"""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 (?:title="MD5 hash"\n\\s+)'
- 'href="[^?]+\\?:action=show_md5&amp;digest=([0-9a-f]{32})">md5</a>\\)'
+ r'<a href="([^"#]+)">([^<]+)</a>\n\s+\(<a (?:title="MD5 hash"\n\s+)'
+ r'href="[^?]+\?:action=show_md5&amp;digest=([0-9a-f]{32})">md5</a>\)'
)
URL_SCHEME = re.compile('([-+.a-z0-9]{2,}):', re.I).match
EXTENSIONS = ".tar.gz .tar.bz2 .tar .zip .tgz".split()