From: Senthil Kumaran Date: Sun, 9 Apr 2017 17:15:06 +0000 (-0700) Subject: Remove invalid comment in urllib.request. (#1055) X-Git-Tag: v3.6.2rc1~245 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=854ca174a92970d11d9b063af46e00d132832944;p=thirdparty%2FPython%2Fcpython.git Remove invalid comment in urllib.request. (#1055) (cherry picked from commit a2a9ddd923a849124bdd1c484f70f02df6fde0e9) --- diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py index b6690c3d0e4b..3e8200046643 100644 --- a/Lib/urllib/request.py +++ b/Lib/urllib/request.py @@ -1658,14 +1658,10 @@ else: of the 'file' scheme; not recommended for general use.""" return quote(pathname) -# This really consists of two pieces: -# (1) a class which handles opening of all sorts of URLs -# (plus assorted utilities etc.) -# (2) a set of functions for parsing URLs -# XXX Should these be separated out into different modules? - ftpcache = {} + + class URLopener: """Class to open URLs. This is a class rather than just a subroutine because we may need