We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45d22c2 commit a2a9dddCopy full SHA for a2a9ddd
Lib/urllib/request.py
@@ -1657,14 +1657,10 @@ def pathname2url(pathname):
1657
of the 'file' scheme; not recommended for general use."""
1658
return quote(pathname)
1659
1660
-# This really consists of two pieces:
1661
-# (1) a class which handles opening of all sorts of URLs
1662
-# (plus assorted utilities etc.)
1663
-# (2) a set of functions for parsing URLs
1664
-# XXX Should these be separated out into different modules?
1665
-
1666
1667
ftpcache = {}
+
1668
class URLopener:
1669
"""Class to open URLs.
1670
This is a class rather than just a subroutine because we may need
0 commit comments