Update urllib3/requests GitHub URLs
MODIFY
docs/index.rst
docs/index.rst
@@ -43,7 +43,7 @@ urllib3 can be installed with `pip <https://pip.pypa.io>`_::
Alternatively, you can grab the latest source code from `GitHub <https://github.com/urllib3/urllib3>`_::
- $ git clone git://github.com/shazow/urllib3.git
+ $ git clone git://github.com/urllib3/urllib3.git
$ python setup.py install
Usage

MODIFY
dummyserver/server.py
dummyserver/server.py
@@ -86,7 +86,7 @@ def _has_ipv6(host):
# has_ipv6 returns true if cPython was compiled with IPv6 support.
# It does not tell us if the system has IPv6 support enabled. To
# determine that we must bind to an IPv6 address.
- # https://github.com/shazow/urllib3/pull/611
+ # https://github.com/urllib3/urllib3/pull/611
# https://bugs.python.org/issue658327
try:
sock = socket.socket(socket.AF_INET6)
@@ -102,7 +102,7 @@ def _has_ipv6(host):
# Some systems may have IPv6 support but DNS may not be configured
# properly. We can not count that localhost will resolve to ::1 on all
-# systems. See https://github.com/shazow/urllib3/pull/611 and
+# systems. See https://github.com/urllib3/urllib3/pull/611 and
# https://bugs.python.org/issue18792
HAS_IPV6_AND_DNS = _has_ipv6("localhost")
HAS_IPV6 = _has_ipv6("::1")

MODIFY
src/urllib3/connection.py
src/urllib3/connection.py
@@ -412,7 +412,7 @@ class VerifiedHTTPSConnection(HTTPSConnection):
(
"Certificate for {0} has no `subjectAltName`, falling back to check for a "
"`commonName` for now. This feature is being removed by major browsers and "
- "deprecated by RFC 2818. (See https://github.com/shazow/urllib3/issues/497 "
+ "deprecated by RFC 2818. (See https://github.com/urllib3/urllib3/issues/497 "
"for details.)".format(hostname)
),
SubjectAltNameWarning,

MODIFY
src/urllib3/connectionpool.py
src/urllib3/connectionpool.py
@@ -626,7 +626,7 @@ class HTTPConnectionPool(ConnectionPool, RequestMethods):
#
# See issue #651 [1] for details.
#
- # [1] <https://github.com/shazow/urllib3/issues/651>
+ # [1] <https://github.com/urllib3/urllib3/issues/651>
release_this_conn = release_conn
# Merge the proxy headers. Only do this in HTTP. We have to copy the

MODIFY
src/urllib3/util/connection.py
src/urllib3/util/connection.py
@@ -121,7 +121,7 @@ def _has_ipv6(host):
# has_ipv6 returns true if cPython was compiled with IPv6 support.
# It does not tell us if the system has IPv6 support enabled. To
# determine that we must bind to an IPv6 address.
- # https://github.com/shazow/urllib3/pull/611
+ # https://github.com/urllib3/urllib3/pull/611
# https://bugs.python.org/issue658327
try:
sock = socket.socket(socket.AF_INET6)

MODIFY
test/test_connectionpool.py
test/test_connectionpool.py
@@ -285,7 +285,7 @@ class TestConnectionPool(object):
# The pool should never be empty, and with these two exceptions
# being raised, a retry will be triggered, but that retry will
# fail, eventually raising MaxRetryError, not EmptyPoolError
- # See: https://github.com/shazow/urllib3/issues/76
+ # See: https://github.com/urllib3/urllib3/issues/76
pool._make_request = lambda *args, **kwargs: _raise(HTTPException)
with pytest.raises(MaxRetryError):
pool.request("GET", "/", retries=1, pool_timeout=0.01)
@@ -425,7 +425,7 @@ class TestConnectionPool(object):
would be released if the initial request failed, even if a retry
succeeded.
- [1] <https://github.com/shazow/urllib3/issues/651>
+ [1] <https://github.com/urllib3/urllib3/issues/651>
"""
class _raise_once_make_request_function(object):

MODIFY
test/test_queue_monkeypatch.py
test/test_queue_monkeypatch.py
@@ -20,7 +20,7 @@ class BadError(Exception):
class TestMonkeypatchResistance(object):
"""
Test that connection pool works even with a monkey patched Queue module,
- see obspy/obspy#1599, kennethreitz/requests#3742, shazow/urllib3#1061.
+ see obspy/obspy#1599, psf/requests#3742, urllib3/urllib3#1061.
"""
def test_queue_monkeypatching(self):

MODIFY
test/with_dummyserver/test_socketlevel.py
test/with_dummyserver/test_socketlevel.py
@@ -818,7 +818,7 @@ class TestSocketClosing(SocketDummyServerTestCase):
would be released if the initial request failed, even if a retry
succeeded.
- [1] <https://github.com/shazow/urllib3/issues/651>
+ [1] <https://github.com/urllib3/urllib3/issues/651>
"""
def socket_handler(listener):
@@ -1237,7 +1237,7 @@ class TestSSL(SocketDummyServerTestCase):
with pytest.raises(MaxRetryError) as cm:
request()
assert isinstance(cm.value.reason, SSLError)
- # Should not hang, see https://github.com/shazow/urllib3/issues/529
+ # Should not hang, see https://github.com/urllib3/urllib3/issues/529
with pytest.raises(MaxRetryError):
request()

Update urllib3/requests GitHub URLs (#1719)