aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/package_index.py
diff options
context:
space:
mode:
authorstepshal <nessento@openmailbox.org>2016-07-21 09:37:34 +0700
committerstepshal <nessento@openmailbox.org>2016-07-21 09:37:34 +0700
commit39bf3155d47c0024240be414a611dcb6d549f53c (patch)
tree373f653d4aec874e2aa3b2a9bc7c77f8526ceb89 /setuptools/package_index.py
parent966e2fa4118277ed4551aa2215ac6ebac34b37e5 (diff)
downloadexternal_python_setuptools-39bf3155d47c0024240be414a611dcb6d549f53c.tar.gz
external_python_setuptools-39bf3155d47c0024240be414a611dcb6d549f53c.tar.bz2
external_python_setuptools-39bf3155d47c0024240be414a611dcb6d549f53c.zip
Add missing blank lines after class or function definition.
Diffstat (limited to 'setuptools/package_index.py')
-rwxr-xr-xsetuptools/package_index.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/setuptools/package_index.py b/setuptools/package_index.py
index 77f5f96e..0ea09bd6 100755
--- a/setuptools/package_index.py
+++ b/setuptools/package_index.py
@@ -194,6 +194,7 @@ def unique_values(func):
return unique_everseen(func(*args, **kwargs))
return wrapper
+
REL = re.compile("""<([^>]*\srel\s*=\s*['"]?([^'">]+)[^>]*)>""", re.I)
# this line is here to fix emacs' cruddy broken syntax highlighting
@@ -894,6 +895,7 @@ class PackageIndex(Environment):
def warn(self, msg, *args):
log.warn(msg, *args)
+
# This pattern matches a character entity reference (a decimal numeric
# references, a hexadecimal numeric reference, or a named reference).
entity_sub = re.compile(r'&(#(\d+|x[\da-fA-F]+)|[\w.:-]+);?').sub
@@ -1059,6 +1061,7 @@ def open_with_auth(url, opener=urllib.request.urlopen):
return fp
+
# adding a timeout to avoid freezing package_index
open_with_auth = socket_timeout(_SOCKET_TIMEOUT)(open_with_auth)