<86>Jan 26 03:01:35 userdel[3237813]: delete user 'rooter' <86>Jan 26 03:01:35 userdel[3237813]: removed group 'rooter' owned by 'rooter' <86>Jan 26 03:01:35 userdel[3237813]: removed shadow group 'rooter' owned by 'rooter' <86>Jan 26 03:01:35 groupadd[3237859]: group added to /etc/group: name=rooter, GID=651 <86>Jan 26 03:01:35 groupadd[3237859]: group added to /etc/gshadow: name=rooter <86>Jan 26 03:01:35 groupadd[3237859]: new group: name=rooter, GID=651 <86>Jan 26 03:01:35 useradd[3237887]: new user: name=rooter, UID=651, GID=651, home=/root, shell=/bin/bash <86>Jan 26 03:01:35 userdel[3237923]: delete user 'builder' <86>Jan 26 03:01:35 userdel[3237923]: removed group 'builder' owned by 'builder' <86>Jan 26 03:01:35 userdel[3237923]: removed shadow group 'builder' owned by 'builder' <86>Jan 26 03:01:35 groupadd[3237937]: group added to /etc/group: name=builder, GID=652 <86>Jan 26 03:01:35 groupadd[3237937]: group added to /etc/gshadow: name=builder <86>Jan 26 03:01:35 groupadd[3237937]: new group: name=builder, GID=652 <86>Jan 26 03:01:35 useradd[3237957]: new user: name=builder, UID=652, GID=652, home=/usr/src, shell=/bin/bash <13>Jan 26 03:01:38 rpmi: libgdbm-1.8.3-alt10 1454943313 installed <13>Jan 26 03:01:38 rpmi: libexpat-2.2.4-alt1 1503305341 installed <13>Jan 26 03:01:38 rpmi: libp11-kit-0.23.15-alt1 sisyphus+226408.100.2.1 1554288187 installed <13>Jan 26 03:01:38 rpmi: libtasn1-4.14-alt1 p9+235792.100.2.1 1565425233 installed <13>Jan 26 03:01:38 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Jan 26 03:01:38 rpmi: alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Jan 26 03:01:38 rpmi: ca-certificates-2019.10.28-alt1 p9+240634.100.1.1 1573575926 installed <13>Jan 26 03:01:38 rpmi: ca-trust-0.1.2-alt1 p9+233349.100.1.1 1561655062 installed <13>Jan 26 03:01:38 rpmi: p11-kit-trust-0.23.15-alt1 sisyphus+226408.100.2.1 1554288187 installed <13>Jan 26 03:01:38 rpmi: libcrypto1.1-1.1.1d-alt1.1 p9+237853.200.3.1 1569251778 installed <13>Jan 26 03:01:38 rpmi: libssl1.1-1.1.1d-alt1.1 p9+237853.200.3.1 1569251778 installed <13>Jan 26 03:01:38 rpmi: python3-3.7.4-alt2 p9+239459.100.1.1 1571444591 installed <13>Jan 26 03:01:39 rpmi: libpython3-3.7.4-alt2 p9+239459.100.1.1 1571444591 installed <13>Jan 26 03:01:39 rpmi: python3-base-3.7.4-alt2 p9+239459.100.1.1 1571444591 installed <13>Jan 26 03:01:39 rpmi: tests-for-installed-python3-pkgs-0.1.13.1-alt2 1535450458 installed <13>Jan 26 03:01:39 rpmi: rpm-build-python3-0.1.13.1-alt2 1535450458 installed <13>Jan 26 03:01:43 rpmi: python3-module-pkg_resources-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed <13>Jan 26 03:01:43 rpmi: python-modules-curses-2.7.16-alt1 sisyphus+226365.200.2.1 1554143277 installed <13>Jan 26 03:01:43 rpmi: libtinfo-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686221 installed <13>Jan 26 03:01:43 rpmi: libncurses-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686221 installed <13>Jan 26 03:01:43 rpmi: python3-dev-3.7.4-alt2 p9+239459.100.1.1 1571444591 installed <13>Jan 26 03:01:43 rpmi: libverto-0.3.0-alt1_7 sisyphus+225932.100.1.1 1553994917 installed <13>Jan 26 03:01:43 rpmi: libkeyutils-1.6-alt2 sisyphus+226520.100.2.1 1554512088 installed <13>Jan 26 03:01:43 rpmi: libcom_err-1.44.6-alt1 sisyphus+224154.100.1.1 1552091653 installed <86>Jan 26 03:01:43 groupadd[3258506]: group added to /etc/group: name=_keytab, GID=499 <86>Jan 26 03:01:43 groupadd[3258506]: group added to /etc/gshadow: name=_keytab <86>Jan 26 03:01:43 groupadd[3258506]: new group: name=_keytab, GID=499 <13>Jan 26 03:01:43 rpmi: libkrb5-1.17.1-alt1 p9+242852.100.2.1 1576572448 installed <13>Jan 26 03:01:43 rpmi: libtirpc-1.0.3-alt1 1532008015 installed <13>Jan 26 03:01:43 rpmi: libnsl2-1.1.0-alt1_1 1511548748 installed <13>Jan 26 03:01:43 rpmi: python-modules-compiler-2.7.16-alt1 sisyphus+226365.200.2.1 1554143277 installed <13>Jan 26 03:01:43 rpmi: python-modules-email-2.7.16-alt1 sisyphus+226365.200.2.1 1554143277 installed <13>Jan 26 03:01:43 rpmi: python-modules-unittest-2.7.16-alt1 sisyphus+226365.200.2.1 1554143277 installed <13>Jan 26 03:01:43 rpmi: python-modules-encodings-2.7.16-alt1 sisyphus+226365.200.2.1 1554143277 installed <13>Jan 26 03:01:43 rpmi: python-modules-2.7.16-alt1 sisyphus+226365.200.2.1 1554143277 installed <13>Jan 26 03:01:43 rpmi: python-modules-nis-2.7.16-alt1 sisyphus+226365.200.2.1 1554143277 installed <13>Jan 26 03:01:43 rpmi: python-modules-ctypes-2.7.16-alt1 sisyphus+226365.200.2.1 1554143277 installed <13>Jan 26 03:01:43 rpmi: python-modules-multiprocessing-2.7.16-alt1 sisyphus+226365.200.2.1 1554143277 installed <13>Jan 26 03:01:43 rpmi: python-modules-logging-2.7.16-alt1 sisyphus+226365.200.2.1 1554143277 installed <13>Jan 26 03:01:43 rpmi: python-tools-2to3-2.7.16-alt1 sisyphus+226365.200.2.1 1554143277 installed <13>Jan 26 03:01:43 rpmi: python-modules-xml-2.7.16-alt1 sisyphus+226365.200.2.1 1554143277 installed <13>Jan 26 03:01:43 rpmi: python-modules-hotshot-2.7.16-alt1 sisyphus+226365.200.2.1 1554143277 installed <13>Jan 26 03:01:43 rpmi: python-modules-bsddb-2.7.16-alt1 sisyphus+226365.200.2.1 1554143277 installed <13>Jan 26 03:01:43 rpmi: python-2.7.16-alt1 sisyphus+226365.200.2.1 1554143277 installed <13>Jan 26 03:01:43 rpmi: python-modules-distutils-2.7.16-alt1 sisyphus+226365.200.2.1 1554143277 installed <13>Jan 26 03:01:43 rpmi: python-module-pkg_resources-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed <13>Jan 26 03:01:43 rpmi: libnsl2-devel-1.1.0-alt1_1 1511548748 installed <13>Jan 26 03:01:43 rpmi: python-dev-2.7.16-alt1 sisyphus+226365.200.2.1 1554143277 installed <13>Jan 26 03:01:43 rpmi: python-module-setuptools-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed <13>Jan 26 03:01:44 rpmi: python3-module-setuptools-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed Building target platforms: x86_64 Building for target x86_64 Wrote: /usr/src/in/nosrpm/python-module-ClientCookie-1.3.0-alt1.2.nosrc.rpm Installing python-module-ClientCookie-1.3.0-alt1.2.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.42658 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf ClientCookie-1.3.0 + echo 'Source #0 (ClientCookie-1.3.0.tar.gz):' Source #0 (ClientCookie-1.3.0.tar.gz): + /bin/gzip -dc /usr/src/RPM/SOURCES/ClientCookie-1.3.0.tar.gz + /bin/tar -xf - + cd ClientCookie-1.3.0 + /bin/chmod -c -Rf u+rwX,go-w . + cp -fR . ../python3 + find ../python3 -type f -name '*.py' -exec 2to3 -w -n '{}' + RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: Refactored ../python3/test/test_urllib2.py --- ../python3/test/test_urllib2.py (original) +++ ../python3/test/test_urllib2.py (refactored) @@ -9,9 +9,9 @@ # ProxyHandler, CustomProxy, CustomProxyHandler (I don't use a proxy) # GopherHandler (haven't used gopher for a decade or so...) -import unittest, StringIO, os, sys, UserDict - -import urllib2 +import unittest, io, os, sys, UserDict + +import urllib.request, urllib.error, urllib.parse from ClientCookie._urllib2_support import Request, AbstractHTTPHandler, \ build_opener, parse_head, urlopen from ClientCookie._Util import startswith @@ -45,14 +45,14 @@ class MockHeaders(UserDict.UserDict): def getallmatchingheaders(self, name): r = [] - for k, v in self.data.items(): + for k, v in list(self.data.items()): if k.lower() == name: r.append("%s: %s" % (k, v)) return r -class MockResponse(StringIO.StringIO): +class MockResponse(io.StringIO): def __init__(self, code, msg, headers, data, url=None): - StringIO.StringIO.__init__(self, data) + io.StringIO.__init__(self, data) self.code, self.msg, self.headers, self.url = code, msg, headers, url def info(self): return self.headers @@ -71,7 +71,7 @@ self.handle = handle self.action = action def __call__(self, *args): - return apply(self.handle, (self.meth_name, self.action)+args) + return self.handle(*(self.meth_name, self.action)+args) class MockHandler: processor_order = 500 @@ -99,7 +99,7 @@ res = MockResponse(200, "OK", {}, "") return self.parent.error("http", args[0], res, code, "", {}) elif action == "raise": - raise urllib2.URLError("blah") + raise urllib.error.URLError("blah") assert False def close(self): pass def add_parent(self, parent): @@ -146,12 +146,12 @@ # on them. # In fact, second mock handler returns self (instead of response), # which becomes the OpenerDirector's return value. - self.assert_(r == handlers[2]) + self.assertTrue(r == handlers[2]) calls = [(handlers[0], "http_open"), (handlers[2], "http_open")] for i in range(len(o.calls)): handler, name, args, kwds = o.calls[i] - self.assert_((handler, name) == calls[i]) - self.assert_(args == (req,)) + self.assertTrue((handler, name) == calls[i]) + self.assertTrue(args == (req,)) def test_handler_order(self): o = OpenerDirector() @@ -168,8 +168,8 @@ r = o.open("http://example.com/") # handlers called in reverse order, thanks to their sort order - self.assert_(o.calls[0][0] == handlers[1]) - self.assert_(o.calls[1][0] == handlers[0]) + self.assertTrue(o.calls[0][0] == handlers[1]) + self.assertTrue(o.calls[1][0] == handlers[0]) def test_raise(self): # raising URLError stops processing of request @@ -181,8 +181,8 @@ handlers = add_ordered_mock_handlers(o, meth_spec) req = Request("http://example.com/") - self.assertRaises(urllib2.URLError, o.open, req) - self.assert_(o.calls == [(handlers[0], "http_open", (req,), {})]) + self.assertRaises(urllib.error.URLError, o.open, req) + self.assertTrue(o.calls == [(handlers[0], "http_open", (req,), {})]) ## def test_error(self): ## # XXX this doesn't actually seem to be used in standard library, @@ -210,12 +210,12 @@ (handlers[2], "http_error_302", (req, Unknown, 302, "", {}))] for i in range(len(calls)): handler, method_name, args, kwds = o.calls[i] - self.assert_((handler, method_name) == calls[i][:2]) + self.assertTrue((handler, method_name) == calls[i][:2]) # check handler methods were called with expected arguments expected_args = calls[i][2] for j in range(len(args)): if expected_args[j] is not Unknown: - self.assert_(args[j] == expected_args[j]) + self.assertTrue(args[j] == expected_args[j]) def test_processors(self): # *_request / *_response methods get called appropriately @@ -239,17 +239,17 @@ handler, name, args, kwds = o.calls[i] if i < 2: # *_request - self.assert_((handler, name) == calls[i]) - self.assert_(len(args) == 1) - self.assert_(isinstance(args[0], Request)) + self.assertTrue((handler, name) == calls[i]) + self.assertTrue(len(args) == 1) + self.assertTrue(isinstance(args[0], Request)) else: # *_response - self.assert_((handler, name) == calls[i]) - self.assert_(len(args) == 2) - self.assert_(isinstance(args[0], Request)) + self.assertTrue((handler, name) == calls[i]) + self.assertTrue(len(args) == 2) + self.assertTrue(isinstance(args[0], Request)) # response from opener.open is None, because there's no # handler that defines http_open to handle it - self.assert_(args[1] is None or + self.assertTrue(args[1] is None or isinstance(args[1], MockResponse)) @@ -275,7 +275,7 @@ def request(self, method, url, body=None, headers={}): self.method = method self.selector = url - self.req_headers.extend(headers.items()) + self.req_headers.extend(list(headers.items())) if body: self.data = body if self.raise_on_endheaders: @@ -288,9 +288,9 @@ def __init__(self, data): self.data = data def retrfile(self, filename, filetype): self.filename, self.filetype = filename, filetype - return StringIO.StringIO(self.data), len(self.data) - -class NullFTPHandler(urllib2.FTPHandler): + return io.StringIO(self.data), len(self.data) + +class NullFTPHandler(urllib.request.FTPHandler): def __init__(self, data): self.data = data def connect_ftp(self, user, passwd, host, port, dirs): self.user, self.passwd = user, passwd @@ -300,8 +300,8 @@ return self.ftpwrapper def sanepathname2url(path): - import urllib - urlpath = urllib.pathname2url(path) + import urllib.request, urllib.parse, urllib.error + urlpath = urllib.request.pathname2url(path) if os.name == "nt" and urlpath.startswith("///"): urlpath = urlpath[2:] # XXX don't ask me about the mac... @@ -351,19 +351,19 @@ ]: r = h.ftp_open(Request(url)) # ftp authentication not yet implemented by FTPHandler - self.assert_(h.user == h.passwd == "") - self.assert_(h.host == socket.gethostbyname(host)) - self.assert_(h.port == port) - self.assert_(h.dirs == dirs) - self.assert_(h.ftpwrapper.filename == filename) - self.assert_(h.ftpwrapper.filetype == type_) + self.assertTrue(h.user == h.passwd == "") + self.assertTrue(h.host == socket.gethostbyname(host)) + self.assertTrue(h.port == port) + self.assertTrue(h.dirs == dirs) + self.assertTrue(h.ftpwrapper.filename == filename) + self.assertTrue(h.ftpwrapper.filetype == type_) headers = r.info() - self.assert_(headers["Content-type"] == mimetype) - self.assert_(int(headers["Content-length"]) == len(data)) + self.assertTrue(headers["Content-type"] == mimetype) + self.assertTrue(int(headers["Content-length"]) == len(data)) def test_file(self): import time, rfc822, socket - h = urllib2.FileHandler() + h = urllib.request.FileHandler() o = h.parent = MockOpener() #TESTFN = test_support.TESTFN @@ -418,12 +418,12 @@ finally: f.close() - self.assertRaises(urllib2.URLError, + self.assertRaises(urllib.error.URLError, h.file_open, Request(url)) finally: os.remove(TESTFN) - h = urllib2.FileHandler() + h = urllib.request.FileHandler() o = h.parent = MockOpener() # XXXX why does // mean ftp (and /// mean not ftp!), and where # is file: scheme specified? I think this is really a bug, and @@ -442,10 +442,10 @@ try: h.file_open(req) # XXXX remove OSError when bug fixed - except (urllib2.URLError, OSError): - self.assert_(not ftp) + except (urllib.error.URLError, OSError): + self.assertTrue(not ftp) else: - self.assert_(o.req is req) + self.assertTrue(o.req is req) self.assertEqual(req.type, "ftp") def test_http(self): @@ -465,21 +465,21 @@ r.code, r.msg == 200, "OK" # added from MockHTTPClass.getreply() hdrs = r.info() hdrs.get; hdrs.has_key # r.info() gives dict from .getreply() - self.assert_(r.geturl() == url) - - self.assert_(http.host == "example.com") - self.assert_(http.level == 0) - self.assert_(http.method == method) - self.assert_(http.selector == "/") + self.assertTrue(r.geturl() == url) + + self.assertTrue(http.host == "example.com") + self.assertTrue(http.level == 0) + self.assertTrue(http.method == method) + self.assertTrue(http.selector == "/") http.req_headers.sort() - self.assert_(http.req_headers == [ + self.assertTrue(http.req_headers == [ ("Connection", "close"), ("Foo", "bar"), ("Spam", "eggs")]) - self.assert_(http.data == data) + self.assertTrue(http.data == data) # check socket.error converted to URLError http.raise_on_endheaders = True - self.assertRaises(urllib2.URLError, h.do_open, http, req) + self.assertRaises(urllib.error.URLError, h.do_open, http, req) # check adding of standard headers o.addheaders = [("Spam", "eggs")] @@ -488,17 +488,17 @@ r = MockResponse(200, "OK", {}, "") newreq = h.do_request_(req) if data is None: # GET - self.assert_(not req.unredirected_hdrs.has_key("Content-length")) - self.assert_(not req.unredirected_hdrs.has_key("Content-type")) + self.assertTrue("Content-length" not in req.unredirected_hdrs) + self.assertTrue("Content-type" not in req.unredirected_hdrs) else: # POST # No longer true, due to workarouhd for buggy httplib # in Python versions < 2.4: #self.assert_(req.unredirected_hdrs["Content-length"] == "0") - self.assert_(req.unredirected_hdrs["Content-type"] == + self.assertTrue(req.unredirected_hdrs["Content-type"] == "application/x-www-form-urlencoded") # XXX the details of Host could be better tested - self.assert_(req.unredirected_hdrs["Host"] == "example.com") - self.assert_(req.unredirected_hdrs["Spam"] == "eggs") + self.assertTrue(req.unredirected_hdrs["Host"] == "example.com") + self.assertTrue(req.unredirected_hdrs["Spam"] == "eggs") # don't clobber existing headers req.add_unredirected_header("Content-length", "foo") @@ -506,34 +506,34 @@ req.add_unredirected_header("Host", "baz") req.add_unredirected_header("Spam", "foo") newreq = h.do_request_(req) - self.assert_(req.unredirected_hdrs["Content-length"] == "foo") - self.assert_(req.unredirected_hdrs["Content-type"] == "bar") - self.assert_(req.unredirected_hdrs["Host"] == "baz") - self.assert_(req.unredirected_hdrs["Spam"] == "foo") + self.assertTrue(req.unredirected_hdrs["Content-length"] == "foo") + self.assertTrue(req.unredirected_hdrs["Content-type"] == "bar") + self.assertTrue(req.unredirected_hdrs["Host"] == "baz") + self.assertTrue(req.unredirected_hdrs["Spam"] == "foo") def test_request_upgrade(self): - new_req_class = hasattr(urllib2.Request, "has_header") + new_req_class = hasattr(urllib.request.Request, "has_header") h = HTTPRequestUpgradeProcessor() o = h.parent = MockOpener() # urllib2.Request gets upgraded, unless it's the new Request # class from 2.4 - req = urllib2.Request("http://example.com/") + req = urllib.request.Request("http://example.com/") newreq = h.http_request(req) if new_req_class: - self.assert_(newreq is req) + self.assertTrue(newreq is req) else: - self.assert_(newreq is not req) + self.assertTrue(newreq is not req) if new_req_class: - self.assert_(newreq.__class__ is not Request) + self.assertTrue(newreq.__class__ is not Request) else: - self.assert_(newreq.__class__ is Request) + self.assertTrue(newreq.__class__ is Request) # ClientCookie._urllib2_support.Request doesn't get upgraded req = Request("http://example.com/") newreq = h.http_request(req) - self.assert_(newreq is req) - self.assert_(newreq.__class__ is Request) + self.assertTrue(newreq is req) + self.assertTrue(newreq.__class__ is Request) def test_referer(self): h = HTTPRefererProcessor() @@ -544,17 +544,17 @@ req = Request(url) r = MockResponse(200, "OK", {}, "", url) newr = h.http_response(req, r) - self.assert_(r is newr) - self.assert_(h.referer == url) + self.assertTrue(r is newr) + self.assertTrue(h.referer == url) newreq = h.http_request(req) - self.assert_(req is newreq) - self.assert_(req.unredirected_hdrs["Referer"] == url) + self.assertTrue(req is newreq) + self.assertTrue(req.unredirected_hdrs["Referer"] == url) # don't clobber existing Referer ref = "http://set.by.user.com/" req.add_unredirected_header("Referer", ref) newreq = h.http_request(req) - self.assert_(req is newreq) - self.assert_(req.unredirected_hdrs["Referer"] == ref) + self.assertTrue(req is newreq) + self.assertTrue(req.unredirected_hdrs["Referer"] == ref) def test_errors(self): h = HTTPErrorProcessor() @@ -565,18 +565,18 @@ # 200 OK is passed through r = MockResponse(200, "OK", {}, "", url) newr = h.http_response(req, r) - self.assert_(r is newr) - self.assert_(not hasattr(o, "proto")) # o.error not called + self.assertTrue(r is newr) + self.assertTrue(not hasattr(o, "proto")) # o.error not called # anything else calls o.error (and MockOpener returns None, here) r = MockResponse(201, "Created", {}, "", url) - self.assert_(h.http_response(req, r) is None) - self.assert_(o.proto == "http") # o.error called - self.assert_(o.args == (req, r, 201, "Created", {})) + self.assertTrue(h.http_response(req, r) is None) + self.assertTrue(o.proto == "http") # o.error called + self.assertTrue(o.args == (req, r, 201, "Created", {})) def test_robots(self): # XXX useragent try: - import robotparser + import urllib.robotparser except ImportError: return # skip test else: @@ -589,7 +589,7 @@ # first time: initialise and set up robots.txt parser before checking # whether OK to fetch URL h.http_request(req) - self.assert_(rfpc.calls == [ + self.assertTrue(rfpc.calls == [ "__call__", ("set_url", "http://example.com:80/robots.txt"), "read", @@ -599,7 +599,7 @@ rfpc.clear() req = Request(url) h.http_request(req) - self.assert_(rfpc.calls == [ + self.assertTrue(rfpc.calls == [ ("can_fetch", "", url), ]) # different URL on same server: same again @@ -607,7 +607,7 @@ url = "http://example.com:80/blah.html" req = Request(url) h.http_request(req) - self.assert_(rfpc.calls == [ + self.assertTrue(rfpc.calls == [ ("can_fetch", "", url), ]) # disallowed URL @@ -617,9 +617,9 @@ req = Request(url) try: h.http_request(req) - except urllib2.HTTPError, e: - self.assert_(e.request == req) - self.assert_(e.code == 403) + except urllib.error.HTTPError as e: + self.assertTrue(e.request == req) + self.assertTrue(e.code == 403) # new host: reload robots.txt (even though the host and port are # unchanged, we treat this as a new host because # "example.com" != "example.com:80") @@ -628,7 +628,7 @@ url = "http://example.com/rhubarb.html" req = Request(url) h.http_request(req) - self.assert_(rfpc.calls == [ + self.assertTrue(rfpc.calls == [ "__call__", ("set_url", "http://example.com/robots.txt"), "read", @@ -639,7 +639,7 @@ url = "https://example.org/rhubarb.html" req = Request(url) h.http_request(req) - self.assert_(rfpc.calls == [ + self.assertTrue(rfpc.calls == [ "__call__", ("set_url", "https://example.org/robots.txt"), "read", @@ -654,19 +654,19 @@ req = Request("http://example.com/") r = MockResponse(200, "OK", {}, "") newreq = h.http_request(req) - self.assert_(cj.ach_req is req is newreq) - self.assert_(req.origin_req_host == "example.com") - self.assert_(cj.ach_u == False) + self.assertTrue(cj.ach_req is req is newreq) + self.assertTrue(req.origin_req_host == "example.com") + self.assertTrue(cj.ach_u == False) newr = h.http_response(req, r) - self.assert_(cj.ec_req is req) - self.assert_(cj.ec_r is r is newr) - self.assert_(cj.ec_u == False) + self.assertTrue(cj.ec_req is req) + self.assertTrue(cj.ec_r is r is newr) + self.assertTrue(cj.ec_u == False) def test_seekable(self): h = SeekableProcessor() o = h.parent = MockOpener() - req = urllib2.Request("http://example.com/") + req = urllib.request.Request("http://example.com/") class MockUnseekableResponse: code = 200 msg = "OK" @@ -674,8 +674,8 @@ def geturl(self): return "" r = MockUnseekableResponse() newr = h.http_response(req, r) - self.assert_(not hasattr(r, "seek")) - self.assert_(hasattr(newr, "seek")) + self.assertTrue(not hasattr(r, "seek")) + self.assertTrue(hasattr(newr, "seek")) def test_http_equiv(self): h = HTTPEquivProcessor() @@ -691,8 +691,8 @@ ) newr = h.http_response(req, r) headers = newr.info() - self.assert_(headers["Refresh"] == "spam&eggs") - self.assert_(headers["Foo"] == "Bar") + self.assertTrue(headers["Refresh"] == "spam&eggs") + self.assertTrue(headers["Foo"] == "Bar") def test_refresh(self): # XXX test processor constructor optional args @@ -724,17 +724,17 @@ try: method(req, MockFile(), code, "Blah", MockHeaders({"location": to_url})) - except urllib2.HTTPError: + except urllib.error.HTTPError: # 307 in response to POST requires user OK - self.assert_(code == 307 and data is not None) - self.assert_(o.req.get_full_url() == to_url) + self.assertTrue(code == 307 and data is not None) + self.assertTrue(o.req.get_full_url() == to_url) try: - self.assert_(o.req.get_method() == "GET") + self.assertTrue(o.req.get_method() == "GET") except AttributeError: - self.assert_(not o.req.has_data()) - self.assert_(o.req.headers["Nonsense"] == "viking=withhold") - self.assert_(not o.req.headers.has_key("Spam")) - self.assert_(not o.req.unredirected_hdrs.has_key("Spam")) + self.assertTrue(not o.req.has_data()) + self.assertTrue(o.req.headers["Nonsense"] == "viking=withhold") + self.assertTrue("Spam" not in o.req.headers) + self.assertTrue("Spam" not in o.req.unredirected_hdrs) # loop detection def redirect(h, req, url=to_url): @@ -751,9 +751,9 @@ while 1: redirect(h, req, "http://example.com/") count = count + 1 - except urllib2.HTTPError: + except urllib.error.HTTPError: # don't stop until max_repeats, because cookies may introduce state - self.assert_(count == HTTPRedirectHandler.max_repeats) + self.assertTrue(count == HTTPRedirectHandler.max_repeats) # detect endless non-repeating chain of redirects req = Request(from_url) @@ -763,8 +763,8 @@ while 1: redirect(h, req, "http://example.com/%d" % count) count = count + 1 - except urllib2.HTTPError: - self.assert_(count == HTTPRedirectHandler.max_redirections) + except urllib.error.HTTPError: + self.assertTrue(count == HTTPRedirectHandler.max_redirections) class UnescapeTests(unittest.TestCase): @@ -772,13 +772,13 @@ def test_unescape_charref(self): from ClientCookie._urllib2_support import \ unescape_charref, get_entitydefs - mdash_utf8 = u"\u2014".encode("utf-8") + mdash_utf8 = "\u2014".encode("utf-8") for ref, codepoint, utf8, latin1 in [ - ("38", 38, u"&".encode("utf-8"), "&"), + ("38", 38, "&".encode("utf-8"), "&"), ("x2014", 0x2014, mdash_utf8, "—"), ("8212", 8212, mdash_utf8, "—"), ]: - self.assertEqual(unescape_charref(ref, None), unichr(codepoint)) + self.assertEqual(unescape_charref(ref, None), chr(codepoint)) self.assertEqual(unescape_charref(ref, 'latin-1'), latin1) self.assertEqual(unescape_charref(ref, 'utf-8'), utf8) @@ -786,19 +786,19 @@ from ClientCookie._urllib2_support import get_entitydefs ed = get_entitydefs() for name, codepoint in [ - ("amp", ord(u"&")), - ("lt", ord(u"<")), - ("gt", ord(u">")), + ("amp", ord("&")), + ("lt", ord("<")), + ("gt", ord(">")), ("mdash", 0x2014), ("spades", 0x2660), ]: self.assertEqual(ed[name], codepoint) def test_unescape(self): - import htmlentitydefs + import html.entities from ClientCookie._urllib2_support import unescape, get_entitydefs data = "& < — — —" - mdash_utf8 = u"\u2014".encode("utf-8") + mdash_utf8 = "\u2014".encode("utf-8") ue = unescape(data, get_entitydefs(), "utf-8") self.assertEqual("& < %s %s %s" % ((mdash_utf8,)*3), ue) @@ -832,14 +832,14 @@ [("refresh", "1; http://example.com/"), ("foo", "bar")]) ] for html, result in htmls: - self.assertEqual(parse_head(StringIO.StringIO(html), HeadParser()), result) + self.assertEqual(parse_head(io.StringIO(html), HeadParser()), result) class MockHTTPHandler(HTTPHandler): RefactoringTool: Refactored ../python3/test/test_misc.py def __init__(self): self._count = 0 def http_open(self, req): import mimetools - from StringIO import StringIO + from io import StringIO if self._count == 0: self._count = self._count + 1 msg = mimetools.Message( @@ -857,7 +857,7 @@ # cookies shouldn't leak into redirected requests from ClientCookie import CookieJar, build_opener, HTTPHandler, \ HTTPCookieProcessor - from urllib2 import HTTPError + from urllib.error import HTTPError from test_cookies import interact_netscape @@ -867,13 +867,13 @@ cp = HTTPCookieProcessor(cj) o = build_opener(hh, cp) o.open("http://www.example.com/") - self.assert_(not hh.req.has_header("Cookie")) + self.assertTrue(not hh.req.has_header("Cookie")) class MyHTTPHandler(HTTPHandler): pass -class FooHandler(urllib2.BaseHandler): +class FooHandler(urllib.request.BaseHandler): def foo_open(self): pass -class BarHandler(urllib2.BaseHandler): +class BarHandler(urllib.request.BaseHandler): def bar_open(self): pass class A: @@ -917,7 +917,7 @@ if h.__class__ == handler_class: break else: - self.assert_(False) + self.assertTrue(False) def _methnames(self, *objs): from ClientCookie._Opener import methnames @@ -927,27 +927,27 @@ names = methnames(obj) names.sort() # special methods vary over Python versions - names = filter(lambda mn: mn[0:2] != "__" , names) + names = [mn for mn in names if mn[0:2] != "__"] r.append(names) return r def test_methnames(self): a, b, c, d = A(), B(), C(), D() a, b, c, d = self._methnames(a, b, c, d) - self.assert_(a == ["a"]) - self.assert_(b == ["a", "b"]) - self.assert_(c == ["a", "c"]) - self.assert_(d == ["a", "b", "c", "d"]) + self.assertTrue(a == ["a"]) + self.assertTrue(b == ["a", "b"]) + self.assertTrue(c == ["a", "c"]) + self.assertTrue(d == ["a", "b", "c", "d"]) a, b, c, d = A(), B(), C(), D() a.x = lambda self: None b.y = lambda self: None d.z = lambda self: None a, b, c, d = self._methnames(a, b, c, d) - self.assert_(a == ["a", "x"]) - self.assert_(b == ["a", "b", "y"]) - self.assert_(c == ["a", "c"]) - self.assert_(d == ["a", "b", "c", "d", "z"]) + self.assertTrue(a == ["a", "x"]) + self.assertTrue(b == ["a", "b", "y"]) + self.assertTrue(c == ["a", "c"]) + self.assertTrue(d == ["a", "b", "c", "d", "z"]) if __name__ == "__main__": --- ../python3/test/test_misc.py (original) +++ ../python3/test/test_misc.py (refactored) @@ -1,7 +1,7 @@ """Miscellaneous pyunit tests.""" import copy -import cStringIO, string +import io, string from unittest import TestCase try: @@ -11,7 +11,7 @@ class TestUnSeekable: def __init__(self, text): - self._file = cStringIO.StringIO(text) + self._file = io.StringIO(text) self.log = [] def tell(self): return self._file.tell() @@ -57,7 +57,7 @@ dog. """ - text_lines = map(lambda l: l+"\n", string.split(text, "\n")[:-1]) + text_lines = [l+"\n" for l in string.split(text, "\n")[:-1]] def testSeekable(self): from ClientCookie._Util import seek_wrapper @@ -149,10 +149,10 @@ limit = 10 while count < limit: if count == 5: - self.assertRaises(StopIteration, sfh.next) + self.assertRaises(StopIteration, sfh.__next__) break else: - sfh.next() == text_lines[count] + next(sfh) == text_lines[count] count = count + 1 else: assert False, "StopIteration not raised" @@ -161,9 +161,9 @@ text = self.text sfh.read(10) sfh.seek(5) - self.assert_(sfh.invariant()) + self.asRefactoringTool: Refactored ../python3/test/test_headers.py RefactoringTool: Refactored ../python3/test/test_date.py RefactoringTool: Refactored ../python3/test/test_cookies.py sertTrue(sfh.invariant()) sfh.seek(0, 2) - self.assert_(sfh.invariant()) + self.assertTrue(sfh.invariant()) sfh.seek(0) self.assertEqual(sfh.read(), text) @@ -173,9 +173,9 @@ r = TestUnSeekableResponse(self.text, hdrs) rsw = response_seek_wrapper(r) rsw2 = self._testCopy(rsw) - self.assert_(rsw is not rsw2) + self.assertTrue(rsw is not rsw2) self.assertEqual(rsw.info(), rsw2.info()) - self.assert_(rsw.info() is not rsw2.info()) + self.assertTrue(rsw.info() is not rsw2.info()) # should be able to close already-closed object rsw2.close() --- ../python3/test/test_headers.py (original) +++ ../python3/test/test_headers.py (refactored) @@ -34,9 +34,9 @@ # quotes should be stripped assert parse_ns_headers(['foo=bar; expires=01 Jan 2040 22:23:32 GMT']) == \ - [[('foo', 'bar'), ('expires', 2209069412L), ('version', '0')]] + [[('foo', 'bar'), ('expires', 2209069412), ('version', '0')]] assert parse_ns_headers(['foo=bar; expires="01 Jan 2040 22:23:32 GMT"']) == \ - [[('foo', 'bar'), ('expires', 2209069412L), ('version', '0')]] + [[('foo', 'bar'), ('expires', 2209069412), ('version', '0')]] def test_parse_ns_headers_special_names(self): # names such as 'expires' are not special in first name=value pair @@ -46,7 +46,7 @@ # Cookie with name 'expires' hdr = 'expires=01 Jan 2040 22:23:32 GMT' expected = [[("expires", "01 Jan 2040 22:23:32 GMT"), ("version", "0")]] - self.assertEquals(parse_ns_headers([hdr]), expected) + self.assertEqual(parse_ns_headers([hdr]), expected) def test_join_header_words(self): from ClientCookie._HeadersUtil import join_header_words @@ -83,8 +83,8 @@ try: result = split_header_words([arg]) except: - import traceback, StringIO - f = StringIO.StringIO() + import traceback, io + f = io.StringIO() traceback.print_exc(None, f) result = "(error -- traceback follows)\n\n%s" % f.getvalue() assert result == expect, """ --- ../python3/test/test_date.py (original) +++ ../python3/test/test_date.py (refactored) @@ -97,8 +97,8 @@ bad = False if http2time(test) is not None: - print "http2time(%s) is not None" % (test,) - print "http2time(test)", http2time(test) + print("http2time(%s) is not None" % (test,)) + print("http2time(test)", http2time(test)) bad = True assert not bad --- ../python3/test/test_cookies.py (original) +++ ../python3/test/test_cookies.py (refactored) @@ -1,6 +1,6 @@ """Tests for ClientCookie._ClientCookie.""" -import urllib2, re, os, string, StringIO, mimetools, time +import urllib.request, urllib.error, urllib.parse, re, os, string, io, mimetools, time from time import localtime from unittest import TestCase @@ -16,7 +16,7 @@ """ headers: list of RFC822-style 'Key: value' strings """ - f = StringIO.StringIO(string.join(headers, "\n")) + f = io.StringIO(string.join(headers, "\n")) self._headers = mimetools.Message(f) self._url = url def info(self): return self._headers @@ -117,8 +117,8 @@ ]: request = ClientCookie.Request(url) r = pol.domain_return_ok(domain, request) - if ok: self.assert_(r) - else: self.assert_(not r) + if ok: self.assertTrue(r) + else: self.assertTrue(not r) def test_missing_name(self): from ClientCookie import MozillaCookieJar, lwp_cookie_str @@ -166,7 +166,7 @@ c = CookieJar(policy) interact_netscape(c, "http://www.example.com/", "ni=ni; Version=1") cookie = c._cookies["www.example.com"]["/"]["ni"] - self.assert_(cookie.rfc2109) + self.assertTrue(cookie.rfc2109) self.assertEqual(cookie.version, version) def test_ns_parser(self): @@ -217,8 +217,8 @@ interact_netscape(c, "http://www.acme.com/", 'version=eggs; spam=eggs') cookies = c._cookies["www.acme.com"]["/"] - self.assert_(cookies.has_key('expires')) - self.assert_(cookies.has_key('version')) + self.assertTrue('expires' in cookies) + self.assertTrue('version' in cookies) def test_expires(self): from ClientCookie._Util import time2netscape @@ -269,39 +269,39 @@ c = CookieJar(pol) interact_2965(c, "http://www.acme.com/", 'spam="bar"; Version="1"') - assert c._cookies["www.acme.com"].has_key("/") + assert "/" in c._cookies["www.acme.com"] c = CookieJar(pol) interact_2965(c, "http://www.acme.com/blah", 'eggs="bar"; Version="1"') - assert c._cookies["www.acme.com"].has_key("/") + assert "/" in c._cookies["www.acme.com"] c = CookieJar(pol) interact_2965(c, "http://www.acme.com/blah/rhubarb", 'eggs="bar"; Version="1"') - assert c._cookies["www.acme.com"].has_key("/blah/") + assert "/blah/" in c._cookies["www.acme.com"] c = CookieJar(pol) interact_2965(c, "http://www.acme.com/blah/rhubarb/", 'eggs="bar"; Version="1"') - assert c._cookies["www.acme.com"].has_key("/blah/rhubarb/") + assert "/blah/rhubarb/" in c._cookies["www.acme.com"] # Netscape c = CookieJar() interact_netscape(c, "http://www.acme.com/", 'spam="bar"') - assert c._cookies["www.acme.com"].has_key("/") + assert "/" in c._cookies["www.acme.com"] c = CookieJar() interact_netscape(c, "http://www.acme.com/blah", 'eggs="bar"') - assert c._cookies["www.acme.com"].has_key("/") + assert "/" in c._cookies["www.acme.com"] c = CookieJar() interact_netscape(c, "http://www.acme.com/blah/rhubarb", 'eggs="bar"') - assert c._cookies["www.acme.com"].has_key("/blah") + assert "/blah" in c._cookies["www.acme.com"] c = CookieJar() interact_netscape(c, "http://www.acme.com/blah/rhubarb/", 'eggs="bar"') - assert c._cookies["www.acme.com"].has_key("/blah/rhubarb") + assert "/blah/rhubarb" in c._cookies["www.acme.com"] def test_escape_path(self): from ClientCookie._ClientCookie import escape_path @@ -323,36 +323,36 @@ ("/\175foo/bar", "/%7Dfoo/bar"), ] try: - unicode + str except NameError: pass else: cases.append( # unicode - (u"/foo/bar\uabcd", "/foo/bar%EA%AF%8D") # UTF-8 encoded + ("/foo/bar\uabcd", "/foo/bar%EA%AF%8D") # UTF-8 encoded ) for arg, result in cases: - self.assert_(escape_path(arg) == result) + self.assertTrue(escape_path(arg) == result) def test_request_path(self): - from urllib2 import Request + from urllib.request import Request from ClientCookie._ClientCookie import request_path # with parameters req = Request("http://www.example.com/rheum/rhaponicum;" "foo=bar;sing=song?apples=pears&spam=eggs#ni") - self.assert_(request_path(req) == "/rheum/rhaponicum;" + self.assertTrue(request_path(req) == "/rheum/rhaponicum;" "foo=bar;sing=song?apples=pears&spam=eggs#ni") # without parameters req = Request("http://www.example.com/rheum/rhaponicum?" "apples=pears&spam=eggs#ni") - self.assert_(request_path(req) == "/rheum/rhaponicum?" + self.assertTrue(request_path(req) == "/rheum/rhaponicum?" "apples=pears&spam=eggs#ni") # missing final slash req = Request("http://www.example.com") - self.assert_(request_path(req) == "/") + RefactoringTool: No changes to ../python3/test/test_conncache.py RefactoringTool: No changes to ../python3/test.py RefactoringTool: Refactored ../python3/setup.py RefactoringTool: Refactored ../python3/functional_tests.py RefactoringTool: Refactored ../python3/ez_setup/__init__.py self.assertTrue(request_path(req) == "/") def test_request_port(self): - from urllib2 import Request + from urllib.request import Request from ClientCookie._ClientCookie import request_port, DEFAULT_HTTP_PORT req = Request("http://www.acme.com:1234/", headers={"Host": "www.acme.com:4321"}) @@ -465,11 +465,11 @@ interact_netscape(cj, "http://example.co.uk/", 'no=problemo') interact_netscape(cj, "http://example.co.uk/", 'okey=dokey; Domain=.example.co.uk') - self.assertEquals(len(cj), 2) + self.assertEqual(len(cj), 2) for pseudo_tld in [".co.uk", ".org.za", ".tx.us"]: interact_netscape(cj, "http://example.%s/" % pseudo_tld, 'spam=eggs; Domain=.co.uk') - self.assertEquals(len(cj), 2) + self.assertEqual(len(cj), 2) # XXXX what about blah.tv, .name, etc etc? See Konqueror # (kcookiejar.cpp) and Mozilla implementations. @@ -1312,7 +1312,7 @@ assert not cookie # unicode URL doesn't raise exception, as it used to! - cookie = interact_2965(c, u"http://www.acme.com/\xfc") + cookie = interact_2965(c, "http://www.acme.com/\xfc") def test_mozilla(self): # Save / load Mozilla/Netscape cookie file format. --- ../python3/setup.py (original) +++ ../python3/setup.py (refactored) @@ -74,7 +74,7 @@ if sys.version_info < (2, 1): ignore_keys.append("platforms") for key in ignore_keys: - if kwargs.has_key(key): + if key in kwargs: del kwargs[key] # Only want packages keyword if this is a package, # only want py_modules keyword if this is a single-file module, @@ -83,7 +83,7 @@ del kwargs["packages"] else: del kwargs["py_modules"] - apply(_setup, (), kwargs) + _setup(*(), **kwargs) else: import ez_setup ez_setup.use_setuptools() --- ../python3/functional_tests.py (original) +++ ../python3/functional_tests.py (refactored) @@ -4,7 +4,7 @@ import unittest, string, os from unittest import TestCase -import urllib2 +import urllib.request, urllib.error, urllib.parse import ClientCookie from ClientCookie import build_opener, install_opener, urlopen, urlretrieve @@ -46,25 +46,25 @@ # HTTPResponseDebugProcessor(), ] - o = apply(build_opener, handlers) + o = build_opener(*handlers) try: install_opener(o) try: r = urlopen("http://wwwsearch.sf.net/cgi-bin/cookietest.cgi") - except urllib2.URLError, e: + except urllib.error.URLError as e: #print e.read() raise data = r.read() #print data - self.assert_( + self.assertTrue( string.find(data, "Your browser supports cookies!") >= 0) - self.assert_(len(cj) == 1) + self.assertTrue(len(cj) == 1) # test response.seek() (added by HTTPEquivProcessor) r.seek(0) samedata = r.read() r.close() - self.assert_(samedata == data) + self.assertTrue(samedata == data) finally: o.close() # uninstall opener (don't try this at home) @@ -81,7 +81,7 @@ finally: os.remove(fn) r = urlopen(url) - self.assert_(data == r.read()) + self.assertTrue(data == r.read()) r.close() ## def test_cacheftp(self): --- ../python3/ez_setup/__init__.py (original) +++ ../python3/ez_setup/__init__.py (refactored) @@ -53,10 +53,10 @@ from md5 import md5 digest = md5(data).hexdigest() if digest != md5_data[egg_name]: - print >>sys.stderr, ( + print(( "md5 validation of %s failed! (Possible download problem?)" % egg_name - ) + ), file=sysRefactoringTool: Refactored ../python3/ClientCookie/_urllib2_support.py .stderr) sys.exit(2) return data @@ -79,10 +79,10 @@ try: import setuptools if setuptools.__version__ == '0.0.1': - print >>sys.stderr, ( + print(( "You have an obsolete version of setuptools installed. Please\n" "remove it from your system entirely before rerunning this script." - ) + ), file=sys.stderr) sys.exit(2) except ImportError: egg = download_setuptools(version, download_base, to_dir, download_delay) @@ -95,11 +95,11 @@ except pkg_resources.VersionConflict: # XXX could we install in a subprocess here? - print >>sys.stderr, ( + print(( "The required version of setuptools (>=%s) is not available, and\n" "can't be installed while this script is running. Please install\n" " a more recent version first." - ) % version + ) % version, file=sys.stderr) sys.exit(2) def download_setuptools( @@ -113,7 +113,7 @@ with a '/'). `to_dir` is the directory where the egg will be downloaded. `delay` is the number of seconds to pause before an actual download attempt. """ - import urllib2, shutil + import urllib.request, urllib.error, urllib.parse, shutil egg_name = "setuptools-%s-py%s.egg" % (version,sys.version[:3]) url = download_base + egg_name saveto = os.path.join(to_dir, egg_name) @@ -139,7 +139,7 @@ version, download_base, delay, url ); from time import sleep; sleep(delay) log.warn("Downloading %s", url) - src = urllib2.urlopen(url) + src = urllib.request.urlopen(url) # Read/write all in one block, so we don't create a corrupt file # if the download is interrupted. data = _validate_md5(egg_name, src.read()) @@ -185,8 +185,8 @@ from setuptools.command.easy_install import main main(argv) else: - print "Setuptools version",version,"or greater has been installed." - print '(Run "ez_setup.py -U setuptools" to reinstall or upgrade.)' + print("Setuptools version",version,"or greater has been installed.") + print('(Run "ez_setup.py -U setuptools" to reinstall or upgrade.)') @@ -202,7 +202,7 @@ md5_data[base] = md5(f.read()).hexdigest() f.close() - data = [" %r: %r,\n" % it for it in md5_data.items()] + data = [" %r: %r,\n" % it for it in list(md5_data.items())] data.sort() repl = "".join(data) @@ -212,7 +212,7 @@ match = re.search("\nmd5_data = {\n([^}]+)}", src) if not match: - print >>sys.stderr, "Internal error!" + print("Internal error!", file=sys.stderr) sys.exit(2) src = src[:match.start(1)] + repl + src[match.end(1):] --- ../python3/ClientCookie/_urllib2_support.py (original) +++ ../python3/ClientCookie/_urllib2_support.py (refactored) @@ -11,13 +11,13 @@ """ -import copy, time, tempfile, htmlentitydefs, re +import copy, time, tempfile, html.entities, re import ClientCookie -from _ClientCookie import CookieJar, request_host -from _Util import isstringlike, startswith, getheaders, closeable_response -from _HeadersUtil import is_html -from _Debug import getLogger +from ._ClientCookie import CookieJar, request_host +from ._Util import isstringlike, startswith, getheaders, closeable_response +from ._HeadersUtil import is_html +from ._Debug import getLogger debug = getLogger("ClientCookie.cookies").debug try: aTrue @@ -34,13 +34,13 @@ except ImportError: pass else: - import urlparse, urllib2, urllib, httplib + import urllib.parse, urllib.request, urllib.error, urllib.parse, urllib.request, urllib.parse, urllib.error, http.client import sgmllib # monkeypatch to fix http://www.python.org/sf/803422 :-( sgmllib.charref = re.compile("&#(x?[0-9a-fA-F]+)[^0-9a-fA-F]") - from urllib2 import URLError, HTTPError + from urllib.error import URLError, HTTPError import types, string, socket - from cStringIO import StringIO + from io import StringIO try: import threading _threading = threading; del threading @@ -48,11 +48,11 @@ import dummy_threading _threading = dummy_threading; del dummy_threading - from _Util import response_seek_wrapper - from _Request import Request - - - class BaseHandler(urllib2.BaseHandler): + from ._Util import response_seek_wrapper + from ._Request import Request + + + class BaseHandler(urllib.request.BaseHandler): handler_order = 500 def __cmp__(self, other): @@ -119,13 +119,13 @@ def http_error_302(self, req, fp, code, msg, headers): # Some servers (incorrectly) return multiple Location headers # (so probably same goes for URI). Use first header. - if headers.has_key('location'): + if 'location' in headers: newurl = getheaders(headers, 'location')[0] - elif headers.has_key('uri'): + elif 'uri' in headers: newurl = getheaders(headers, 'uri')[0] else: return - newurl = urlparse.urljoin(req.get_full_url(), newurl) + newurl = urllib.parse.urljoin(req.get_full_url(), newurl) # XXX Probably want to forget about the state of the current # request, although that might interact poorly with other @@ -197,7 +197,7 @@ repl = entities.get(ent[1:-1]) if repl is not None: - repl = unichr(repl) + repl = chr(repl) if type(repl) != type(""): try: repl = repl.encode(encoding) @@ -213,7 +213,7 @@ name, base = data, 10 if name.startswith("x"): name, base= name[1:], 16 - uc = unichr(int(name, base)) + uc = chr(int(name, base)) if encoding is None: return uc else: @@ -226,17 +226,17 @@ def get_entitydefs(): from codecs import latin_1_decode try: - htmlentitydefs.name2codepoint + html.entities.name2codepoint except AttributeError: entitydefs = {} - for name, char in htmlentitydefs.entitydefs.items(): + for name, char in list(html.entities.entitydefs.items()): uc = latin_1_decode(char)[0] if uc.startswith("&#") and uc.endswith(";"): uc = unescape_charref(uc[2:-1], None) codepoint = ord(uc) entitydefs[name] = codepoint else: - entitydefs = htmlentitydefs.name2codepoint + entitydefs = html.entities.name2codepoint return entitydefs # ------------------------------------------------------------------- @@ -284,7 +284,7 @@ def unescape_attrs(self, attrs): #debug("%s", attrs) escaped_attrs = {} - for key, val in attrs.items(): + for key, val in list(attrs.items()): escaped_attrs[key] = self.unescape_attr(val) return escaped_attrs @@ -296,14 +296,14 @@ try: - import HTMLParser + import html.parser except ImportError: pass else: class XHTMLCompatibleHeadParser(AbstractHeadParser, - HTMLParser.HTMLParser): + html.parser.HTMLParser): def __init__(self): - HTMLParser.HTMLParser.__init__(self) + html.parser.HTMLParser.__init__(self) AbstractHeadParser.__init__(self) def handle_starttag(self, tag, attrs): @@ -403,7 +403,7 @@ html_headers = parse_head(response, self.head_parser_class()) finally: response.seek(0) - except (HTMLParser.HTMLParseError, + except (html.parser.HTMLParseError, sgmllib.SGMLParseError): pass else: @@ -451,13 +451,13 @@ https_response = http_response try: - import robotparser + import urllib.robotparser except ImportError: pass else: - class RobotExclusionError(urllib2.HTTPError): + class RobotExclusionError(urllib.error.HTTPError): def __init__(self, request, *args): - apply(urllib2.HTTPError.__init__, (self,)+args) + urllib.error.HTTPError.__init__(*(self,)+args) self.request = request class HTTPRobotRulesProcessor(BaseHandler): @@ -465,14 +465,14 @@ handler_order = 800 try: - from httplib import HTTPMessage + from http.client import HTTPMessage except: from mimetools import Message http_response_class = Message else: http_response_class = HTTPMessage - def __init__(self, rfp_class=robotparser.RobotFileParser): + def __init__(self, rfp_class=urllib.robotparser.RobotFileParser): self.rfp_class = rfp_class self.rfp = None self._host = None @@ -576,7 +576,7 @@ def http_response(self, request, response): code, msg, hdrs = response.code, response.msg, response.info() - if code == 200 and hdrs.has_key("refresh"): + if code == 200 and "refresh" in hdrs: refresh = getheaders(hdrs, "refresh")[0] ii = string.find(refresh, ";") if ii != -1: @@ -650,8 +650,8 @@ 'Content-type', 'application/x-www-form-urlencoded') - scheme, sel = urllib.splittype(request.get_selector()) - sel_host, sel_path = urllib.splithost(sel) + scheme, sel = urllib.parse.splittype(request.get_selector()) + sel_host, sel_path = urllib.parse.splithost(sel) if not request.has_header('Host'): request.add_unredirected_header('Host', sel_host or host) for name, value in self.parent.addheaders: @@ -690,7 +690,7 @@ try: h.request(req.get_method(), req.get_selector(), req.data, headers) r = h.getresponse() - except socket.error, err: # XXX what error? + except socket.error as err: # XXX what error? raise URLError(err) # Pick apart the HTTPResponse object to get the addinfourl @@ -714,14 +714,14 @@ class HTTPHandler(AbstractHTTPHandler): def http_open(self, req): - return self.do_open(httplib.HTTPConnection, req) + return self.do_open(http.client.HTTPConnection, req) http_request = AbstractHTTPHandler.do_request_ if hasattr(httplib, 'HTTPS'): class HTTPSHandler(AbstractHTTPHandler): def https_open(self, req): - return self.do_open(httplib.HTTPSConnection, req) + return self.do_open(http.client.HTTPSConnection, req) https_request = AbstractHTTPHandler.do_request_ @@ -740,24 +740,24 @@ if int(10*float(urllib2.__version__[:3])) >= 24: # urllib2 supports processors already - from _Opener import OpenerMixin - class OpenerDirector(urllib2.OpenerDirector, OpenerMixin): + from ._Opener import OpenerMixin + class OpenerDirector(urllib.request.OpenerDirector, OpenerMixin): pass else: - from _Opener import OpenerDirector + from ._Opener import OpenerDirector class OpenerFactory: """This class's interface is quite likely to change.""" default_classes = [ # handlers - urllib2.ProxyHandler, - urllib2.UnknownHandler, + urllib.request.ProxyHandler, + urllib.request.UnknownHandler, HTTPHandler, # from this module (derived RefactoringTool: Refactored ../python3/ClientCookie/__init__.py RefactoringTool: Refactored ../python3/ClientCookie/_Util.py from new AbstractHTTPHandler) - urllib2.HTTPDefaultErrorHandler, + urllib.request.HTTPDefaultErrorHandler, HTTPRedirectHandler, # from this module (bugfixed) - urllib2.FTPHandler, - urllib2.FileHandler, + urllib.request.FTPHandler, + urllib.request.FileHandler, # processors HTTPRequestUpgradeProcessor, #HTTPEquivProcessor, @@ -790,7 +790,7 @@ skip = [] for klass in default_classes: for check in handlers: - if type(check) == types.ClassType: + if type(check) == type: if issubclass(check, klass): skip.append(klass) elif type(check) == types.InstanceType: @@ -802,7 +802,7 @@ for klass in default_classes: opener.add_handler(klass()) for h in handlers: - if type(h) == types.ClassType: + if type(h) == type: h = h() opener.add_handler(h) --- ../python3/ClientCookie/__init__.py (original) +++ ../python3/ClientCookie/__init__.py (refactored) @@ -16,21 +16,21 @@ # These work like equivalents from logging. Use logging direct if you # have 2.3. -from _Debug import getLogger, StreamHandler, NOTSET, INFO, DEBUG +from ._Debug import getLogger, StreamHandler, NOTSET, INFO, DEBUG -from _ClientCookie import VERSION, __doc__, \ +from ._ClientCookie import VERSION, __doc__, \ Cookie, \ CookiePolicy, DefaultCookiePolicy, \ CookieJar, FileCookieJar, LoadError, request_host -from _LWPCookieJar import LWPCookieJar, lwp_cookie_str -from _MozillaCookieJar import MozillaCookieJar -from _MSIECookieJar import MSIECookieJar +from ._LWPCookieJar import LWPCookieJar, lwp_cookie_str +from ._MozillaCookieJar import MozillaCookieJar +from ._MSIECookieJar import MSIECookieJar try: import bsddb except ImportError: pass else: - from _BSDDBCookieJar import BSDDBCookieJar, CreateBSDDBCookieJar + from ._BSDDBCookieJar import BSDDBCookieJar, CreateBSDDBCookieJar #from _MSIEDBCookieJar import MSIEDBCookieJar #from _ConnCache import ConnectionCache try: @@ -55,7 +55,7 @@ HTTPResponseDebugProcessor, HTTPRedirectDebugProcessor try: - import robotparser + import urllib.robotparser except ImportError: pass else: @@ -63,10 +63,10 @@ HTTPRobotRulesProcessor, RobotExclusionError del robotparser - import httplib + import http.client if hasattr(httplib, 'HTTPS'): from ClientCookie._urllib2_support import HTTPSHandler del AbstractHTTPHandler, httplib -from _Util import http2time, response_seek_wrapper +from ._Util import http2time, response_seek_wrapper str2time = http2time del http2time --- ../python3/ClientCookie/_Util.py (original) +++ ../python3/ClientCookie/_Util.py (refactored) @@ -13,9 +13,9 @@ aTrue = 1 aFalse = 0 -import re, string, time, copy, urllib +import re, string, time, copy, urllib.request, urllib.parse, urllib.error from types import TupleType -from cStringIO import StringIO +from io import StringIO try: from exceptions import StopIteration @@ -59,7 +59,7 @@ del c def isspace(string): for c in string: - if not SPACE_DICT.has_key(c): return aFalse + if c not in SPACE_DICT: return aFalse return aTrue # this is here rather than in _HeadersUtil as it's just for @@ -98,7 +98,7 @@ # Return 1 for leap years, 0 for non-leap years def isleap(year): - return year % 4 == 0 and (year % 100 <> 0 or year % 400 == 0) + return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) # Return number of leap years in range [y1, y2) # Assume y1 <= y2 and no funny (non-leap century) years @@ -119,7 +119,7 @@ days = days + day - 1 hours = days*24 + hour minutes = hours*60 + minute - seconds = minutes*60L + second + seconds = RefactoringTool: Refactored ../python3/ClientCookie/_Request.py RefactoringTool: Refactored ../python3/ClientCookie/_Opener.py minutes*60 + second return seconds @@ -180,7 +180,7 @@ timezone_re = re.compile(r"^([-+])?(\d\d?):?(\d\d)?$") def offset_from_tz_string(tz): offset = None - if UTC_ZONES.has_key(tz): + if tz in UTC_ZONES: offset = 0 else: m = timezone_re.search(tz) @@ -527,7 +527,7 @@ return data def __iter__(self): return self - def next(self): + def __next__(self): line = self.readline() if line == "": raise StopIteration return line @@ -573,7 +573,7 @@ def read(self, size=-1): return "" def readline(self, size=-1): return "" def __iter__(self): return self - def next(self): return "" + def __next__(self): return "" def close(self): pass class eofresponse(eoffile): @@ -633,7 +633,7 @@ if hasattr(self.fp, "__iter__"): self.__iter__ = self.fp.__iter__ if hasattr(self.fp, "next"): - self.next = self.fp.next + self.next = self.fp.__next__ def __repr__(self): return '<%s at %s whose fp = %r>' % ( --- ../python3/ClientCookie/_Request.py (original) +++ ../python3/ClientCookie/_Request.py (refactored) @@ -13,15 +13,15 @@ aTrue = 1 aFalse = 0 -import urllib2, string +import urllib.request, urllib.error, urllib.parse, string -from _ClientCookie import request_host +from ._ClientCookie import request_host -class Request(urllib2.Request): +class Request(urllib.request.Request): def __init__(self, url, data=None, headers={}, origin_req_host=None, unverifiable=aFalse): - urllib2.Request.__init__(self, url, data, headers) + urllib.request.Request.__init__(self, url, data, headers) self.unredirected_hdrs = {} # All the terminology below comes from RFC 2965. @@ -48,8 +48,8 @@ def has_header(self, header_name): """True iff request has named header (regular or unredirected).""" - if (self.headers.has_key(header_name) or - self.unredirected_hdrs.has_key(header_name)): + if (header_name in self.headers or + header_name in self.unredirected_hdrs): return aTrue return aFalse @@ -61,7 +61,7 @@ def header_items(self): hdrs = self.unredirected_hdrs.copy() hdrs.update(self.headers) - return hdrs.items() + return list(hdrs.items()) def __str__(self): return "" % self.get_full_url() --- ../python3/ClientCookie/_Opener.py (original) +++ ../python3/ClientCookie/_Opener.py (refactored) @@ -14,10 +14,10 @@ aTrue = 1 aFalse = 0 -import urllib2, string, bisect, urlparse +import urllib.request, urllib.error, urllib.parse, string, bisect, urllib.parse -from _Util import startswith, isstringlike -from _Request import Request +from ._Util import startswith, isstringlike +from ._Request import Request def methnames(obj): """Return method names of class instance. @@ -25,7 +25,7 @@ dir(obj) doesn't work across Python versions, this does. """ - return methnames_of_instance_as_dict(obj).keys() + return list(methnames_of_instance_as_dict(obj).keys()) def methnames_of_instance_as_dict(inst): names = {} @@ -83,7 +83,7 @@ read = 0 blocknum = 1 if reporthook: - if headers.has_key("content-length"): + if "content-length" in headers: size = int(headers["Content-Length"]) reporthook(0, bs, size) while 1: @@ -105,9 +105,9 @@ return result -class OpenerDirector(urllib2.OpenerDirector, OpenerMixin): +class OpenerDirector(urllib.request.OpenerDirector, OpenerMixin): def __init__(self): - urllib2.OpenerDirector.__init__(self) + urllib.request.OpenerDirector.__init__(self) self.process_response = {} self.process_request = {} @@ -141,7 +141,7 @@ else: continue - if lookup.has_key(kind): + if kind in lookup: bisect.insort(loRefactoringTool: Refactored ../python3/ClientCookie/_MozillaCookieJar.py RefactoringTool: Refactored ../python3/ClientCookie/_MSIEDBCookieJar.py RefactoringTool: Refactored ../python3/ClientCookie/_MSIECookieJar.py okup[kind], handler) else: lookup[kind] = [handler] @@ -165,7 +165,7 @@ meth = getattr(processor, meth_name) req = meth(req) - response = urllib2.OpenerDirector.open(self, req, data) + response = urllib.request.OpenerDirector.open(self, req, data) # post-process response meth_name = type_+"_response" @@ -188,10 +188,10 @@ meth_name = proto + '_error' http_err = 0 args = (dict, proto, meth_name) + args - result = apply(self._call_chain, args) + result = self._call_chain(*args) if result: return result if http_err: args = (dict, 'default', 'http_error_default') + orig_args - return apply(self._call_chain, args) + return self._call_chain(*args) --- ../python3/ClientCookie/_MozillaCookieJar.py (original) +++ ../python3/ClientCookie/_MozillaCookieJar.py (refactored) @@ -11,10 +11,10 @@ import re, string, time -from _ClientCookie import reraise_unmasked_exceptions, FileCookieJar, Cookie, \ +from ._ClientCookie import reraise_unmasked_exceptions, FileCookieJar, Cookie, \ MISSING_FILENAME_TEXT, LoadError -from _Util import startswith, endswith -from _Debug import getLogger +from ._Util import startswith, endswith +from ._Debug import getLogger debug = getLogger("ClientCookie").debug try: aTrue @@ -25,7 +25,7 @@ try: issubclass(Exception(), (Exception,)) except TypeError: real_issubclass = issubclass - from _Util import compat_issubclass + from ._Util import compat_issubclass issubclass = compat_issubclass del compat_issubclass --- ../python3/ClientCookie/_MSIEDBCookieJar.py (original) +++ ../python3/ClientCookie/_MSIEDBCookieJar.py (refactored) @@ -16,7 +16,7 @@ """ from ClientCookie import MSIEBase, CookieJar -from _Util import time2netscape +from ._Util import time2netscape def set_cookie_hdr_from_cookie(cookie): params = [] @@ -126,10 +126,10 @@ return [] cookies = [] - for path in cookies_by_path.keys(): + for path in list(cookies_by_path.keys()): if not self._policy.path_return_ok(path, request, unverifiable): continue - for name, cookie in cookies_by_path[path].items(): + for name, cookie in list(cookies_by_path[path].items()): if not self._policy.return_ok(cookie, request, unverifiable): debug(" not returning cookie") continue --- ../python3/ClientCookie/_MSIECookieJar.py (original) +++ ../python3/ClientCookie/_MSIECookieJar.py (refactored) @@ -13,12 +13,12 @@ import os, re, string, time, struct if os.name == "nt": - import _winreg - -from _ClientCookie import FileCookieJar, CookieJar, Cookie, \ + import winreg + +from ._ClientCookie import FileCookieJar, CookieJar, Cookie, \ MISSING_FILENAME_TEXT, LoadError -from _Util import startswith -from _Debug import getLogger +from ._Util import startswith +from ._Debug import getLogger debug = getLogger("ClientCookie").debug try: aTrue @@ -28,15 +28,15 @@ def regload(path, leaf): - key = _winreg.OpenKey(_winreg.HKEY_CURRENT_USER, path, 0, - _winreg.KEY_ALL_ACCESS) + key = winreg.OpenKey(winreg.HKEY_CURRENT_USER, path, 0, + winreg.KEY_ALL_ACCESS) try: - value = _winreg.QueryValueEx(key, leaf)[0] + value = winreg.QueryValueEx(key, leaf)[0] except WindowsError: value = None return value -WIN32_EPOCH = 0x019db1ded53e8000L # 1970 Jan 01 00:00:00 in Win32 FILETIME +WIN32_EPOCH = 0x019db1ded53e8000 # 1970 Jan 01 00:00:00 in Win32 FILETIME def epoch_time_offset_from_win32_filetime(filetime): """Convert from win32 filetime to seconds-since-epoch value. @@ -52,10 +52,10 @@ raise ValueError("filetime (%d) is before epoch (%d)" % (filetime, WIN32_EPOCH)) - return divmod((filetime - WIN32_EPOCH), 10000000L)[0] + returRefactoringTool: Refactored ../python3/ClientCookie/_LWPCookieJar.py RefactoringTool: Refactored ../python3/ClientCookie/_HeadersUtil.py RefactoringTool: Refactored ../python3/ClientCookie/_Debug.py RefactoringTool: Refactored ../python3/ClientCookie/_ConnCache.py n divmod((filetime - WIN32_EPOCH), 10000000)[0] def binary_to_char(c): return "%02X" % ord(c) -def binary_to_str(d): return string.join(map(binary_to_char, list(d)), "") +def binary_to_str(d): return string.join(list(map(binary_to_char, list(d))), "") class MSIEBase: magic_re = re.compile(r"Client UrlCache MMF Ver \d\.\d.*") @@ -98,7 +98,7 @@ if key == "": break rl = cookies_fh.readline - def getlong(rl=rl): return long(rl().rstrip()) + def getlong(rl=rl): return int(rl().rstrip()) def getstr(rl=rl): return rl().rstrip() key = key.rstrip() @@ -351,7 +351,7 @@ """Return a list of cookies to be returned to server.""" domains = self._cookies.copy() domains.update(self._delayload_domains) - domains = domains.keys() + domains = list(domains.keys()) cookies = [] for domain in domains: @@ -369,7 +369,7 @@ def read_all_cookies(self): """Eagerly read in all cookies.""" if self.delayload: - for domain in self._delayload_domains.keys(): + for domain in list(self._delayload_domains.keys()): self._delayload_domain(domain) def load(self, filename, ignore_discard=aFalse, ignore_expires=aFalse, --- ../python3/ClientCookie/_LWPCookieJar.py (original) +++ ../python3/ClientCookie/_LWPCookieJar.py (refactored) @@ -19,11 +19,11 @@ """ import time, re, string -from _ClientCookie import reraise_unmasked_exceptions, FileCookieJar, Cookie, \ +from ._ClientCookie import reraise_unmasked_exceptions, FileCookieJar, Cookie, \ MISSING_FILENAME_TEXT, LoadError -from _HeadersUtil import join_header_words, split_header_words -from _Util import startswith, iso2time, time2isoz -from _Debug import getLogger +from ._HeadersUtil import join_header_words, split_header_words +from ._Util import startswith, iso2time, time2isoz +from ._Debug import getLogger debug = getLogger("ClientCookie").debug try: aTrue --- ../python3/ClientCookie/_HeadersUtil.py (original) +++ ../python3/ClientCookie/_HeadersUtil.py (refactored) @@ -9,7 +9,7 @@ """ -import os, re, string, urlparse +import os, re, string, urllib.parse from types import StringType try: from types import UnicodeType @@ -17,7 +17,7 @@ except: STRING_TYPES = StringType, -from _Util import startswith, endswith, http2time +from ._Util import startswith, endswith, http2time try: aTrue except NameError: @@ -32,7 +32,7 @@ """ if not ct_headers: # guess - ext = os.path.splitext(urlparse.urlparse(url)[2])[1] + ext = os.path.splitext(urllib.parse.urlparse(url)[2])[1] html_exts = [".htm", ".html"] if allow_xhtml: html_exts += [".xhtml"] --- ../python3/ClientCookie/_Debug.py (original) +++ ../python3/ClientCookie/_Debug.py (refactored) @@ -29,9 +29,9 @@ if self.level is not None and level <= self.level: self.handler.write(text+"\n") def debug(self, text, *args): - apply(self.log, (DEBUG, text)+args) + self.log(*(DEBUG, text)+args) def info(self, text, *args): - apply(self.log, (INFO, text)+args) + self.log(*(INFO, text)+args) def setLevel(self, lvl): self.level = lvl def addHandler(self, handler): --- ../python3/ClientCookie/_ConnCache.py (original) +++ ../python3/ClientCookie/_ConnCache.py (refactored) @@ -31,8 +31,8 @@ from types import StringType StringTypes = StringType -from _Util import compat_isinstance -from _Debug import getLogger, warn +from ._Util import compat_isinstance +from ._Debug import getLogger, warn debug = getLogger("ClientCookie").debug warn("WARNING: MODULE _ConnCache IS UNUSED AND UNTESTED!") @@ -147,7 +147,7 @@ t = {} for cr in self._conns: t[cr.scheme] = None - return t.keys() + return list(t.keys()) def get_connections(self, scheme=None): """Return list of allRefactoringTool: Refactored ../python3/ClientCookie/_ClientCookie.py connection objects with the specified URL scheme. --- ../python3/ClientCookie/_ClientCookie.py (original) +++ ../python3/ClientCookie/_ClientCookie.py (refactored) @@ -38,18 +38,18 @@ # Public health warning: anyone who thought 'cookies are simple, aren't they?', # run away now :-( -import sys, re, urlparse, string, copy, time, struct, urllib, types +import sys, re, urllib.parse, string, copy, time, struct, urllib.request, urllib.parse, urllib.error, types try: import threading _threading = threading; del threading except ImportError: import dummy_threading _threading = dummy_threading; del dummy_threading -import httplib # only for the default HTTP port +import http.client # only for the default HTTP port MISSING_FILENAME_TEXT = ("a filename was not supplied (nor was the CookieJar " "instance initialised with one)") -DEFAULT_HTTP_PORT = str(httplib.HTTP_PORT) +DEFAULT_HTTP_PORT = str(http.client.HTTP_PORT) try: aTrue except NameError: @@ -68,9 +68,9 @@ class StopIteration(Exception): pass import ClientCookie -from _HeadersUtil import split_header_words, parse_ns_headers -from _Util import startswith, endswith, isstringlike, getheaders -from _Debug import warn, getLogger +from ._HeadersUtil import split_header_words, parse_ns_headers +from ._Util import startswith, endswith, isstringlike, getheaders +from ._Debug import warn, getLogger debug = getLogger("ClientCookie.cookies").debug try: bool @@ -82,7 +82,7 @@ try: issubclass(Exception, (Exception,)) except TypeError: real_issubclass = issubclass - from _Util import compat_issubclass + from ._Util import compat_issubclass issubclass = compat_issubclass del compat_issubclass @@ -97,8 +97,8 @@ if issubclass(etype, unmasked): raise # swallowed an exception - import traceback, StringIO - f = StringIO.StringIO() + import traceback, io + f = io.StringIO() traceback.print_exc(None, f) msg = f.getvalue() warn("ClientCookie bug!\n%s" % msg) @@ -190,7 +190,7 @@ """ url = request.get_full_url() - host = urlparse.urlparse(url)[1] + host = urllib.parse.urlparse(url)[1] if host == "": host = request.get_header("Host", "") @@ -214,11 +214,11 @@ url = request.get_full_url() #scheme, netloc, path, parameters, query, frag = urlparse.urlparse(url) #req_path = escape_path(string.join(urlparse.urlparse(url)[2:], "")) - path, parameters, query, frag = urlparse.urlparse(url)[2:] + path, parameters, query, frag = urllib.parse.urlparse(url)[2:] if parameters: path = "%s;%s" % (path, parameters) path = escape_path(path) - req_path = urlparse.urlunparse(("", "", path, "", query, frag)) + req_path = urllib.parse.urlunparse(("", "", path, "", query, frag)) if not startswith(req_path, "/"): # fix bad RFC 2396 absoluteURI req_path = "/"+req_path @@ -254,9 +254,9 @@ # And here, kind of: draft-fielding-uri-rfc2396bis-03 # (And in draft IRI specification: draft-duerst-iri-05) # (And here, for new URI schemes: RFC 2718) - if UNICODE and isinstance(path, types.UnicodeType): + if UNICODE and isinstance(path, str): path = path.encode("utf-8") - path = urllib.quote(path, HTTP_PATH_SAFE) + path = urllib.parse.quote(path, HTTP_PATH_SAFE) path = ESCAPED_CHAR_RE.sub(uppercase_escaped_char, path) return path @@ -397,13 +397,13 @@ self._rest = copy.copy(rest) def has_nonstandard_attr(self, name): - return self._rest.has_key(name) + return name in self._rest def get_nonstandard_attr(self, name, default=None): return self._rest.get(name, default) def set_nonstandard_attr(self, name, value): self._rest[name] = value def nonstandard_attr_keys(self): - return self._rest.keys() + return list(self._rest.keys()) def is_expired(self, now=None): if now is None: now = time.time() @@ -965,9 +965,9 @@ def vals_sorted_by_key(adict): - keysRefactoringTool: Refactored ../python3/ClientCookie/_BSDDBCookieJar.py = adict.keys() + keys = list(adict.keys()) keys.sort() - return map(adict.get, keys) + return list(map(adict.get, keys)) class MappingIterator: """Iterates over nested mapping, depth-first, in sorted order by key.""" @@ -976,7 +976,7 @@ def __iter__(self): return self - def next(self): + def __next__(self): # this is hairy because of lack of generators while 1: try: @@ -1062,11 +1062,11 @@ return [] debug("Checking %s for cookies to return", domain) cookies_by_path = self._cookies[domain] - for path in cookies_by_path.keys(): + for path in list(cookies_by_path.keys()): if not self._policy.path_return_ok(path, request): continue cookies_by_name = cookies_by_path[path] - for cookie in cookies_by_name.values(): + for cookie in list(cookies_by_name.values()): if not self._policy.return_ok(cookie, request): debug(" not returning cookie") continue @@ -1077,7 +1077,7 @@ def _cookies_for_request(self, request): """Return a list of cookies to be returned to server.""" cookies = [] - for domain in self._cookies.keys(): + for domain in list(self._cookies.keys()): cookies.extend(self._cookies_for_domain(domain, request)) return cookies @@ -1227,7 +1227,7 @@ # boolean cookie-attribute is present, but has no value # (like "discard", rather than "port=80") v = aTrue - if standard.has_key(k): + if k in standard: # only first value is significant continue if k == "domain": @@ -1438,8 +1438,8 @@ def no_matching_rfc2965(ns_cookie, lookup=lookup): key = ns_cookie.domain, ns_cookie.path, ns_cookie.name - return not lookup.has_key(key) - ns_cookies = filter(no_matching_rfc2965, ns_cookies) + return key not in lookup + ns_cookies = list(filter(no_matching_rfc2965, ns_cookies)) if ns_cookies: cookies.extend(ns_cookies) @@ -1464,9 +1464,9 @@ cookie: ClientCookie.Cookie instance """ c = self._cookies - if not c.has_key(cookie.domain): c[cookie.domain] = {} + if cookie.domain not in c: c[cookie.domain] = {} c2 = c[cookie.domain] - if not c2.has_key(cookie.path): c2[cookie.path] = {} + if cookie.path not in c2: c2[cookie.path] = {} c3 = c2[cookie.path] c3[cookie.name] = cookie @@ -1565,7 +1565,7 @@ "CookieJar.__getitem__ only supports sequential iteration") self._prev_getitem_index = i try: - return self._getitem_iterator.next() + return next(self._getitem_iterator) except StopIteration: raise IndexError() --- ../python3/ClientCookie/_BSDDBCookieJar.py (original) +++ ../python3/ClientCookie/_BSDDBCookieJar.py (refactored) @@ -12,18 +12,18 @@ """ -from _ClientCookie import CookieJar, MappingIterator -from _Debug import getLogger +from ._ClientCookie import CookieJar, MappingIterator +from ._Debug import getLogger debug = getLogger("ClientCookie").debug import bsddb -import cPickle +import pickle pickle = cPickle del cPickle try: StopIteration except NameError: - from _ClientCookie import StopIteration + from ._ClientCookie import StopIteration def CreateBSDDBCookieJar(filename, policy=None): """Return a BSDDBCookieJar given a BSDDB filename. @@ -40,7 +40,7 @@ """ db = bsddb.db.DB() - db.open(filename, bsddb.db.DB_HASH, bsddb.db.DB_CREATE, 0666) + db.open(filename, bsddb.db.DB_HASH, bsddb.db.DB_CREATE, 0o666) return BSDDBCookieJar(policy, db) class BSDDBIterator: @@ -53,18 +53,18 @@ def close(self): if self._c is not None: self._cRefactoringTool: Files that were modified: RefactoringTool: ../python3/test/test_urllib2.py RefactoringTool: ../python3/test/test_misc.py RefactoringTool: ../python3/test/test_headers.py RefactoringTool: ../python3/test/test_date.py RefactoringTool: ../python3/test/test_cookies.py RefactoringTool: ../python3/test/test_conncache.py RefactoringTool: ../python3/test.py RefactoringTool: ../python3/setup.py RefactoringTool: ../python3/functional_tests.py RefactoringTool: ../python3/ez_setup/__init__.py RefactoringTool: ../python3/ClientCookie/_urllib2_support.py RefactoringTool: ../python3/ClientCookie/__init__.py RefactoringTool: ../python3/ClientCookie/_Util.py RefactoringTool: ../python3/ClientCookie/_Request.py RefactoringTool: ../python3/ClientCookie/_Opener.py RefactoringTool: ../python3/ClientCookie/_MozillaCookieJar.py RefactoringTool: ../python3/ClientCookie/_MSIEDBCookieJar.py RefactoringTool: ../python3/ClientCookie/_MSIECookieJar.py RefactoringTool: ../python3/ClientCookie/_LWPCookieJar.py RefactoringTool: ../python3/ClientCookie/_HeadersUtil.py RefactoringTool: ../python3/ClientCookie/_Debug.py RefactoringTool: ../python3/ClientCookie/_ConnCache.py RefactoringTool: ../python3/ClientCookie/_ClientCookie.py RefactoringTool: ../python3/ClientCookie/_BSDDBCookieJar.py RefactoringTool: Warnings/messages while refactoring: RefactoringTool: ### In file ../python3/ClientCookie/_HeadersUtil.py ### RefactoringTool: Line 229: absolute and local imports together .close() - self._c = self._i = self.next = self.__iter__ = None - def next(self): + self._c = self._i = self.__next__ = self.__iter__ = None + def __next__(self): while 1: if self._i is None: - item = self._c.next() + item = next(self._c) if item is None: self.close() raise StopIteration() domain, data = item self._i = MappingIterator(pickle.loads(data)) try: - return self._i.next() + return next(self._i) except StopIteration: self._i = None continue @@ -142,7 +142,7 @@ c2 = {} else: c2 = pickle.loads(data) - if not c2.has_key(cookie.path): c2[cookie.path] = {} + if cookie.path not in c2: c2[cookie.path] = {} c3 = c2[cookie.path] c3[cookie.name] = cookie db.put(cookie.domain, pickle.dumps(c2)) @@ -153,7 +153,7 @@ def _cookies_for_request(self, request): """Return a list of cookies to be returned to server.""" cookies = [] - for domain in self._db.keys(): + for domain in list(self._db.keys()): cookies.extend(self._cookies_for_domain(domain, request)) return cookies def _cookies_for_domain(self, domain, request, unverifiable): @@ -167,10 +167,10 @@ cookies_by_path = pickle.loads(data) cookies = [] - for path in cookies_by_path.keys(): + for path in list(cookies_by_path.keys()): if not self._policy.path_return_ok(path, request, unverifiable): continue - for name, cookie in cookies_by_path[path].items(): + for name, cookie in list(cookies_by_path[path].items()): if not self._policy.return_ok(cookie, request, unverifiable): debug(" not returning cookie") continue + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.74014 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd ClientCookie-1.3.0 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2' + export FFLAGS + /usr/bin/python setup.py build running build running build_py creating build creating build/lib creating build/lib/ClientCookie copying ClientCookie/_urllib2_support.py -> build/lib/ClientCookie copying ClientCookie/__init__.py -> build/lib/ClientCookie copying ClientCookie/_Util.py -> build/lib/ClientCookie copying ClientCookie/_Request.py -> build/lib/ClientCookie copying ClientCookie/_Opener.py -> build/lib/ClientCookie copying ClientCookie/_MozillaCookieJar.py -> build/lib/ClientCookie copying ClientCookie/_MSIEDBCookieJar.py -> build/lib/ClientCookie copying ClientCookie/_MSIECookieJar.py -> build/lib/ClientCookie copying ClientCookie/_LWPCookieJar.py -> build/lib/ClientCookie copying ClientCookie/_HeadersUtil.py -> build/lib/ClientCookie copying ClientCookie/_Debug.py -> build/lib/ClientCookie copying ClientCookie/_ConnCache.py -> build/lib/ClientCookie copying ClientCookie/_ClientCookie.py -> build/lib/ClientCookie copying ClientCookie/_BSDDBCookieJar.py -> build/lib/ClientCookie + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/ClientCookie-1.3.0 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2' + export FFLAGS + /usr/bin/python3 setup.py build running build running build_py creating build creating build/lib creating build/lib/ClientCookie copying ClientCookie/_urllib2_support.py -> build/lib/ClientCookie copying ClientCookie/__init__.py -> build/lib/ClientCookie copying ClientCookie/_Util.py -> build/lib/ClientCookie copying ClientCookie/_Request.py -> build/lib/ClientCookie copying ClientCookie/_Opener.py -> build/lib/ClientCookie copying ClientCookie/_MozillaCookieJar.py -> build/lib/ClientCookie copying ClientCookie/_MSIEDBCookieJar.py -> build/lib/ClientCookie copying ClientCookie/_MSIECookieJar.py -> build/lib/ClientCookie copying ClientCookie/_LWPCookieJar.py -> build/lib/ClientCookie copying ClientCookie/_HeadersUtil.py -> build/lib/ClientCookie copying ClientCookie/_Debug.py -> build/lib/ClientCookie copying ClientCookie/_ConnCache.py -> build/lib/ClientCookie copying ClientCookie/_ClientCookie.py -> build/lib/ClientCookie copying ClientCookie/_BSDDBCookieJar.py -> build/lib/ClientCookie + popd ~/RPM/BUILD/ClientCookie-1.3.0 + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.79595 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python-module-ClientCookie-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python-module-ClientCookie-buildroot + cd ClientCookie-1.3.0 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2' + export FFLAGS + /usr/bin/python setup.py install --skip-build --root=/usr/src/tmp/python-module-ClientCookie-buildroot --force --record=INSTALLED_FILES running install running install_lib creating /usr/src/tmp/python-module-ClientCookie-buildroot creating /usr/src/tmp/python-module-ClientCookie-buildroot/usr creating /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib creating /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7 creating /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages creating /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie copying build/lib/ClientCookie/_BSDDBCookieJar.py -> /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie copying build/lib/ClientCookie/_ClientCookie.py -> /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie copying build/lib/ClientCookie/_ConnCache.py -> /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie copying build/lib/ClientCookie/_Debug.py -> /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie copying build/lib/ClientCookie/_HeadersUtil.py -> /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie copying build/lib/ClientCookie/_LWPCookieJar.py -> /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie copying build/lib/ClientCookie/_MSIECookieJar.py -> /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie copying build/lib/ClientCookie/_MSIEDBCookieJar.py -> /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie copying build/lib/ClientCookie/_MozillaCookieJar.py -> /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie copying build/lib/ClientCookie/_Opener.py -> /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie copying build/lib/ClientCookie/_Request.py -> /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie copying build/lib/ClientCookie/_Util.py -> /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie copying build/lib/ClientCookie/__init__.py -> /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie copying build/lib/ClientCookie/_urllib2_support.py -> /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie byte-compiling /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_BSDDBCookieJar.py to _BSDDBCookieJar.pyc byte-compiling /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_ClientCookie.py to _ClientCookie.pyc byte-compiling /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_ConnCache.py to _ConnCache.pyc byte-compiling /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_Debug.py to _Debug.pyc byte-compiling /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_HeadersUtil.py to _HeadersUtil.pyc byte-compiling /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_LWPCookieJar.py to _LWPCookieJar.pyc byte-compiling /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_MSIECookieJar.py to _MSIECookieJar.pyc /usr/lib/python2.7/site-packages/ClientCookie/_MSIECookieJar.py:261: SyntaxWarning: assertion is always true, perhaps remove parentheses? byte-compiling /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_MSIEDBCookieJar.py to _MSIEDBCookieJar.pyc byte-compiling /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_MozillaCookieJar.py to _MozillaCookieJar.pyc byte-compiling /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_Opener.py to _Opener.pyc byte-compiling /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_Request.py to _Request.pyc byte-compiling /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_Util.py to _Util.pyc byte-compiling /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/__init__.py to __init__.pyc byte-compiling /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_urllib2_support.py to _urllib2_support.pyc running install_egg_info running egg_info writing ClientCookie.egg-info/PKG-INFO writing top-level names to ClientCookie.egg-info/top_level.txt writing dependency_links to ClientCookie.egg-info/dependency_links.txt reading manifest file 'ClientCookie.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'ClientCookie.egg-info/SOURCES.txt' Copying ClientCookie.egg-info to /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie-1.3.0-py2.7.egg-info running install_scripts writing list of installed files to 'INSTALLED_FILES' + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/ClientCookie-1.3.0 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2' + export FFLAGS + /usr/bin/python3 setup.py install --skip-build --root=/usr/src/tmp/python-module-ClientCookie-buildroot --force running install running install_lib creating /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3 creating /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages creating /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie copying build/lib/ClientCookie/_BSDDBCookieJar.py -> /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie copying build/lib/ClientCookie/_ClientCookie.py -> /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie copying build/lib/ClientCookie/_ConnCache.py -> /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie copying build/lib/ClientCookie/_Debug.py -> /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie copying build/lib/ClientCookie/_HeadersUtil.py -> /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie copying build/lib/ClientCookie/_LWPCookieJar.py -> /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie copying build/lib/ClientCookie/_MSIECookieJar.py -> /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie copying build/lib/ClientCookie/_MSIEDBCookieJar.py -> /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie copying build/lib/ClientCookie/_MozillaCookieJar.py -> /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie copying build/lib/ClientCookie/_Opener.py -> /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie copying build/lib/ClientCookie/_Request.py -> /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie copying build/lib/ClientCookie/_Util.py -> /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie copying build/lib/ClientCookie/__init__.py -> /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie copying build/lib/ClientCookie/_urllib2_support.py -> /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie byte-compiling /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_BSDDBCookieJar.py to _BSDDBCookieJar.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_ClientCookie.py to _ClientCookie.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_ConnCache.py to _ConnCache.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_Debug.py to _Debug.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_HeadersUtil.py to _HeadersUtil.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_LWPCookieJar.py to _LWPCookieJar.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_MSIECookieJar.py to _MSIECookieJar.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_MSIEDBCookieJar.py to _MSIEDBCookieJar.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_MozillaCookieJar.py to _MozillaCookieJar.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_Opener.py to _Opener.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_Request.py to _Request.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_Util.py to _Util.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/__init__.py to __init__.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_urllib2_support.py to _urllib2_support.cpython-37.pyc running install_egg_info running egg_info writing ClientCookie.egg-info/PKG-INFO writing dependency_links to ClientCookie.egg-info/dependency_links.txt writing top-level names to ClientCookie.egg-info/top_level.txt reading manifest file 'ClientCookie.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'ClientCookie.egg-info/SOURCES.txt' Copying ClientCookie.egg-info to /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie-1.3.0-py3.7.egg-info running install_scripts /usr/lib/python3/site-packages/ClientCookie/_MSIECookieJar.py:261: SyntaxWarning: assertion is always true, perhaps remove parentheses? + popd ~/RPM/BUILD/ClientCookie-1.3.0 + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python-module-ClientCookie-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python-module-ClientCookie-buildroot (binconfig,pkgconfig,libtool,desktop) Checking contents of files in /usr/src/tmp/python-module-ClientCookie-buildroot/ (default) Compressing files in /usr/src/tmp/python-module-ClientCookie-buildroot (auto) Adjusting library links in /usr/src/tmp/python-module-ClientCookie-buildroot ./usr/lib: Verifying ELF objects in /usr/src/tmp/python-module-ClientCookie-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) Bytecompiling python modules in /usr/src/tmp/python-module-ClientCookie-buildroot using /usr/bin/python /usr/lib/python2.7/site-packages/ClientCookie/_MSIECookieJar.py:261: SyntaxWarning: assertion is always true, perhaps remove parentheses? unlink /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_BSDDBCookieJar.pyc unlink /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_ClientCookie.pyc unlink /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_ConnCache.pyc unlink /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_Debug.pyc unlink /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_HeadersUtil.pyc unlink /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_LWPCookieJar.pyc unlink /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_MSIECookieJar.pyc unlink /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_MSIEDBCookieJar.pyc unlink /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_MozillaCookieJar.pyc unlink /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_Opener.pyc unlink /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_Request.pyc unlink /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_Util.pyc unlink /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/__init__.pyc unlink /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_urllib2_support.pyc compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_BSDDBCookieJar.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_ClientCookie.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_ConnCache.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_Debug.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_HeadersUtil.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_LWPCookieJar.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_MSIECookieJar.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_MSIEDBCookieJar.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_MozillaCookieJar.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_Opener.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_Request.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_Util.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/__init__.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_urllib2_support.py Bytecompiling python modules with optimization in /usr/src/tmp/python-module-ClientCookie-buildroot using /usr/bin/python -O compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_BSDDBCookieJar.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_ClientCookie.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_ConnCache.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_Debug.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_HeadersUtil.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_LWPCookieJar.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_MSIECookieJar.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_MSIEDBCookieJar.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_MozillaCookieJar.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_Opener.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_Request.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_Util.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/__init__.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_urllib2_support.py Bytecompiling python3 modules in /usr/src/tmp/python-module-ClientCookie-buildroot using /usr/bin/python3 /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_MSIECookieJar.py:261: SyntaxWarning: assertion is always true, perhaps remove parentheses? assert (sig in ("HASH", "LEAK", unlink /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/__pycache__/_BSDDBCookieJar.cpython-37.pyc unlink /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/__pycache__/_ClientCookie.cpython-37.pyc unlink /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/__pycache__/_ConnCache.cpython-37.pyc unlink /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/__pycache__/_Debug.cpython-37.pyc unlink /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/__pycache__/_HeadersUtil.cpython-37.pyc unlink /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/__pycache__/_LWPCookieJar.cpython-37.pyc unlink /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/__pycache__/_MSIECookieJar.cpython-37.pyc unlink /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/__pycache__/_MSIEDBCookieJar.cpython-37.pyc unlink /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/__pycache__/_MozillaCookieJar.cpython-37.pyc unlink /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/__pycache__/_Opener.cpython-37.pyc unlink /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/__pycache__/_Request.cpython-37.pyc unlink /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/__pycache__/_Util.cpython-37.pyc unlink /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/__pycache__/__init__.cpython-37.pyc unlink /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/__pycache__/_urllib2_support.cpython-37.pyc compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_BSDDBCookieJar.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_ClientCookie.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_ConnCache.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_Debug.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_HeadersUtil.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_LWPCookieJar.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_MSIECookieJar.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_MSIEDBCookieJar.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_MozillaCookieJar.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_Opener.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_Request.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_Util.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/__init__.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_urllib2_support.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python-module-ClientCookie-buildroot using /usr/bin/python3 -O compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_BSDDBCookieJar.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_ClientCookie.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_ConnCache.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_Debug.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_HeadersUtil.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_LWPCookieJar.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_MSIECookieJar.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_MSIEDBCookieJar.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_MozillaCookieJar.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_Opener.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_Request.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_Util.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/__init__.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_urllib2_support.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python-module-ClientCookie-buildroot using /usr/bin/python3 -OO compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_BSDDBCookieJar.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_ClientCookie.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_ConnCache.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_Debug.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_HeadersUtil.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_LWPCookieJar.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_MSIECookieJar.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_MSIEDBCookieJar.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_MozillaCookieJar.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_Opener.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_Request.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_Util.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/__init__.py compile /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_urllib2_support.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/ClientCookie/__pycache__/__init__.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/ClientCookie/__pycache__/__init__.cpython-37.pyc' './usr/lib/python3/site-packages/ClientCookie/__pycache__/__init__.cpython-37.opt-2.pyc' => './usr/lib/python3/site-packages/ClientCookie/__pycache__/__init__.cpython-37.opt-1.pyc' './usr/lib/python3/site-packages/ClientCookie/__pycache__/_Request.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/ClientCookie/__pycache__/_Request.cpython-37.pyc' './usr/lib/python3/site-packages/ClientCookie/__pycache__/_Opener.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/ClientCookie/__pycache__/_Opener.cpython-37.pyc' './usr/lib/python3/site-packages/ClientCookie/__pycache__/_MSIEDBCookieJar.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/ClientCookie/__pycache__/_MSIEDBCookieJar.cpython-37.pyc' './usr/lib/python3/site-packages/ClientCookie/__pycache__/_LWPCookieJar.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/ClientCookie/__pycache__/_LWPCookieJar.cpython-37.pyc' './usr/lib/python3/site-packages/ClientCookie/__pycache__/_Debug.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/ClientCookie/__pycache__/_Debug.cpython-37.pyc' './usr/lib/python3/site-packages/ClientCookie/__pycache__/_Debug.cpython-37.opt-2.pyc' => './usr/lib/python3/site-packages/ClientCookie/__pycache__/_Debug.cpython-37.opt-1.pyc' './usr/lib/python3/site-packages/ClientCookie/__pycache__/_ConnCache.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/ClientCookie/__pycache__/_ConnCache.cpython-37.pyc' './usr/lib/python3/site-packages/ClientCookie/__pycache__/_BSDDBCookieJar.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/ClientCookie/__pycache__/_BSDDBCookieJar.cpython-37.pyc' Hardlinking identical .pyc and .pyo files './usr/lib/python2.7/site-packages/ClientCookie/__init__.pyo' => './usr/lib/python2.7/site-packages/ClientCookie/__init__.pyc' './usr/lib/python2.7/site-packages/ClientCookie/_Request.pyo' => './usr/lib/python2.7/site-packages/ClientCookie/_Request.pyc' './usr/lib/python2.7/site-packages/ClientCookie/_Opener.pyo' => './usr/lib/python2.7/site-packages/ClientCookie/_Opener.pyc' './usr/lib/python2.7/site-packages/ClientCookie/_MSIEDBCookieJar.pyo' => './usr/lib/python2.7/site-packages/ClientCookie/_MSIEDBCookieJar.pyc' './usr/lib/python2.7/site-packages/ClientCookie/_LWPCookieJar.pyo' => './usr/lib/python2.7/site-packages/ClientCookie/_LWPCookieJar.pyc' './usr/lib/python2.7/site-packages/ClientCookie/_Debug.pyo' => './usr/lib/python2.7/site-packages/ClientCookie/_Debug.pyc' './usr/lib/python2.7/site-packages/ClientCookie/_ConnCache.pyo' => './usr/lib/python2.7/site-packages/ClientCookie/_ConnCache.pyc' './usr/lib/python2.7/site-packages/ClientCookie/_BSDDBCookieJar.pyo' => './usr/lib/python2.7/site-packages/ClientCookie/_BSDDBCookieJar.pyc' Processing files: python-module-ClientCookie-1.3.0-alt1.2 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.33308 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd ClientCookie-1.3.0 + DOCDIR=/usr/src/tmp/python-module-ClientCookie-buildroot/usr/share/doc/python-module-ClientCookie-1.3.0 + export DOCDIR + rm -rf /usr/src/tmp/python-module-ClientCookie-buildroot/usr/share/doc/python-module-ClientCookie-1.3.0 + /bin/mkdir -p /usr/src/tmp/python-module-ClientCookie-buildroot/usr/share/doc/python-module-ClientCookie-1.3.0 + cp -prL GeneralFAQ.html README.html doc.html COPYING.txt ChangeLog.txt INSTALL.txt README.txt /usr/src/tmp/python-module-ClientCookie-buildroot/usr/share/doc/python-module-ClientCookie-1.3.0 + chmod -R go-w /usr/src/tmp/python-module-ClientCookie-buildroot/usr/share/doc/python-module-ClientCookie-1.3.0 + chmod -R a+rX /usr/src/tmp/python-module-ClientCookie-buildroot/usr/share/doc/python-module-ClientCookie-1.3.0 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.iPj11j find-provides: running scripts (alternatives,debuginfo,lib,pam,perl,pkgconfig,python,python3,shell) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.8LYTQC find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks) python.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_BSDDBCookieJar.py: hiding _ClientCookie, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_BSDDBCookieJar.py: hiding _Debug, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_BSDDBCookieJar.py: line=26 IGNORE (for REQ=slight and deep=8) module=_ClientCookie python.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_ClientCookie.py: skipping sys /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_ClientCookie.py: line=43 IGNORE (for REQ=slight and deep=8) module=threading /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_ClientCookie.py: line=46 IGNORE (for REQ=slight and deep=8) module=dummy_threading /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_ClientCookie.py: line=60 IGNORE (for REQ=slight and deep=8) module=types python.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_ClientCookie.py: hiding ClientCookie, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_ClientCookie.py: hiding _HeadersUtil, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_ClientCookie.py: hiding _Util, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_ClientCookie.py: hiding _Debug, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_ClientCookie.py: line=85 IGNORE (for REQ=slight and deep=8) module=_Util /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_ClientCookie.py: line=100 IGNORE (for REQ=slight and deep=8) module=traceback /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_ClientCookie.py: line=100 IGNORE (for REQ=slight and deep=8) module=StringIO /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_ConnCache.py: line=29 IGNORE (for REQ=slight and deep=8) module=types /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_ConnCache.py: line=31 IGNORE (for REQ=slight and deep=8) module=types python.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_ConnCache.py: hiding _Util, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_ConnCache.py: hiding _Debug, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_Debug.py: skipping sys python.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_Debug.py: hiding ClientCookie, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_Debug.py: line=6 IGNORE (for REQ=slight and deep=8) module=warnings /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_Debug.py: line=15 IGNORE (for REQ=slight and deep=8) module=logging /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_Debug.py: line=49 IGNORE (for REQ=slight and deep=8) module=logging /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_HeadersUtil.py: line=15 IGNORE (for REQ=slight and deep=8) module=types python.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_HeadersUtil.py: hiding _Util, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_HeadersUtil.py: line=229 IGNORE (for REQ=slight and deep=8) module=doctest /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_HeadersUtil.py: line=229 IGNORE (for REQ=slight and deep=8) module=_HeadersUtil python.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_LWPCookieJar.py: hiding _ClientCookie, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_LWPCookieJar.py: hiding _HeadersUtil, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_LWPCookieJar.py: hiding _Util, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_LWPCookieJar.py: hiding _Debug, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_MSIECookieJar.py: line=16 IGNORE (for REQ=slight and deep=8) module=_winreg python.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_MSIECookieJar.py: hiding _ClientCookie, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_MSIECookieJar.py: hiding _Util, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_MSIECookieJar.py: hiding _Debug, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_MSIEDBCookieJar.py: hiding ClientCookie, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_MSIEDBCookieJar.py: hiding _Util, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_MozillaCookieJar.py: hiding _ClientCookie, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_MozillaCookieJar.py: hiding _Util, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_MozillaCookieJar.py: hiding _Debug, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_MozillaCookieJar.py: line=28 IGNORE (for REQ=slight and deep=8) module=_Util python.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_Opener.py: hiding _Util, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_Opener.py: hiding _Request, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_Request.py: hiding _ClientCookie, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_Util.py: line=21 IGNORE (for REQ=slight and deep=8) module=exceptions /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_Util.py: line=23 IGNORE (for REQ=slight and deep=8) module=ClientCookie /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_Util.py: line=93 IGNORE (for REQ=slight and deep=8) module=calendar python.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/__init__.py: skipping sys python.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/__init__.py: hiding _Debug, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/__init__.py: hiding _ClientCookie, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/__init__.py: hiding _LWPCookieJar, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/__init__.py: hiding _MozillaCookieJar, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/__init__.py: hiding _MSIECookieJar, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/__init__.py: line=29 IGNORE (for REQ=slight and deep=8) module=bsddb /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/__init__.py: line=33 IGNORE (for REQ=slight and deep=8) module=_BSDDBCookieJar /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/__init__.py: line=37 IGNORE (for REQ=slight and deep=8) module=urllib2 /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/__init__.py: line=41 IGNORE (for REQ=slight and deep=8) module=ClientCookie /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/__init__.py: line=46 IGNORE (for REQ=slight and deep=12) module=ClientCookie /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/__init__.py: line=49 IGNORE (for REQ=slight and deep=8) module=ClientCookie /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/__init__.py: line=58 IGNORE (for REQ=slight and deep=12) module=robotparser /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/__init__.py: line=62 IGNORE (for REQ=slight and deep=12) module=ClientCookie /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/__init__.py: line=66 IGNORE (for REQ=slight and deep=8) module=httplib /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/__init__.py: line=68 IGNORE (for REQ=slight and deep=12) module=ClientCookie python.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/__init__.py: hiding _Util, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_urllib2_support.py: hiding ClientCookie, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_urllib2_support.py: hiding _ClientCookie, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_urllib2_support.py: hiding _Util, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_urllib2_support.py: hiding _HeadersUtil, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_urllib2_support.py: hiding _Debug, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_urllib2_support.py: line=33 IGNORE (for REQ=slight and deep=8) module=urllib2 /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_urllib2_support.py: line=37 IGNORE (for REQ=slight and deep=8) module=urlparse /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_urllib2_support.py: line=37 IGNORE (for REQ=slight and deep=8) module=urllib2 /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_urllib2_support.py: line=37 IGNORE (for REQ=slight and deep=8) module=urllib /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_urllib2_support.py: line=37 IGNORE (for REQ=slight and deep=8) module=httplib /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_urllib2_support.py: line=38 IGNORE (for REQ=slight and deep=8) module=sgmllib /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_urllib2_support.py: line=41 IGNORE (for REQ=slight and deep=8) module=urllib2 /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_urllib2_support.py: line=42 IGNORE (for REQ=slight and deep=8) module=types /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_urllib2_support.py: line=42 IGNORE (for REQ=slight and deep=8) module=string /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_urllib2_support.py: line=42 IGNORE (for REQ=slight and deep=8) module=socket /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_urllib2_support.py: line=43 IGNORE (for REQ=slight and deep=8) module=cStringIO /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_urllib2_support.py: line=45 IGNORE (for REQ=slight and deep=12) module=threading /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_urllib2_support.py: line=48 IGNORE (for REQ=slight and deep=12) module=dummy_threading /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_urllib2_support.py: line=51 IGNORE (for REQ=slight and deep=8) module=_Util /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_urllib2_support.py: line=52 IGNORE (for REQ=slight and deep=8) module=_Request /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_urllib2_support.py: line=227 IGNORE (for REQ=slight and deep=12) module=codecs /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_urllib2_support.py: line=299 IGNORE (for REQ=slight and deep=12) module=HTMLParser /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_urllib2_support.py: line=454 IGNORE (for REQ=slight and deep=12) module=robotparser /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_urllib2_support.py: line=468 IGNORE (for REQ=slight and deep=19) module=httplib /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_urllib2_support.py: line=470 IGNORE (for REQ=slight and deep=19) module=mimetools /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_urllib2_support.py: line=743 IGNORE (for REQ=slight and deep=12) module=_Opener /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python2.7/site-packages/ClientCookie/_urllib2_support.py: line=747 IGNORE (for REQ=slight and deep=12) module=_Opener Provides: python-ClientCookie, python2.7(ClientCookie), python2.7(ClientCookie._BSDDBCookieJar), python2.7(ClientCookie._ClientCookie), python2.7(ClientCookie._ConnCache), python2.7(ClientCookie._Debug), python2.7(ClientCookie._HeadersUtil), python2.7(ClientCookie._LWPCookieJar), python2.7(ClientCookie._MSIECookieJar), python2.7(ClientCookie._MSIEDBCookieJar), python2.7(ClientCookie._MozillaCookieJar), python2.7(ClientCookie._Opener), python2.7(ClientCookie._Request), python2.7(ClientCookie._Util), python2.7(ClientCookie._urllib2_support) Requires: python, /usr/lib/python2.7/site-packages, python-modules, python2.7(bisect), python2.7(bsddb) Obsoletes: python-ClientCookie Processing files: python3-module-ClientCookie-1.3.0-alt1.2 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.66587 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd ClientCookie-1.3.0 + DOCDIR=/usr/src/tmp/python-module-ClientCookie-buildroot/usr/share/doc/python3-module-ClientCookie-1.3.0 + export DOCDIR + rm -rf /usr/src/tmp/python-module-ClientCookie-buildroot/usr/share/doc/python3-module-ClientCookie-1.3.0 + /bin/mkdir -p /usr/src/tmp/python-module-ClientCookie-buildroot/usr/share/doc/python3-module-ClientCookie-1.3.0 + cp -prL GeneralFAQ.html README.html doc.html COPYING.txt ChangeLog.txt INSTALL.txt README.txt /usr/src/tmp/python-module-ClientCookie-buildroot/usr/share/doc/python3-module-ClientCookie-1.3.0 + chmod -R go-w /usr/src/tmp/python-module-ClientCookie-buildroot/usr/share/doc/python3-module-ClientCookie-1.3.0 + chmod -R a+rX /usr/src/tmp/python-module-ClientCookie-buildroot/usr/share/doc/python3-module-ClientCookie-1.3.0 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.2MYv90 find-provides: running scripts (alternatives,debuginfo,lib,pam,perl,pkgconfig,python,python3,shell) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.SZJH9t find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks) /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_BSDDBCookieJar.py: line=15 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_BSDDBCookieJar.py: line=16 possible relative import from ., UNIMPLEMENTED python3.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_BSDDBCookieJar.py: skipping bsddb /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_BSDDBCookieJar.py: line=26 possible relative import from ., UNIMPLEMENTED python3.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_ClientCookie.py: skipping sys python3.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_ClientCookie.py: skipping time /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_ClientCookie.py: line=43 IGNORE (for REQ=slight and deep=8) module=threading /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_ClientCookie.py: line=46 IGNORE (for REQ=slight and deep=8) module=dummy_threading /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_ClientCookie.py: line=60 IGNORE (for REQ=slight and deep=8) module=types /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_ClientCookie.py: line=71 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_ClientCookie.py: line=72 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_ClientCookie.py: line=73 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_ClientCookie.py: line=85 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_ClientCookie.py: line=100 IGNORE (for REQ=slight and deep=8) module=traceback /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_ClientCookie.py: line=100 IGNORE (for REQ=slight and deep=8) module=io python3.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_ConnCache.py: skipping time /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_ConnCache.py: line=29 IGNORE (for REQ=slight and deep=8) module=types /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_ConnCache.py: line=31 IGNORE (for REQ=slight and deep=8) module=types /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_ConnCache.py: line=34 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_ConnCache.py: line=35 possible relative import from ., UNIMPLEMENTED python3.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_Debug.py: skipping sys /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_Debug.py: line=6 IGNORE (for REQ=slight and deep=8) module=warnings /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_Debug.py: line=15 IGNORE (for REQ=slight and deep=8) module=logging /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_Debug.py: line=49 IGNORE (for REQ=slight and deep=8) module=logging /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_HeadersUtil.py: line=15 IGNORE (for REQ=slight and deep=8) module=types /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_HeadersUtil.py: line=20 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_HeadersUtil.py: line=229 IGNORE (for REQ=slight and deep=8) module=doctest /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_HeadersUtil.py: line=229 IGNORE (for REQ=slight and deep=8) module=_HeadersUtil python3.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_LWPCookieJar.py: skipping time /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_LWPCookieJar.py: line=22 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_LWPCookieJar.py: line=24 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_LWPCookieJar.py: line=25 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_LWPCookieJar.py: line=26 possible relative import from ., UNIMPLEMENTED python3.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_MSIECookieJar.py: skipping time /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_MSIECookieJar.py: line=16 IGNORE (for REQ=slight and deep=8) module=winreg /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_MSIECookieJar.py: line=18 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_MSIECookieJar.py: line=20 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_MSIECookieJar.py: line=21 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_MSIEDBCookieJar.py: line=19 possible relative import from ., UNIMPLEMENTED python3.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_MozillaCookieJar.py: skipping time /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_MozillaCookieJar.py: line=14 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_MozillaCookieJar.py: line=16 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_MozillaCookieJar.py: line=17 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_MozillaCookieJar.py: line=28 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_Opener.py: line=19 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_Opener.py: line=20 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_Request.py: line=18 possible relative import from ., UNIMPLEMENTED python3.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_Util.py: skipping time /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_Util.py: line=21 IGNORE (for REQ=slight and deep=8) module=exceptions /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_Util.py: line=23 IGNORE (for REQ=slight and deep=8) module=ClientCookie._ClientCookie /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_Util.py: line=93 IGNORE (for REQ=slight and deep=8) module=calendar python3.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/__init__.py: skipping sys /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/__init__.py: line=19 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/__init__.py: line=21 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/__init__.py: line=25 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/__init__.py: line=26 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/__init__.py: line=27 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/__init__.py: line=29 IGNORE (for REQ=slight and deep=8) module=bsddb /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/__init__.py: line=33 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/__init__.py: line=37 IGNORE (for REQ=slight and deep=8) module=urllib2 /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/__init__.py: line=41 IGNORE (for REQ=slight and deep=8) module=ClientCookie._urllib2_support /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/__init__.py: line=46 IGNORE (for REQ=slight and deep=12) module=ClientCookie._urllib2_support /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/__init__.py: line=49 IGNORE (for REQ=slight and deep=8) module=ClientCookie._urllib2_support /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/__init__.py: line=58 IGNORE (for REQ=slight and deep=12) module=urllib.robotparser /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/__init__.py: line=62 IGNORE (for REQ=slight and deep=12) module=ClientCookie._urllib2_support /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/__init__.py: line=66 IGNORE (for REQ=slight and deep=8) module=http.client /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/__init__.py: line=68 IGNORE (for REQ=slight and deep=12) module=ClientCookie._urllib2_support /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/__init__.py: line=70 possible relative import from ., UNIMPLEMENTED python3.req: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_urllib2_support.py: skipping time /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_urllib2_support.py: line=17 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_urllib2_support.py: line=18 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_urllib2_support.py: line=19 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_urllib2_support.py: line=20 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_urllib2_support.py: line=33 IGNORE (for REQ=slight and deep=8) module=urllib2 /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_urllib2_support.py: line=37 IGNORE (for REQ=slight and deep=8) module=urllib.parse /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_urllib2_support.py: line=37 IGNORE (for REQ=slight and deep=8) module=urllib.request /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_urllib2_support.py: line=37 IGNORE (for REQ=slight and deep=8) module=urllib.error /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_urllib2_support.py: line=37 IGNORE (for REQ=slight and deep=8) module=urllib.parse /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_urllib2_support.py: line=37 IGNORE (for REQ=slight and deep=8) module=urllib.request /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_urllib2_support.py: line=37 IGNORE (for REQ=slight and deep=8) module=urllib.parse /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_urllib2_support.py: line=37 IGNORE (for REQ=slight and deep=8) module=urllib.error /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_urllib2_support.py: line=37 IGNORE (for REQ=slight and deep=8) module=http.client /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_urllib2_support.py: line=38 IGNORE (for REQ=slight and deep=8) module=sgmllib /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_urllib2_support.py: line=41 IGNORE (for REQ=slight and deep=8) module=urllib.error /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_urllib2_support.py: line=42 IGNORE (for REQ=slight and deep=8) module=types /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_urllib2_support.py: line=42 IGNORE (for REQ=slight and deep=8) module=string /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_urllib2_support.py: line=42 IGNORE (for REQ=slight and deep=8) module=socket /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_urllib2_support.py: line=43 IGNORE (for REQ=slight and deep=8) module=io /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_urllib2_support.py: line=45 IGNORE (for REQ=slight and deep=12) module=threading /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_urllib2_support.py: line=48 IGNORE (for REQ=slight and deep=12) module=dummy_threading /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_urllib2_support.py: line=51 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_urllib2_support.py: line=52 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_urllib2_support.py: line=227 IGNORE (for REQ=slight and deep=12) module=codecs /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_urllib2_support.py: line=299 IGNORE (for REQ=slight and deep=12) module=html.parser /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_urllib2_support.py: line=454 IGNORE (for REQ=slight and deep=12) module=urllib.robotparser /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_urllib2_support.py: line=468 IGNORE (for REQ=slight and deep=19) module=http.client /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_urllib2_support.py: line=470 IGNORE (for REQ=slight and deep=19) module=mimetools /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_urllib2_support.py: line=743 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-ClientCookie-buildroot/usr/lib/python3/site-packages/ClientCookie/_urllib2_support.py: line=747 possible relative import from ., UNIMPLEMENTED Provides: python3(ClientCookie), python3(ClientCookie._BSDDBCookieJar), python3(ClientCookie._ClientCookie), python3(ClientCookie._ConnCache), python3(ClientCookie._Debug), python3(ClientCookie._HeadersUtil), python3(ClientCookie._LWPCookieJar), python3(ClientCookie._MSIECookieJar), python3(ClientCookie._MSIEDBCookieJar), python3(ClientCookie._MozillaCookieJar), python3(ClientCookie._Opener), python3(ClientCookie._Request), python3(ClientCookie._Util), python3(ClientCookie._urllib2_support) Requires: /usr/lib/python3/site-packages, python3(bisect) < 0, python3(copy) < 0, python3(html.entities) < 0, python3(http.client) < 0, python3(io) < 0, python3(os) < 0, python3(pickle) < 0, python3(re) < 0, python3(string) < 0, python3(struct) < 0, python3(tempfile) < 0, python3(types) < 0, python3(urllib.error) < 0, python3(urllib.parse) < 0, python3(urllib.request) < 0 warning: Installed (but unpackaged) file(s) found: /usr/lib/python2.7/site-packages/ClientCookie/_BSDDBCookieJar.pyo /usr/lib/python2.7/site-packages/ClientCookie/_ClientCookie.pyo /usr/lib/python2.7/site-packages/ClientCookie/_ConnCache.pyo /usr/lib/python2.7/site-packages/ClientCookie/_Debug.pyo /usr/lib/python2.7/site-packages/ClientCookie/_HeadersUtil.pyo /usr/lib/python2.7/site-packages/ClientCookie/_LWPCookieJar.pyo /usr/lib/python2.7/site-packages/ClientCookie/_MSIECookieJar.pyo /usr/lib/python2.7/site-packages/ClientCookie/_MSIEDBCookieJar.pyo /usr/lib/python2.7/site-packages/ClientCookie/_MozillaCookieJar.pyo /usr/lib/python2.7/site-packages/ClientCookie/_Opener.pyo /usr/lib/python2.7/site-packages/ClientCookie/_Request.pyo /usr/lib/python2.7/site-packages/ClientCookie/_Util.pyo /usr/lib/python2.7/site-packages/ClientCookie/__init__.pyo /usr/lib/python2.7/site-packages/ClientCookie/_urllib2_support.pyo Wrote: /usr/src/RPM/RPMS/noarch/python-module-ClientCookie-1.3.0-alt1.2.noarch.rpm Wrote: /usr/src/RPM/RPMS/noarch/python3-module-ClientCookie-1.3.0-alt1.2.noarch.rpm 21.09user 1.23system 0:32.38elapsed 68%CPU (0avgtext+0avgdata 58768maxresident)k 0inputs+0outputs (0major+302380minor)pagefaults 0swaps 29.89user 4.77system 0:46.81elapsed 74%CPU (0avgtext+0avgdata 117248maxresident)k 0inputs+0outputs (0major+728816minor)pagefaults 0swaps --- python3-module-ClientCookie-1.3.0-alt1.2.noarch.rpm.repo 2018-05-22 09:09:59.000000000 +0000 +++ python3-module-ClientCookie-1.3.0-alt1.2.noarch.rpm.hasher 2020-01-26 03:02:20.760342896 +0000 @@ -1,8 +1,8 @@ /usr/lib/python3/site-packages/ClientCookie 40755 -/usr/lib/python3/site-packages/ClientCookie-1.3.0-py3.6.egg-info 40755 -/usr/lib/python3/site-packages/ClientCookie-1.3.0-py3.6.egg-info/PKG-INFO 100644 -/usr/lib/python3/site-packages/ClientCookie-1.3.0-py3.6.egg-info/SOURCES.txt 100644 -/usr/lib/python3/site-packages/ClientCookie-1.3.0-py3.6.egg-info/dependency_links.txt 100644 -/usr/lib/python3/site-packages/ClientCookie-1.3.0-py3.6.egg-info/top_level.txt 100644 -/usr/lib/python3/site-packages/ClientCookie-1.3.0-py3.6.egg-info/zip-safe 100644 +/usr/lib/python3/site-packages/ClientCookie-1.3.0-py3.7.egg-info 40755 +/usr/lib/python3/site-packages/ClientCookie-1.3.0-py3.7.egg-info/PKG-INFO 100644 +/usr/lib/python3/site-packages/ClientCookie-1.3.0-py3.7.egg-info/SOURCES.txt 100644 +/usr/lib/python3/site-packages/ClientCookie-1.3.0-py3.7.egg-info/dependency_links.txt 100644 +/usr/lib/python3/site-packages/ClientCookie-1.3.0-py3.7.egg-info/top_level.txt 100644 +/usr/lib/python3/site-packages/ClientCookie-1.3.0-py3.7.egg-info/zip-safe 100644 /usr/lib/python3/site-packages/ClientCookie/_BSDDBCookieJar.py 100644 @@ -21,44 +21,44 @@ /usr/lib/python3/site-packages/ClientCookie/__pycache__ 40755 -/usr/lib/python3/site-packages/ClientCookie/__pycache__/_BSDDBCookieJar.cpython-36.opt-1.pyc 100644 -/usr/lib/python3/site-packages/ClientCookie/__pycache__/_BSDDBCookieJar.cpython-36.opt-2.pyc 100644 -/usr/lib/python3/site-packages/ClientCookie/__pycache__/_BSDDBCookieJar.cpython-36.pyc 100644 -/usr/lib/python3/site-packages/ClientCookie/__pycache__/_ClientCookie.cpython-36.opt-1.pyc 100644 -/usr/lib/python3/site-packages/ClientCookie/__pycache__/_ClientCookie.cpython-36.opt-2.pyc 100644 -/usr/lib/python3/site-packages/ClientCookie/__pycache__/_ClientCookie.cpython-36.pyc 100644 -/usr/lib/python3/site-packages/ClientCookie/__pycache__/_ConnCache.cpython-36.opt-1.pyc 100644 -/usr/lib/python3/site-packages/ClientCookie/__pycache__/_ConnCache.cpython-36.opt-2.pyc 100644 -/usr/lib/python3/site-packages/ClientCookie/__pycache__/_ConnCache.cpython-36.pyc 100644 -/usr/lib/python3/site-packages/ClientCookie/__pycache__/_Debug.cpython-36.opt-1.pyc 100644 -/usr/lib/python3/site-packages/ClientCookie/__pycache__/_Debug.cpython-36.opt-2.pyc 100644 -/usr/lib/python3/site-packages/ClientCookie/__pycache__/_Debug.cpython-36.pyc 100644 -/usr/lib/python3/site-packages/ClientCookie/__pycache__/_HeadersUtil.cpython-36.opt-1.pyc 100644 -/usr/lib/python3/site-packages/ClientCookie/__pycache__/_HeadersUtil.cpython-36.opt-2.pyc 100644 -/usr/lib/python3/site-packages/ClientCookie/__pycache__/_HeadersUtil.cpython-36.pyc 100644 -/usr/lib/python3/site-packages/ClientCookie/__pycache__/_LWPCookieJar.cpython-36.opt-1.pyc 100644 -/usr/lib/python3/site-packages/ClientCookie/__pycache__/_LWPCookieJar.cpython-36.opt-2.pyc 100644 -/usr/lib/python3/site-packages/ClientCookie/__pycache__/_LWPCookieJar.cpython-36.pyc 100644 -/usr/lib/python3/site-packages/ClientCookie/__pycache__/_MSIECookieJar.cpython-36.opt-1.pyc 100644 -/usr/lib/python3/site-packages/ClientCookie/__pycache__/_MSIECookieJar.cpython-36.opt-2.pyc 100644 -/usr/lib/python3/site-packages/ClientCookie/__pycache__/_MSIECookieJar.cpython-36.pyc 100644 -/usr/lib/python3/site-packages/ClientCookie/__pycache__/_MSIEDBCookieJar.cpython-36.opt-1.pyc 100644 -/usr/lib/python3/site-packages/ClientCookie/__pycache__/_MSIEDBCookieJar.cpython-36.opt-2.pyc 100644 -/usr/lib/python3/site-packages/ClientCookie/__pycache__/_MSIEDBCookieJar.cpython-36.pyc 100644 -/usr/lib/python3/site-packages/ClientCookie/__pycache__/_MozillaCookieJar.cpython-36.opt-1.pyc 100644 -/usr/lib/python3/site-packages/ClientCookie/__pycache__/_MozillaCookieJar.cpython-36.opt-2.pyc 100644 -/usr/lib/python3/site-packages/ClientCookie/__pycache__/_MozillaCookieJar.cpython-36.pyc 100644 -/usr/lib/python3/site-packages/ClientCookie/__pycache__/_Opener.cpython-36.opt-1.pyc 100644 -/usr/lib/python3/site-packages/ClientCookie/__pycache__/_Opener.cpython-36.opt-2.pyc 100644 -/usr/lib/python3/site-packages/ClientCookie/__pycache__/_Opener.cpython-36.pyc 100644 -/usr/lib/python3/site-packages/ClientCookie/__pycache__/_Request.cpython-36.opt-1.pyc 100644 -/usr/lib/python3/site-packages/ClientCookie/__pycache__/_Request.cpython-36.opt-2.pyc 100644 -/usr/lib/python3/site-packages/ClientCookie/__pycache__/_Request.cpython-36.pyc 100644 -/usr/lib/python3/site-packages/ClientCookie/__pycache__/_Util.cpython-36.opt-1.pyc 100644 -/usr/lib/python3/site-packages/ClientCookie/__pycache__/_Util.cpython-36.opt-2.pyc 100644 -/usr/lib/python3/site-packages/ClientCookie/__pycache__/_Util.cpython-36.pyc 100644 -/usr/lib/python3/site-packages/ClientCookie/__pycache__/__init__.cpython-36.opt-1.pyc 100644 -/usr/lib/python3/site-packages/ClientCookie/__pycache__/__init__.cpython-36.opt-2.pyc 100644 -/usr/lib/python3/site-packages/ClientCookie/__pycache__/__init__.cpython-36.pyc 100644 -/usr/lib/python3/site-packages/ClientCookie/__pycache__/_urllib2_support.cpython-36.opt-1.pyc 100644 -/usr/lib/python3/site-packages/ClientCookie/__pycache__/_urllib2_support.cpython-36.opt-2.pyc 100644 -/usr/lib/python3/site-packages/ClientCookie/__pycache__/_urllib2_support.cpython-36.pyc 100644 +/usr/lib/python3/site-packages/ClientCookie/__pycache__/_BSDDBCookieJar.cpython-37.opt-1.pyc 100644 +/usr/lib/python3/site-packages/ClientCookie/__pycache__/_BSDDBCookieJar.cpython-37.opt-2.pyc 100644 +/usr/lib/python3/site-packages/ClientCookie/__pycache__/_BSDDBCookieJar.cpython-37.pyc 100644 +/usr/lib/python3/site-packages/ClientCookie/__pycache__/_ClientCookie.cpython-37.opt-1.pyc 100644 +/usr/lib/python3/site-packages/ClientCookie/__pycache__/_ClientCookie.cpython-37.opt-2.pyc 100644 +/usr/lib/python3/site-packages/ClientCookie/__pycache__/_ClientCookie.cpython-37.pyc 100644 +/usr/lib/python3/site-packages/ClientCookie/__pycache__/_ConnCache.cpython-37.opt-1.pyc 100644 +/usr/lib/python3/site-packages/ClientCookie/__pycache__/_ConnCache.cpython-37.opt-2.pyc 100644 +/usr/lib/python3/site-packages/ClientCookie/__pycache__/_ConnCache.cpython-37.pyc 100644 +/usr/lib/python3/site-packages/ClientCookie/__pycache__/_Debug.cpython-37.opt-1.pyc 100644 +/usr/lib/python3/site-packages/ClientCookie/__pycache__/_Debug.cpython-37.opt-2.pyc 100644 +/usr/lib/python3/site-packages/ClientCookie/__pycache__/_Debug.cpython-37.pyc 100644 +/usr/lib/python3/site-packages/ClientCookie/__pycache__/_HeadersUtil.cpython-37.opt-1.pyc 100644 +/usr/lib/python3/site-packages/ClientCookie/__pycache__/_HeadersUtil.cpython-37.opt-2.pyc 100644 +/usr/lib/python3/site-packages/ClientCookie/__pycache__/_HeadersUtil.cpython-37.pyc 100644 +/usr/lib/python3/site-packages/ClientCookie/__pycache__/_LWPCookieJar.cpython-37.opt-1.pyc 100644 +/usr/lib/python3/site-packages/ClientCookie/__pycache__/_LWPCookieJar.cpython-37.opt-2.pyc 100644 +/usr/lib/python3/site-packages/ClientCookie/__pycache__/_LWPCookieJar.cpython-37.pyc 100644 +/usr/lib/python3/site-packages/ClientCookie/__pycache__/_MSIECookieJar.cpython-37.opt-1.pyc 100644 +/usr/lib/python3/site-packages/ClientCookie/__pycache__/_MSIECookieJar.cpython-37.opt-2.pyc 100644 +/usr/lib/python3/site-packages/ClientCookie/__pycache__/_MSIECookieJar.cpython-37.pyc 100644 +/usr/lib/python3/site-packages/ClientCookie/__pycache__/_MSIEDBCookieJar.cpython-37.opt-1.pyc 100644 +/usr/lib/python3/site-packages/ClientCookie/__pycache__/_MSIEDBCookieJar.cpython-37.opt-2.pyc 100644 +/usr/lib/python3/site-packages/ClientCookie/__pycache__/_MSIEDBCookieJar.cpython-37.pyc 100644 +/usr/lib/python3/site-packages/ClientCookie/__pycache__/_MozillaCookieJar.cpython-37.opt-1.pyc 100644 +/usr/lib/python3/site-packages/ClientCookie/__pycache__/_MozillaCookieJar.cpython-37.opt-2.pyc 100644 +/usr/lib/python3/site-packages/ClientCookie/__pycache__/_MozillaCookieJar.cpython-37.pyc 100644 +/usr/lib/python3/site-packages/ClientCookie/__pycache__/_Opener.cpython-37.opt-1.pyc 100644 +/usr/lib/python3/site-packages/ClientCookie/__pycache__/_Opener.cpython-37.opt-2.pyc 100644 +/usr/lib/python3/site-packages/ClientCookie/__pycache__/_Opener.cpython-37.pyc 100644 +/usr/lib/python3/site-packages/ClientCookie/__pycache__/_Request.cpython-37.opt-1.pyc 100644 +/usr/lib/python3/site-packages/ClientCookie/__pycache__/_Request.cpython-37.opt-2.pyc 100644 +/usr/lib/python3/site-packages/ClientCookie/__pycache__/_Request.cpython-37.pyc 100644 +/usr/lib/python3/site-packages/ClientCookie/__pycache__/_Util.cpython-37.opt-1.pyc 100644 +/usr/lib/python3/site-packages/ClientCookie/__pycache__/_Util.cpython-37.opt-2.pyc 100644 +/usr/lib/python3/site-packages/ClientCookie/__pycache__/_Util.cpython-37.pyc 100644 +/usr/lib/python3/site-packages/ClientCookie/__pycache__/__init__.cpython-37.opt-1.pyc 100644 +/usr/lib/python3/site-packages/ClientCookie/__pycache__/__init__.cpython-37.opt-2.pyc 100644 +/usr/lib/python3/site-packages/ClientCookie/__pycache__/__init__.cpython-37.pyc 100644 +/usr/lib/python3/site-packages/ClientCookie/__pycache__/_urllib2_support.cpython-37.opt-1.pyc 100644 +/usr/lib/python3/site-packages/ClientCookie/__pycache__/_urllib2_support.cpython-37.opt-2.pyc 100644 +/usr/lib/python3/site-packages/ClientCookie/__pycache__/_urllib2_support.cpython-37.pyc 100644 /usr/lib/python3/site-packages/ClientCookie/_urllib2_support.py 100644