<86>Nov 17 10:20:34 userdel[108808]: delete user 'rooter' <86>Nov 17 10:20:34 userdel[108808]: removed group 'rooter' owned by 'rooter' <86>Nov 17 10:20:34 groupadd[108833]: group added to /etc/group: name=rooter, GID=549 <86>Nov 17 10:20:34 groupadd[108833]: group added to /etc/gshadow: name=rooter <86>Nov 17 10:20:34 groupadd[108833]: new group: name=rooter, GID=549 <86>Nov 17 10:20:34 useradd[108846]: new user: name=rooter, UID=549, GID=549, home=/root, shell=/bin/bash <86>Nov 17 10:20:34 userdel[108875]: delete user 'builder' <86>Nov 17 10:20:34 userdel[108875]: removed group 'builder' owned by 'builder' <86>Nov 17 10:20:34 userdel[108875]: removed shadow group 'builder' owned by 'builder' <86>Nov 17 10:20:34 groupadd[108893]: group added to /etc/group: name=builder, GID=550 <86>Nov 17 10:20:34 groupadd[108893]: group added to /etc/gshadow: name=builder <86>Nov 17 10:20:34 groupadd[108893]: new group: name=builder, GID=550 <86>Nov 17 10:20:34 useradd[108906]: new user: name=builder, UID=550, GID=550, home=/usr/src, shell=/bin/bash <13>Nov 17 10:20:39 rpmi: libgdbm-1.8.3-alt10 1454943334 installed <13>Nov 17 10:20:39 rpmi: libexpat-2.2.4-alt1 1503305345 installed <13>Nov 17 10:20:40 rpmi: libp11-kit-0.23.15-alt1 sisyphus+226408.100.2.1 1554288204 installed <13>Nov 17 10:20:40 rpmi: libtasn1-4.14-alt1 p9+235792.100.2.1 1565425233 installed <13>Nov 17 10:20:40 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Nov 17 10:20:40 rpmi: alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Nov 17 10:20:40 rpmi: ca-certificates-2019.10.28-alt1 p9+240634.100.1.1 1573575926 installed <13>Nov 17 10:20:40 rpmi: ca-trust-0.1.2-alt1 p9+233349.100.1.1 1561655062 installed <13>Nov 17 10:20:40 rpmi: p11-kit-trust-0.23.15-alt1 sisyphus+226408.100.2.1 1554288204 installed <13>Nov 17 10:20:40 rpmi: libcrypto1.1-1.1.1d-alt1.1 p9+237853.200.3.1 1569251834 installed <13>Nov 17 10:20:40 rpmi: libssl1.1-1.1.1d-alt1.1 p9+237853.200.3.1 1569251834 installed <13>Nov 17 10:20:40 rpmi: python3-3.7.4-alt2 p9+239459.100.1.1 1571444790 installed <13>Nov 17 10:20:40 rpmi: libpython3-3.7.4-alt2 p9+239459.100.1.1 1571444790 installed <13>Nov 17 10:20:42 rpmi: python3-base-3.7.4-alt2 p9+239459.100.1.1 1571444790 installed <13>Nov 17 10:20:42 rpmi: tests-for-installed-python3-pkgs-0.1.13.1-alt2 1535450458 installed <13>Nov 17 10:20:42 rpmi: rpm-build-python3-0.1.13.1-alt2 1535450458 installed <13>Nov 17 10:20:48 rpmi: python3-module-pkg_resources-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed <13>Nov 17 10:20:48 rpmi: python3-module-six-1.12.0-alt1 sisyphus+219665.100.2.1 1548148570 installed <13>Nov 17 10:20:48 rpmi: python3-module-pluggy-0.11.0-alt1 sisyphus+229116.100.1.1 1557316655 installed <13>Nov 17 10:20:48 rpmi: python3-module-more-itertools-7.0.0-alt3 sisyphus+226536.100.1.1 1554329928 installed <13>Nov 17 10:20:48 rpmi: python3-module-iniconfig-1.0.0-alt1 sisyphus+227494.1100.1.3 1555839106 installed <13>Nov 17 10:20:48 rpmi: python3-module-pycparser-2.19-alt1 sisyphus+228366.1000.2.3 1556706938 installed <13>Nov 17 10:20:48 rpmi: python3-module-cffi-1.12.3-alt1 sisyphus+229040.200.3.1 1557316452 installed <13>Nov 17 10:20:48 rpmi: python3-module-attrs-19.1.0-alt1 sisyphus+227473.2100.1.2 1555756986 installed <13>Nov 17 10:20:48 rpmi: python3-module-atomicwrites-1.3.0-alt1 sisyphus+227473.2000.1.3 1555763467 installed <13>Nov 17 10:20:48 rpmi: python3-module-asn1crypto-0.24.0-alt1 sisyphus+227473.1300.1.2 1555756512 installed <13>Nov 17 10:20:48 rpmi: python3-module-apipkg-1.5-alt1 sisyphus+227465.1100.1.2 1555756555 installed <13>Nov 17 10:20:48 rpmi: python3-module-py-1.8.0-alt2 sisyphus+228349.1400.4.1 1556631070 installed <13>Nov 17 10:20:48 rpmi: python-module-iniconfig-1.0.0-alt1 sisyphus+227494.1100.1.3 1555839106 installed <13>Nov 17 10:20:49 rpmi: python-module-enum34-1.1.6-alt3 1527251693 installed <13>Nov 17 10:20:49 rpmi: python-module-apipkg-1.5-alt1 1531926894 installed <13>Nov 17 10:20:49 rpmi: python-modules-curses-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Nov 17 10:20:49 rpmi: libtinfo-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686226 installed <13>Nov 17 10:20:49 rpmi: libncurses-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686226 installed <13>Nov 17 10:20:49 rpmi: python3-dev-3.7.4-alt2 p9+239459.100.1.1 1571444790 installed <13>Nov 17 10:20:49 rpmi: libverto-0.3.0-alt1_7 sisyphus+225932.100.1.1 1553994919 installed <13>Nov 17 10:20:49 rpmi: libkeyutils-1.6-alt2 sisyphus+226520.100.2.1 1554512089 installed <13>Nov 17 10:20:49 rpmi: libcom_err-1.44.6-alt1 sisyphus+224154.100.1.1 1552091678 installed <86>Nov 17 10:20:49 groupadd[697]: group added to /etc/group: name=_keytab, GID=499 <86>Nov 17 10:20:49 groupadd[697]: group added to /etc/gshadow: name=_keytab <86>Nov 17 10:20:49 groupadd[697]: new group: name=_keytab, GID=499 <13>Nov 17 10:20:49 rpmi: libkrb5-1.16.3-alt1 sisyphus+223678.100.1.1 1551746516 installed <13>Nov 17 10:20:49 rpmi: libtirpc-1.0.3-alt1 1532008017 installed <13>Nov 17 10:20:49 rpmi: libnsl2-1.1.0-alt1_1 1511548749 installed <13>Nov 17 10:20:49 rpmi: python-modules-compiler-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Nov 17 10:20:49 rpmi: python-modules-email-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Nov 17 10:20:49 rpmi: python-modules-unittest-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Nov 17 10:20:49 rpmi: python-modules-encodings-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Nov 17 10:20:50 rpmi: python-modules-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Nov 17 10:20:50 rpmi: python-modules-nis-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Nov 17 10:20:50 rpmi: python-modules-ctypes-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Nov 17 10:20:50 rpmi: python-module-six-1.12.0-alt1 sisyphus+219665.100.2.1 1548148570 installed <13>Nov 17 10:20:50 rpmi: python-modules-xml-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Nov 17 10:20:50 rpmi: python-module-pkg_resources-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed <13>Nov 17 10:20:50 rpmi: python-modules-json-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Nov 17 10:20:50 rpmi: python-module-more-itertools-1:5.0.0-alt2 sisyphus+226536.200.1.1 1554329977 installed <13>Nov 17 10:20:50 rpmi: python-modules-multiprocessing-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Nov 17 10:20:50 rpmi: python-modules-logging-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Nov 17 10:20:50 rpmi: python-modules-hotshot-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Nov 17 10:20:50 rpmi: python-modules-bsddb-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Nov 17 10:20:50 rpmi: python-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Nov 17 10:20:50 rpmi: python-strict-2.7.16-alt1 sisyphus+226365.200.2.1 1554143277 installed <13>Nov 17 10:20:50 rpmi: python-modules-distutils-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Nov 17 10:20:50 rpmi: python-module-asn1crypto-0.24.0-alt1 sisyphus+227473.1300.1.2 1555756512 installed <13>Nov 17 10:20:50 rpmi: python-module-attrs-19.1.0-alt1 sisyphus+227473.2100.1.2 1555756986 installed <13>Nov 17 10:20:50 rpmi: python-module-pycparser-2.19-alt1 sisyphus+228366.1000.2.3 1556706938 installed <13>Nov 17 10:20:50 rpmi: python-module-cffi-1.12.3-alt1 sisyphus+229040.200.3.1 1557316452 installed <13>Nov 17 10:20:50 rpmi: python-module-atomicwrites-1.3.0-alt1 sisyphus+227473.2000.1.3 1555763467 installed <13>Nov 17 10:20:50 rpmi: python-module-ipaddress-1.0.18-alt1.1 sisyphus+227494.1700.1.3 1555839523 installed <13>Nov 17 10:20:50 rpmi: python-module-funcsigs-1.0.2-alt2 sisyphus+228355.2600.2.1 1556560236 installed <13>Nov 17 10:20:50 rpmi: python-module-scandir-1.10.0-alt1 sisyphus+225192.100.1.2 1552968870 installed <13>Nov 17 10:20:50 rpmi: python-module-pathlib2-2.3.3-alt1 sisyphus+228364.300.4.1 1556886257 installed <13>Nov 17 10:20:50 rpmi: python-module-py-1.8.0-alt2 sisyphus+228349.1400.4.1 1556631070 installed <13>Nov 17 10:20:50 rpmi: python-module-pluggy-0.11.0-alt1 sisyphus+229116.100.1.1 1557316655 installed <13>Nov 17 10:20:50 rpmi: libnsl2-devel-1.1.0-alt1_1 1511548749 installed <13>Nov 17 10:20:50 rpmi: python-dev-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <86>Nov 17 10:20:50 groupadd[3321]: group added to /etc/group: name=sasl, GID=498 <86>Nov 17 10:20:50 groupadd[3321]: group added to /etc/gshadow: name=sasl <86>Nov 17 10:20:50 groupadd[3321]: new group: name=sasl, GID=498 <13>Nov 17 10:20:50 rpmi: libsasl2-3-2.1.27-alt2 sisyphus+228101.100.1.1 1556139863 installed <13>Nov 17 10:20:50 rpmi: libldap-2.4.48-alt3 p9+238817.100.1.1 1570449122 installed <13>Nov 17 10:20:50 rpmi: libpq5-12.0-alt2 p9+239598.200.4.1 1572406852 installed <13>Nov 17 10:20:50 rpmi: python-module-psycopg2-2.8.3-alt1 p9+232795.100.2.1 1561367501 installed <13>Nov 17 10:20:50 rpmi: python3-module-psycopg2-2.8.3-alt1 p9+232795.100.2.1 1561367501 installed <13>Nov 17 10:20:50 rpmi: python-module-greenlet-0.4.15-alt1 sisyphus+225625.7600.91.1 1555287275 installed <13>Nov 17 10:20:50 rpmi: python-module-pytest-3.10.1-alt5 sisyphus+228366.2000.2.3 1556707871 installed <13>Nov 17 10:20:50 rpmi: python-module-cryptography-2.6.1-alt1 sisyphus+225625.24400.91.1 1555298600 installed <13>Nov 17 10:20:51 rpmi: python-module-dns-1.15.0-alt1 1507019424 installed <13>Nov 17 10:20:51 rpmi: python-module-nose-1:1.3.7-alt4.git20160316 sisyphus+229068.100.1.1 1557255939 installed <13>Nov 17 10:20:51 rpmi: python-modules-wsgiref-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Nov 17 10:20:51 rpmi: python3-module-greenlet-0.4.15-alt1 sisyphus+225625.7600.91.1 1555287275 installed <13>Nov 17 10:20:51 rpmi: python3-module-pytest-3.10.1-alt5 sisyphus+228366.2000.2.3 1556707871 installed <13>Nov 17 10:20:51 rpmi: python3-module-cryptography-2.6.1-alt1 sisyphus+225625.24400.91.1 1555298600 installed <13>Nov 17 10:20:51 rpmi: python3-module-nose-1:1.3.7-alt4.git20160316 sisyphus+229068.100.1.1 1557255939 installed <13>Nov 17 10:20:51 rpmi: python3-module-dns-1.15.0-alt2 sisyphus+227466.500.1.1 1555679149 installed Building target platforms: i586 Building for target i586 Wrote: /usr/src/in/nosrpm/python-module-restkit-4.2.2-alt2.git20140731.1.2.nosrc.rpm <13>Nov 17 10:20:54 rpmi: python-tools-2to3-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Nov 17 10:20:54 rpmi: python-module-setuptools-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed <13>Nov 17 10:20:54 rpmi: python3-module-setuptools-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed Installing python-module-restkit-4.2.2-alt2.git20140731.1.2.src.rpm Building target platforms: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.81467 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python-module-restkit-4.2.2 + echo 'Source #0 (python-module-restkit-4.2.2.tar):' Source #0 (python-module-restkit-4.2.2.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/python-module-restkit-4.2.2.tar + cd python-module-restkit-4.2.2 + /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/tests/treq.py RefactoringTool: Refactored ../python3/tests/t.py RefactoringTool: Refactored ../python3/tests/_server_test.py --- ../python3/tests/treq.py (original) +++ ../python3/tests/treq.py (refactored) @@ -3,15 +3,15 @@ # This file is part of the pywebmachine package released # under the MIT license. -from __future__ import with_statement - -import t + + +from . import t import inspect import os import random -from StringIO import StringIO -import urlparse +from io import StringIO +import urllib.parse from restkit.datastructures import MultiDict from restkit.errors import ParseException @@ -28,7 +28,7 @@ if not self.iter: return "" try: - return self.iter.next() + return next(self.iter) except StopIteration: self.iter = None return "" @@ -39,7 +39,7 @@ def uri(data): ret = {"raw": data} - parts = urlparse.urlparse(data) + parts = urllib.parse.urlparse(data) ret["scheme"] = parts.scheme or None ret["host"] = parts.netloc.rsplit(":", 1)[0] or None ret["port"] = parts.port or 80 @@ -60,7 +60,7 @@ def load_response_py(fname): config = globals().copy() config["uri"] = uri - execfile(fname, config) + exec(compile(open(fname, "rb").read(), fname, 'exec'), config) return config["response"] class response(object): @@ -209,7 +209,7 @@ if len(body): raise AssertionError("Failed to read entire body: %r" % body) try: - data = iter(req.body).next() + data = next(iter(req.body)) raise AssertionError("Read data after body finished: %r" % data) except StopIteration: pass @@ -232,9 +232,9 @@ ret = [] for (mt, sz, sn) in cfgs: - mtn = mt.func_name[6:] - szn = sz.func_name[5:] - snn = sn.func_name[5:] + mtn = mt.__name__[6:] + szn = sz.__name__[5:] + snn = sn.__name__[5:] def test_req(sn, sz, mt): self.check(sn, sz, mt) desc = "%s: MT: %s SZ: %s SN: %s" % (self.name, mtn, szn, snn) --- ../python3/tests/t.py (original) +++ ../python3/tests/t.py (refactored) @@ -4,10 +4,10 @@ # This file is part of gunicorn released under the MIT license. # See the NOTICE for more information. -from __future__ import with_statement + import os -from StringIO import StringIO +from io import StringIO import tempfile dirname = os.path.dirname(__file__) @@ -15,7 +15,7 @@ from restkit.client import Client from restkit.resource import Resource -from _server_test import HOST, PORT, run_server_test +from ._server_test import HOST, PORT, run_server_test run_server_test() def data_source(fname): @@ -71,7 +71,7 @@ def run(): cli = Client(timeout=300) func(self.url, cli) - run.func_name = func.func_name + run.__name__ = func.__name__ return run class resource_request(object): @@ -86,7 +86,7 @@ def run(): res = Resource(self.url) func(res) - run.func_name = func.func_name + run.__name__ = func.__name__ return run --- ../python3/tests/_server_test.py (original) +++ ../python3/tests/_server_test.py (refactored) @@ -16,21 +16,21 @@ # import base64 -from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer +from http.server import BaseHTTPRequestHandler, HTTPServer import cgi import os import socket import tempfile import threading import unittest -import urlparse -import Cookie +import urllib.parse +import http.cookies try: - from urlparse import parse_qsl, parse_qs + from urllib.parse import parse_qsl, parse_qs except ImportError: from cgi import parse_qsl, parse_qs -import urllib +import urllib.request, urllib.parse, urllib.error from restkit.util import to_bytestring HOST = 'localhost' @@ -45,7 +45,7 @@ def do_GET(self): - self.parsed_uri = urlparse.urlparse(urllib.unquote(self.path)) + self.parsed_uri = urllib.parse.urlparse(urllib.parse.unquote(self.path)) self.query = {} WARNING: couldn't encode ../python3/tests/_server_test.py's diff for your terminal RefactoringTool: Refactored ../python3/tests/010-test-proxies.py RefactoringTool: Refactored ../python3/tests/009-test-oauth_filter.py RefactoringTool: Refactored ../python3/tests/008-test-request.py WARNING: couldn't encode ../python3/tests/008-test-request.py's diff for your terminal RefactoringTool: Refactored ../python3/tests/007-test-util.py RefactoringTool: Refactored ../python3/tests/006-test-webob.py RefactoringTool: Refactored ../python3/tests/005-test-resource.py for k, v in parse_qsl(self.parsed_uri[4]): self.query[k] = v.decode('utf-8') @@ -57,7 +57,7 @@ elif path == "/unicode": extra_headers = [('Content-type', 'text/plain')] --- ../python3/tests/010-test-proxies.py (original) +++ ../python3/tests/010-test-proxies.py (refactored) @@ -3,8 +3,8 @@ # This file is part of restkit released under the MIT license. # See the NOTICE for more information. -import t -from _server_test import HOST, PORT +from . import t +from ._server_test import HOST, PORT from restkit.contrib import wsgi_proxy root_uri = "http://%s:%s" % (HOST, PORT) @@ -15,7 +15,7 @@ req = Request.blank('/') req.environ['SERVER_NAME'] = '%s:%s' % (HOST, PORT) return func(req) - wrapper.func_name = func.func_name + wrapper.__name__ = func.__name__ return wrapper @with_webob @@ -95,7 +95,7 @@ resp = req.get_response(proxy) body = resp.body - print resp.location + print(resp.location) assert resp.location == '%s/complete_redirect' % root_uri, str(resp) @with_webob --- ../python3/tests/009-test-oauth_filter.py (original) +++ ../python3/tests/009-test-oauth_filter.py (refactored) @@ -13,14 +13,14 @@ # Secret: 0e9e6413a9ef49510a4f68ed02cd try: - from urlparse import parse_qs, parse_qsl + from urllib.parse import parse_qs, parse_qsl except ImportError: from cgi import parse_qs, parse_qsl -import urllib +import urllib.request, urllib.parse, urllib.error from restkit import request, OAuthFilter from restkit.oauth2 import Consumer -import t +from . import t class oauth_request(object): @@ -50,8 +50,8 @@ def __call__(self, func): def run(): o = OAuthFilter('*', self.consumer) - func(o, self.url, urllib.urlencode(self.body)) - run.func_name = func.func_name + func(o, self.url, urllib.parse.urlencode(self.body)) + run.__name__ = func.__name__ return run @oauth_request('request_token') @@ -73,7 +73,7 @@ r = request(u, "POST", body=b, filters=[o], headers={"Content-type": "application/x-www-form-urlencoded"}) import sys - print >>sys.stderr, r.body_string() + print(r.body_string(), file=sys.stderr) t.eq(r.status_int, 200) # Because this is a POST and an application/x-www-form-urlencoded, the OAuth # can include the OAuth parameters directly into the body of the form, however --- ../python3/tests/008-test-request.py (original) +++ ../python3/tests/008-test-request.py (refactored) @@ -5,11 +5,11 @@ import os import uuid -import t +from . import t from restkit import request from restkit.forms import multipart_form_encode -from _server_test import HOST, PORT +from ._server_test import HOST, PORT LONG_BODY_PART = """This is a relatively long body, that we send to the client... This is a relatively long body, that we send to the client... @@ -127,10 +127,10 @@ t.eq(r.body_string(), content) def test_007(): - import StringIO + import io u = "http://%s:%s/multipart4" % (HOST, PORT) --- ../python3/tests/007-test-util.py (original) +++ ../python3/tests/007-test-util.py (refactored) @@ -4,7 +4,7 @@ # See the NOTICE for more information. -import t +from . import t from restkit import util def test_001(): --- ../python3/tests/006-test-webob.py (original) +++ ../python3/tests/006-test-webob.py (refactored) @@ -16,7 +16,7 @@ def testWebobException(self): from restkit.errors import ResourceError - self.assert_(issubclass(ResourceError, + self.assertTrue(issubclass(ResourceError, webob.exc.WSGIHTTPException) == True) if __name__ == '__main__': --- ../python3/tests/005-test-resource.py (original) +++ ../python3/tests/005-test-resource.py (refactored) @@ -4,12 +4,12 @@ # See the NOTICE for more information. -import t +from . import t from restkit.errors import RequestFailed, ResourceNotFound, \ Unauthorized from restkit.resource import Resource -from _server_test importWARNING: couldn't encode ../python3/tests/005-test-resource.py's diff for your terminal RefactoringTool: Refactored ../python3/tests/004-test-client.py WARNING: couldn't encode ../python3/tests/004-test-client.py's diff for your terminal RefactoringTool: Refactored ../python3/setup.py RefactoringTool: Refactored ../python3/restkit/wrappers.py RefactoringTool: No changes to ../python3/restkit/version.py RefactoringTool: Refactored ../python3/restkit/util.py HOST, PORT +from ._server_test import HOST, PORT @t.resource_request() def test_001(res): @@ -30,9 +30,9 @@ @t.resource_request() def test_004(res): - r = res.get(u'/test') + r = res.get('/test') t.eq(r.status_int, 200) --- ../python3/tests/004-test-client.py (original) +++ ../python3/tests/004-test-client.py (refactored) @@ -3,20 +3,20 @@ # This file is part of restkit released under the MIT license. # See the NOTICE for more information. -from __future__ import with_statement + import cgi import imghdr import os import socket import threading -import Queue -import urlparse +import queue +import urllib.parse import sys import tempfile import time -import t +from . import t from restkit.filters import BasicAuth @@ -84,7 +84,7 @@ @t.client_request("/unicode") def test_002(u, c): r = c.request(u) --- ../python3/setup.py (original) +++ ../python3/setup.py (refactored) @@ -4,7 +4,7 @@ # This file is part of restkit released under the MIT license. # See the NOTICE for more information. -from __future__ import with_statement + from setuptools import setup, find_packages import glob --- ../python3/restkit/wrappers.py (original) +++ ../python3/restkit/wrappers.py (refactored) @@ -8,9 +8,9 @@ import logging import mimetypes import os -from StringIO import StringIO +from io import StringIO import types -import urlparse +import urllib.parse import uuid from restkit.datastructures import MultiDict @@ -51,14 +51,14 @@ def _parsed_url(self): if self.url is None: raise ValueError("url isn't set") - return urlparse.urlparse(self.url) + return urllib.parse.urlparse(self.url) parsed_url = property(_parsed_url, doc="parsed url") def _path__get(self): parsed_url = self.parsed_url path = parsed_url.path or '/' - return urlparse.urlunparse(('','', path, parsed_url.params, + return urllib.parse.urlunparse(('','', path, parsed_url.params, parsed_url.query, parsed_url.fragment)) path = property(_path__get) @@ -123,7 +123,7 @@ elif hasattr(self._body, 'getvalue') and not \ self.is_chunked(): clen = len(self._body.getvalue()) - elif isinstance(self._body, types.StringTypes): + elif isinstance(self._body, (str,)): self._body = to_bytestring(self._body) clen = len(self._body) @@ -143,7 +143,7 @@ def maybe_rewind(self, msg=""): if self.body is not None: if not hasattr(self.body, 'seek') and \ - not isinstance(self.body, types.StringTypes): + not isinstance(self.body, (str,)): raise RequestError("error: '%s', body can't be rewind." % msg) if log.isEnabledFor(logging.DEBUG): @@ -179,9 +179,9 @@ def __iter__(self): return self - def next(self): + def __next__(self): try: - return self.body.next() + return next(self.body) except StopIteration: self.eof = True self.close() @@ -225,7 +225,7 @@ self.status = resp.status() self.status_int = resp.status_code() self.version = resp.version() - self.headerslist = self.headers.items() + self.headerslist = list(self.headers.items()) self.location = self.headers.get('location') self.final_url = request.url self.should_close = not resp.should_keep_alive() @@ -257,7 +257,7 @@ return key in self.headers def __iter__(self): - return self.headers.iteritems() + return iter(self.headers.items()) def can_read(self): return not self._already_read --- ../python3/restkit/util.py (original) +++ ../python3/restkit/util.py (refactored) @@ -6,10 +6,10 @@ import os import re import time -import urllib -import urlparse +import urllib.request, urllib.parse, urllib.error +import urllib.parse import warnings -import Cookie +import http.cookiesRefactoringTool: Refactored ../python3/restkit/tee.py from restkit.errors import InvalidUrl @@ -84,20 +84,20 @@ return (host, port) def to_bytestring(s): - if not isinstance(s, basestring): + if not isinstance(s, str): raise TypeError("value should be a str or unicode") - if isinstance(s, unicode): + if isinstance(s, str): return s.encode('utf-8') return s def url_quote(s, charset='utf-8', safe='/:'): """URL encode a single string with a given encoding.""" - if isinstance(s, unicode): + if isinstance(s, str): s = s.encode(charset) elif not isinstance(s, str): s = str(s) - return urllib.quote(s, safe=safe) + return urllib.parse.quote(s, safe=safe) def url_encode(obj, charset="utf8", encode_keys=False): @@ -123,11 +123,11 @@ v1 = encode(v1(), charset) else: v1 = encode(v1, charset) - tmp.append('%s=%s' % (urllib.quote(k), urllib.quote_plus(v1))) + tmp.append('%s=%s' % (urllib.parse.quote(k), urllib.parse.quote_plus(v1))) return '&'.join(tmp) def encode(v, charset="utf8"): - if isinstance(v, unicode): + if isinstance(v, str): v = v.encode(charset) else: v = str(v) @@ -155,7 +155,7 @@ _path = [] trailing_slash = False for s in args: - if s is not None and isinstance(s, basestring): + if s is not None and isinstance(s, str): if len(s) > 1 and s.endswith('/'): trailing_slash = True else: @@ -182,15 +182,15 @@ def rewrite_location(host_uri, location, prefix_path=None): prefix_path = prefix_path or '' - url = urlparse.urlparse(location) - host_url = urlparse.urlparse(host_uri) + url = urllib.parse.urlparse(location) + host_url = urllib.parse.urlparse(host_uri) if not absolute_http_url_re.match(location): # remote server doesn't follow rfc2616 proxy_uri = '%s%s' % (host_uri, prefix_path) - return urlparse.urljoin(proxy_uri, location) + return urllib.parse.urljoin(proxy_uri, location) elif url.scheme == host_url.scheme and url.netloc == host_url.netloc: - return urlparse.urlunparse((host_url.scheme, host_url.netloc, + return urllib.parse.urlunparse((host_url.scheme, host_url.netloc, prefix_path + url.path, url.params, url.query, url.fragment)) return location @@ -221,7 +221,7 @@ if len(found) == len(new_headers): return - for k, v in new_headers.items(): + for k, v in list(new_headers.items()): if k not in found: headers.append((k.title(), v)) return headers @@ -231,11 +231,11 @@ if cookie == '': return {} - if not isinstance(cookie, Cookie.BaseCookie): + if not isinstance(cookie, http.cookies.BaseCookie): try: - c = Cookie.SimpleCookie() + c = http.cookies.SimpleCookie() c.load(cookie) - except Cookie.CookieError: + except http.cookies.CookieError: # Invalid cookie return {} else: @@ -243,7 +243,7 @@ cookiedict = {} - for key in c.keys(): + for key in list(c.keys()): cook = c.get(key) cookiedict[key] = cook.value return cookiedict --- ../python3/restkit/tee.py (original) +++ ../python3/restkit/tee.py (refactored) @@ -13,9 +13,9 @@ import copy import os try: - from cStringIO import StringIO + from io import StringIO except ImportError: - from StringIO import StringIO + from io import StringIO import tempfile from restkit import conn @@ -28,7 +28,7 @@ self.buf = StringIO() self.eof = False - if isinstance(stream, basestring): + if isinstance(stream, str): stream = StringIO(stream) self.tmp = StringIO() else: @@ -135,7 +135,7 @@ self._close_unreader() return self.tmp.close() - def next(self): + def __next__(self): r = self.readline() if not r: RefactoringTool: Refactored ../python3/restkit/resource.py RefactoringTool: Refactored ../python3/restkit/oauth2.py raise StopIteration --- ../python3/restkit/resource.py (original) +++ ../python3/restkit/resource.py (refactored) @@ -11,7 +11,7 @@ This module provide a common interface for all HTTP request. """ from copy import copy -import urlparse +import urllib.parse from restkit.errors import ResourceNotFound, Unauthorized, \ RequestFailed, ResourceGone @@ -55,7 +55,7 @@ self.uri = uri if self.basic_auth_url: # detect credentials from url - u = urlparse.urlparse(uri) + u = urllib.parse.urlparse(uri) if u.username: password = u.password or "" @@ -65,7 +65,7 @@ client_opts['filters'] = filters # update uri - self.uri = urlparse.urlunparse((u.scheme, u.netloc.split("@")[-1], + self.uri = urllib.parse.urlunparse((u.scheme, u.netloc.split("@")[-1], u.path, u.params, u.query, u.fragment)) self.client_opts = client_opts --- ../python3/restkit/oauth2.py (original) +++ ../python3/restkit/oauth2.py (refactored) @@ -4,15 +4,15 @@ # See the NOTICE for more information. import base64 -import urllib +import urllib.request, urllib.parse, urllib.error import time import random -import urlparse +import urllib.parse import hmac import binascii try: - from urlparse import parse_qs, parse_qsl + from urllib.parse import parse_qs, parse_qsl except ImportError: from cgi import parse_qs, parse_qsl @@ -66,7 +66,7 @@ request.sign_request(signing_method, consumer, token) params = [] - for k, v in sorted(request.iteritems()): + for k, v in sorted(request.items()): if v is not None: params.append('%s="%s"' % (k, escape(v))) @@ -76,12 +76,12 @@ def to_unicode(s): """ Convert to unicode, raise exception with instructive error message if s is not unicode, ascii, or utf-8. """ - if not isinstance(s, unicode): + if not isinstance(s, str): if not isinstance(s, str): raise TypeError('You are required to pass either unicode or string here, not: %r (%s)' % (type(s), s)) try: s = s.decode('utf-8') - except UnicodeDecodeError, le: + except UnicodeDecodeError as le: raise TypeError('You are required to pass either a unicode object or a utf-8 string here. You passed a Python string object which contained non-utf-8: %r. The UnicodeDecodeError that resulted from attempting to interpret it as utf-8 was: %s' % (s, le,)) return s @@ -89,13 +89,13 @@ return to_unicode(s).encode('utf-8') def to_unicode_if_string(s): - if isinstance(s, basestring): + if isinstance(s, str): return to_unicode(s) else: return s def to_utf8_if_string(s): - if isinstance(s, basestring): + if isinstance(s, str): return to_utf8(s) else: return s @@ -105,12 +105,12 @@ Raise TypeError if x is a str containing non-utf8 bytes or if x is an iterable which contains such a str. """ - if isinstance(x, basestring): + if isinstance(x, str): return to_unicode(x) try: l = list(x) - except TypeError, e: + except TypeError as e: assert 'is not iterable' in str(e) return x else: @@ -121,12 +121,12 @@ Raise TypeError if x is a str or if x is an iterable which contains a str. """ - if isinstance(x, basestring): + if isinstance(x, str): return to_utf8(x) try: l = list(x) - except TypeError, e: + except TypeError as e: assert 'is not iterable' in str(e) return x else: @@ -134,7 +134,7 @@ def escape(s): """Escape a URL including any /.""" - return urllib.quote(s.encode('utf-8'), safe='~') + return urllib.parse.quote(s.encode('utf-8'), safe='~') def generate_timestamp(): """Get seconds since epoch (UTC).""" @@ -185,7 +185,7 @@ data = {'oauth_consumer_key': self.key, 'oauth_consumer_secret': self.secret} - return urllib.urlencode(data) + return urllib.parse.urlencode(data) class Token(object): @@ -229,13 +229,13 @@ def get_callback_url(self): if self.callback and self.verifier: # Append the oauth_verifier. - parts = urlparse.urlparse(self.callback) + parts = urllib.parse.urlparse(self.callback) scheme, netloc, path, params, query, fragment = parts[:6] if query: query = '%s&oauth_verifier=%s' % (query, self.verifier) else: query = 'oauth_verifier=%s' % self.verifier - return urlparse.urlunparse((scheme, netloc, path, params, + return urllib.parse.urlunparse((scheme, netloc, path, params, query, fragment)) return self.callback @@ -253,7 +253,7 @@ if self.callback_confirmed is not None: data['oauth_callback_confirmed'] = self.callback_confirmed - return urllib.urlencode(data) + return urllib.parse.urlencode(data) @staticmethod def from_string(s): @@ -324,7 +324,7 @@ self.url = to_unicode(url) self.method = method if parameters is not None: - for k, v in parameters.iteritems(): + for k, v in parameters.items(): k = to_unicode(k) v = to_unicode_optional_iterator(v) self[k] = v @@ -336,7 +336,7 @@ def url(self, value): self.__dict__['url'] = value if value is not None: - scheme, netloc, path, params, query, fragment = urlparse.urlparse(value) + scheme, netloc, path, params, query, fragment = urllib.parse.urlparse(value) # Exclude default port numbers. if scheme == 'http' and netloc[-3:] == ':80': @@ -347,7 +347,7 @@ raise ValueError("Unsupported URL %s (%s)." % (value, scheme)) # Normalized URL excludes params, query, and fragment. - self.normalized_url = urlparse.urlunparse((scheme, netloc, path, None, None, None)) + self.normalized_url = urllib.parse.urlunparse((scheme, netloc, path, None, None, None)) else: self.normalized_url = None self.__dict__['url'] = None @@ -361,12 +361,12 @@ def get_nonoauth_parameters(self): """Get any non-OAuth parameters.""" - return dict([(k, v) for k, v in self.iteritems() + return dict([(k, v) for k, v in self.items() if not k.startswith('oauth_')]) def to_header(self, realm=''): """Serialize as a header for an HTTPAuth request.""" - oauth_params = ((k, v) for k, v in self.items() + oauth_params = ((k, v) for k, v in list(self.items()) if k.startswith('oauth_')) stringy_params = ((k, escape(str(v))) for k, v in oauth_params) header_params = ('%s="%s"' % (k, v) for k, v in stringy_params) @@ -381,25 +381,25 @@ def to_postdata(self): """Serialize as post data for a POST request.""" d = {} - for k, v in self.iteritems(): + for k, v in self.items(): d[k.encode('utf-8')] = to_utf8_optional_iterator(v) # tell urlencode to deal with sequence values and map them correctly # to resulting querystring. for example self["k"] = ["v1", "v2"] will # result in 'k=v1&k=v2' and not k=%5B%27v1%27%2C+%27v2%27%5D - return urllib.urlencode(d, True).replace('+', '%20') + return urllib.parse.urlencode(d, True).replace('+', '%20') def to_url(self): """Serialize as a URL for a GET request.""" - base_url = urlparse.urlparse(self.url) + base_url = urllib.parse.urlparse(self.url) try: query = base_url.query except AttributeError: # must be python <2.5 query = base_url[4] query = parse_qs(query) - for k, v in self.items(): - if isinstance(v, unicode): + for k, v in list(self.items()): RefactoringTool: Refactored ../python3/restkit/forms.py + if isinstance(v, str): v = v.encode("utf-8") query.setdefault(k, []).append(v) @@ -418,8 +418,8 @@ fragment = base_url[5] url = (scheme, netloc, path, params, - urllib.urlencode(query, True), fragment) - return urlparse.urlunparse(url) + urllib.parse.urlencode(query, True), fragment) + return urllib.parse.urlunparse(url) def get_parameter(self, parameter): ret = self.get(parameter) @@ -431,31 +431,31 @@ def get_normalized_parameters(self): """Return a string that contains the parameters that must be signed.""" items = [] - for key, value in self.iteritems(): + for key, value in self.items(): if key == 'oauth_signature': continue # 1.0a/9.1.1 states that kvp must be sorted by key, then by value, # so we unpack sequence values into multiple items for sorting. - if isinstance(value, basestring): + if isinstance(value, str): items.append((to_utf8_if_string(key), to_utf8(value))) else: try: value = list(value) - except TypeError, e: + except TypeError as e: assert 'is not iterable' in str(e) items.append((to_utf8_if_string(key), to_utf8_if_string(value))) else: items.extend((to_utf8_if_string(key), to_utf8_if_string(item)) for item in value) # Include any query string parameters from the provided URL - query = urlparse.urlparse(self.url)[4] - - url_items = self._split_url_string(query).items() + query = urllib.parse.urlparse(self.url)[4] + + url_items = list(self._split_url_string(query).items()) url_items = [(to_utf8(k), to_utf8(v)) for k, v in url_items if k != 'oauth_signature' ] items.extend(url_items) items.sort() - encoded_str = urllib.urlencode(items) + encoded_str = urllib.parse.urlencode(items) # Encode signature parameters per Oauth Core 1.0 protocol # spec draft 7, section 3.6 # (http://tools.ietf.org/html/draft-hammer-oauth-07#section-3.6) @@ -519,7 +519,7 @@ parameters.update(query_params) # URL parameters. - param_str = urlparse.urlparse(http_url)[4] # query + param_str = urllib.parse.urlparse(http_url)[4] # query url_params = cls._split_url_string(param_str) parameters.update(url_params) @@ -581,15 +581,15 @@ # Split key-value. param_parts = param.split('=', 1) # Remove quotes and unescape the value. - params[param_parts[0]] = urllib.unquote(param_parts[1].strip('\"')) + params[param_parts[0]] = urllib.parse.unquote(param_parts[1].strip('\"')) return params @staticmethod def _split_url_string(param_str): """Turn URL string into parameters.""" parameters = parse_qs(param_str.encode('utf-8'), keep_blank_values=True) - for k, v in parameters.iteritems(): - parameters[k] = urllib.unquote(v[0]) + for k, v in parameters.items(): + parameters[k] = urllib.parse.unquote(v[0]) return parameters --- ../python3/restkit/forms.py (original) +++ ../python3/restkit/forms.py (refactored) @@ -7,7 +7,7 @@ import mimetypes import os import re -import urllib +import urllib.request, urllib.parse, urllib.error from restkit.util import to_bytestring, url_quote, url_encode @@ -30,7 +30,7 @@ self.size = len(value) self.value = value if fname is not None: - if isinstance(fname, unicode): + if isinstance(fname, str): fname = fname.encode("utf-8").encode("string_escape").replace('"', '\\"') else: fname = fname.encode("string_escape").replace('"', '\\"') @@ -105,14 +105,14 @@ self._cleRefactoringTool: Refactored ../python3/restkit/filters.py RefactoringTool: Refactored ../python3/restkit/errors.py RefactoringTool: Refactored ../python3/restkit/datastructures.py n = headers.get('Content-Length') if hasattr(params, 'items'): - params = params.items() + params = list(params.items()) for param in params: name, value = param if hasattr(value, "read"): fname = getattr(value, 'name') if fname is not None: - filetype = ';'.join(filter(None, mimetypes.guess_type(fname))) + filetype = ';'.join([_f for _f in mimetypes.guess_type(fname) if _f]) else: filetype = None if not isinstance(value, file) and self._clen is None: --- ../python3/restkit/filters.py (original) +++ ../python3/restkit/filters.py (refactored) @@ -6,10 +6,10 @@ import base64 import re try: - from urlparse import parse_qsl + from urllib.parse import parse_qsl except ImportError: from cgi import parse_qsl -from urlparse import urlunparse +from urllib.parse import urlunparse from restkit.oauth2 import Request, SignatureMethod_HMAC_SHA1 --- ../python3/restkit/errors.py (original) +++ ../python3/restkit/errors.py (refactored) @@ -29,7 +29,7 @@ return self.msg try: return str(self.__dict__) - except (NameError, ValueError, KeyError), e: + except (NameError, ValueError, KeyError) as e: return 'Unprintable exception %s: %s' \ % (self.__class__.__name__, str(e)) --- ../python3/restkit/datastructures.py (original) +++ ../python3/restkit/datastructures.py (refactored) @@ -24,16 +24,16 @@ if isinstance(args[0], MultiDict): items = args[0]._items elif hasattr(args[0], 'iteritems'): - items = list(args[0].iteritems()) + items = list(args[0].items()) elif hasattr(args[0], 'items'): - items = args[0].items() + items = list(args[0].items()) else: items = list(args[0]) self._items = items else: self._items = [] if kw: - self._items.extend(kw.iteritems()) + self._items.extend(iter(kw.items())) @classmethod def from_fieldstorage(cls, fs): @@ -104,7 +104,7 @@ """ result = {} multi = {} - for key, value in self.iteritems(): + for key, value in self.items(): if key in result: # We do this to not clobber any lists that are # *actual* values in this dictionary: @@ -122,7 +122,7 @@ Returns a dictionary where each key is associated with a list of values. """ r = {} - for key, val in self.iteritems(): + for key, val in self.items(): r.setdefault(key, []).append(val) return r @@ -159,8 +159,8 @@ def pop(self, key, *args): if len(args) > 1: - raise TypeError, "pop expected at most 2 arguments, got "\ - + repr(1 + len(args)) + raise TypeError("pop expected at most 2 arguments, got "\ + + repr(1 + len(args))) for i in range(len(self._items)): if self._items[i][0] == key: v = self._items[i][1] @@ -174,8 +174,8 @@ def ipop(self, key, *args): """ like pop but case insensitive """ if len(args) > 1: - raise TypeError, "pop expected at most 2 arguments, got "\ - + repr(1 + len(args)) + raise TypeError("pop expected at most 2 arguments, got "\ + + repr(1 + len(args))) lkey = key.lower() for i, item in enumerate(self._items): @@ -195,9 +195,9 @@ if other is None: pass elif hasattr(other, 'items'): - self._items.extend(other.items()) + self._items.extend(list(other.items())) elif hasattr(other, 'keys'): - for k in other.keys(): + for k in list(other.keys()): RefactoringTool: Refactored ../python3/restkit/contrib/wsgi_proxy.py RefactoringTool: No changes to ../python3/restkit/contrib/webob_helper.py RefactoringTool: Refactored ../python3/restkit/contrib/webob_api.py RefactoringTool: Refactored ../python3/restkit/contrib/ipython_shell.py self._items.append((k, other[k])) else: for k, v in other: @@ -206,7 +206,7 @@ self.update(kwargs) def __repr__(self): - items = ', '.join(['(%r, %r)' % v for v in self.iteritems()]) + items = ', '.join(['(%r, %r)' % v for v in self.items()]) return '%s([%s])' % (self.__class__.__name__, items) def __len__(self): --- ../python3/restkit/contrib/wsgi_proxy.py (original) +++ ../python3/restkit/contrib/wsgi_proxy.py (refactored) @@ -3,12 +3,12 @@ # This file is part of restkit released under the MIT license. # See the NOTICE for more information. -import urlparse +import urllib.parse try: - from cStringIO import StringIO + from io import StringIO except ImportError: - from StringIO import StringIO + from io import StringIO from restkit.client import Client from restkit.conn import MAX_BODY @@ -73,7 +73,7 @@ uri = host_uri + path_info new_headers = {} - for k, v in environ.items(): + for k, v in list(environ.items()): if k.startswith('HTTP_'): k = k[5:].replace('_', '-').title() new_headers[k] = v @@ -141,7 +141,7 @@ def __init__(self, uri, **kwargs): super(HostProxy, self).__init__(**kwargs) self.uri = uri.rstrip('/') - self.scheme, self.net_loc = urlparse.urlparse(self.uri)[0:2] + self.scheme, self.net_loc = urllib.parse.urlparse(self.uri)[0:2] def extract_uri(self, environ): environ['HTTP_HOST'] = self.net_loc --- ../python3/restkit/contrib/webob_api.py (original) +++ ../python3/restkit/contrib/webob_api.py (refactored) @@ -5,9 +5,9 @@ # See the NOTICE for more information. import base64 -from StringIO import StringIO -import urlparse -import urllib +from io import StringIO +import urllib.parse +import urllib.request, urllib.parse, urllib.error try: from webob import Request as BaseRequest @@ -63,7 +63,7 @@ if self.method in ('DELETE', 'GET'): self.body = '' elif self.method == 'POST' and self.POST: - body = urllib.urlencode(self.POST.copy()) + body = urllib.parse.urlencode(self.POST.copy()) stream = StringIO(body) stream.seek(0) self.body_file = stream @@ -80,7 +80,7 @@ path = url.lstrip('/') if url.startswith("http://") or url.startswith("https://"): - u = urlparse.urlsplit(url) + u = urllib.parse.urlsplit(url) if u.username is not None: password = u.password or "" encode = base64.b64encode("%s:%s" % (u.username, password)) @@ -90,7 +90,7 @@ self.host = u.netloc.split("@")[-1] self.path_info = u.path or "/" self.query_string = u.query - url = urlparse.urlunsplit((u.scheme, u.netloc.split("@")[-1], + url = urllib.parse.urlunsplit((u.scheme, u.netloc.split("@")[-1], u.path, u.query, u.fragment)) else: @@ -100,5 +100,5 @@ url = self.url - self.scheme, self.host, self.path_info = urlparse.urlparse(url)[0:3] + self.scheme, self.host, self.path_info = urllib.parse.urlparse(url)[0:3] --- ../python3/restkit/contrib/ipython_shell.py (original) +++ ../python3/restkit/contrib/ipython_shell.py (refactored) @@ -3,8 +3,8 @@ # This file is part of restkit released under the MIT license. # See the NOTICE for more information. -from StringIO import StringIO -import urlparse +from io import StringIO +import urllib.parse try: from IPython.config.loader import Config @@ -47,7 +47,7 @@ skip_body = False return BaseResponse.__str__(self, skip_body=skip_body) def __call__(self): - print self + print(self) class Request(BaseRequest): @@ -60,7 +60,7 @@ stream = a a.seek(0) continue - elif isinstance(a, basestring): + elif isinstance(a, str): RefactoringTool: Refactored ../python3/restkit/contrib/console.py RefactoringTool: Refactored ../python3/restkit/conn.py if a.startswith('http'): url = a elif a.startswith('/'): @@ -72,10 +72,10 @@ self.body_file = stream self.content_length = stream.len if self.method == 'GET' and kwargs: - for k, v in kwargs.items(): + for k, v in list(kwargs.items()): self.GET[k] = v elif self.method == 'POST' and kwargs: - for k, v in kwargs.items(): + for k, v in list(kwargs.items()): self.GET[k] = v return BaseRequest.get_response(self) @@ -85,7 +85,7 @@ return BaseRequest.__str__(self, skip_body=skip_body) def __call__(self): - print self + print(self) class ContentTypes(object): @@ -173,9 +173,9 @@ resp = self.request(k.upper(), *args, **kwargs) self.shell.user_ns.update(dict(resp=resp)) - print resp + print(resp) return resp - req.func_name = k + req.__name__ = k req.__name__ = k req.__doc__ = """send a HTTP %s""" % k.upper() return req @@ -208,8 +208,8 @@ doc = ' >>> %s(%s)' % (k, args) methods += '%-65.65s # send a HTTP %s\n' % (doc, k) ns['methods'] = methods - print HELP.strip() % ns - print '' + print(HELP.strip() % ns) + print('') def __repr__(self): return '' --- ../python3/restkit/contrib/console.py (original) +++ ../python3/restkit/contrib/console.py (refactored) @@ -3,7 +3,7 @@ # This file is part of restkit released under the MIT license. # See the NOTICE for more information. -from __future__ import with_statement + import os import optparse as op import sys @@ -186,8 +186,8 @@ try: from restkit.contrib import ipython_shell as shell shell.main(options=opts, *args) - except Exception, e: - print >>sys.stderr, str(e) + except Exception as e: + print(str(e), file=sys.stderr) sys.exit(1) return @@ -243,29 +243,29 @@ else: if opts.server_response: if opts.prettify: - print "\n\033[0m\033[95mServer response from %s:\n\033[0m" % ( - resp.final_url) + print("\n\033[0m\033[95mServer response from %s:\n\033[0m" % ( + resp.final_url)) for k, v in resp.headerslist: - print "\033[94m%s\033[0m: %s" % (k, v) - print "\033[0m" + print("\033[94m%s\033[0m: %s" % (k, v)) + print("\033[0m") else: - print "Server response from %s:\n" % (resp.final_url) + print("Server response from %s:\n" % (resp.final_url)) for k, v in resp.headerslist: - print "%s: %s" % (k, v) - print "" + print("%s: %s" % (k, v)) + print("") if opts.output == '-': if opts.prettify: - print prettify(resp) + print(prettify(resp)) else: - print resp.body_string() + print(resp.body_string()) else: if opts.prettify: - print prettify(resp) + print(prettify(resp)) else: - print resp.body_string() - - except Exception, e: + print(resp.body_string()) + + except Exception as e: sys.stderr.write("An error happened: %s" % str(e)) sys.stderr.flush() sys.exit(1) --- ../python3/restkit/conn.py (original) +++ ../python3/restkit/conn.py (refactored) @@ -9,7 +9,7 @@ import socket import ssl import time -imporRefactoringTool: Refactored ../python3/restkit/client.py RefactoringTool: Refactored ../python3/restkit/__init__.py RefactoringTool: Refactored ../python3/examples/test_threads.py t cStringIO +import io from socketpool import Connector from socketpool.util import is_connected @@ -30,7 +30,7 @@ self._s.connect((host, port)) if proxy_pieces: self._s.sendall(proxy_pieces) - response = cStringIO.StringIO() + response = io.StringIO() while response.getvalue()[-4:] != '\r\n\r\n': response.write(self._s.recv(1)) response.close() --- ../python3/restkit/client.py (original) +++ ../python3/restkit/client.py (refactored) @@ -11,7 +11,7 @@ import ssl import traceback import types -import urlparse +import urllib.parse try: from http_parser.http import ( @@ -199,7 +199,7 @@ request.is_proxied = True proxy_settings, proxy_auth = _get_proxy_auth(proxy_settings) - addr = parse_netloc(urlparse.urlparse(proxy_settings)) + addr = parse_netloc(urllib.parse.urlparse(proxy_settings)) if is_ssl: if proxy_auth: @@ -265,7 +265,7 @@ ] lheaders.extend(["%s: %s\r\n" % (k, str(v)) for k, v in \ - headers.items() if k.lower() not in \ + list(headers.items()) if k.lower() not in \ ('user-agent', 'host', 'accept-encoding',)]) if log.isEnabledFor(logging.DEBUG): log.debug("Send headers: %s" % lheaders) @@ -321,7 +321,7 @@ log.debug("send body (chunked: %s)" % chunked) - if isinstance(request.body, types.StringTypes): + if isinstance(request.body, (str,)): if msg is not None: conn.send(msg + to_bytestring(request.body), chunked) @@ -343,15 +343,15 @@ conn.send(msg) return self.get_response(request, conn) - except socket.gaierror, e: + except socket.gaierror as e: if conn is not None: conn.release(True) raise RequestError(str(e)) - except socket.timeout, e: + except socket.timeout as e: if conn is not None: conn.release(True) raise RequestTimeout(str(e)) - except socket.error, e: + except socket.error as e: if log.isEnabledFor(logging.DEBUG): log.debug("socket error: %s" % str(e)) if conn is not None: @@ -365,7 +365,7 @@ # should raised an exception in other cases request.maybe_rewind(msg=str(e)) - except NoMoreData, e: + except NoMoreData as e: if conn is not None: conn.release(True) @@ -502,10 +502,10 @@ proxy_password = proxy_password or "" if not proxy_username: - u = urlparse.urlparse(proxy_settings) + u = urllib.parse.urlparse(proxy_settings) if u.username: proxy_password = u.password or proxy_password - proxy_settings = urlparse.urlunparse((u.scheme, + proxy_settings = urllib.parse.urlunparse((u.scheme, u.netloc.split("@")[-1], u.path, u.params, u.query, u.fragment)) --- ../python3/restkit/__init__.py (original) +++ ../python3/restkit/__init__.py (refactored) @@ -18,7 +18,7 @@ import traceback traceback.print_exc() -import urlparse +import urllib.parse import logging LOG_LEVELS = { @@ -85,11 +85,11 @@ """ # detect credentials from url - u = urlparse.urlparse(url) + u = urllib.parse.urlparse(url) if u.username is not None: password = u.password or "" filters = kwargs.get('filters') or [] - url = urlparse.urlunparse((u.scheme, u.netloc.split("@")[-1], + url = urllib.parse.urlunparse((u.scheme, u.netloc.split("@")[-1], u.path, u.params, u.query, u.fragment)) filters.append(BasicAuth(u.username, password)) --- ../python3/examples/test_thrRefactoringTool: Refactored ../python3/examples/test_gevent.py RefactoringTool: Refactored ../python3/examples/test_eventlet.py RefactoringTool: Refactored ../python3/examples/couchdbproxy.py RefactoringTool: Refactored ../python3/doc/sphinxtogithub.py RefactoringTool: Refactored ../python3/doc/sitemap_gen.py eads.py (original) +++ ../python3/examples/test_threads.py (refactored) @@ -17,7 +17,7 @@ def fetch(u): r = request(u, follow_redirect=True) - print "RESULT: %s: %s (%s)" % (u, r.status, len(r.body_string())) + print("RESULT: %s: %s (%s)" % (u, r.status, len(r.body_string()))) def spawn(u): t = threading.Thread(target=fetch, args=[u]) @@ -30,4 +30,4 @@ [t.join() for t in threads] t = timeit.Timer(stmt=extract) -print "%.2f s" % t.timeit(number=1) +print("%.2f s" % t.timeit(number=1)) --- ../python3/examples/test_gevent.py (original) +++ ../python3/examples/test_gevent.py (refactored) @@ -24,7 +24,7 @@ def fetch(u): r = request(u, follow_redirect=True, pool=pool) - print "RESULT: %s: %s (%s)" % (u, r.status, len(r.body_string())) + print("RESULT: %s: %s (%s)" % (u, r.status, len(r.body_string()))) def extract(): @@ -32,4 +32,4 @@ gevent.joinall(jobs) t = timeit.Timer(stmt=extract) -print "%.2f s" % t.timeit(number=1) +print("%.2f s" % t.timeit(number=1)) --- ../python3/examples/test_eventlet.py (original) +++ ../python3/examples/test_eventlet.py (refactored) @@ -26,7 +26,7 @@ def fetch(u): r = request(u, follow_redirect=True, pool=pool) - print "RESULT: %s: %s (%s)" % (u, r.status, len(r.body_string())) + print("RESULT: %s: %s (%s)" % (u, r.status, len(r.body_string()))) def extract(): for url in allurls: @@ -34,4 +34,4 @@ epool.waitall() t = timeit.Timer(stmt=extract) -print "%.2f s" % t.timeit(number=1) +print("%.2f s" % t.timeit(number=1)) --- ../python3/examples/couchdbproxy.py (original) +++ ../python3/examples/couchdbproxy.py (refactored) @@ -3,7 +3,7 @@ # This file is part of restkit released under the MIT license. # See the NOTICE for more information. -import urlparse +import urllib.parse from webob import Request from restkit.contrib.wsgi_proxy import HostProxy @@ -22,7 +22,7 @@ req = Request(environ) if 'RAW_URI' in req.environ: # gunicorn so we use real path non encoded - u = urlparse.urlparse(req.environ['RAW_URI']) + u = urllib.parse.urlparse(req.environ['RAW_URI']) req.environ['PATH_INFO'] = u.path # do smth like adding oauth headers .. --- ../python3/doc/sphinxtogithub.py (original) +++ ../python3/doc/sphinxtogithub.py (refactored) @@ -288,12 +288,12 @@ if not app.config.sphinx_to_github: if app.config.sphinx_to_github_verbose: - print "Sphinx-to-github: Disabled, doing nothing." + print("Sphinx-to-github: Disabled, doing nothing.") return if exception: if app.config.sphinx_to_github_verbose: - print "Sphinx-to-github: Exception raised in main build, doing nothing." + print("Sphinx-to-github: Exception raised in main build, doing nothing.") return dir_helper = DirHelper( --- ../python3/doc/sitemap_gen.py (original) +++ ../python3/doc/sitemap_gen.py (refactored) @@ -55,8 +55,8 @@ # entire file has been parsed. import sys if sys.hexversion < 0x02020000: - print 'This script requires Python 2.2 or later.' - print 'Currently run with version: %s' % sys.version + print('This script requires Python 2.2 or later.') + print('Currently run with version: %s' % sys.version) sys.exit(1) import fnmatch @@ -68,8 +68,8 @@ import stat import time import types -import urllib -import urlparse +import urllib.request, urllib.parse, urllib.error +import urllib.parse import xml.sax # True and False were introduced in Python2.2.2 @@ -113,7 +113,7 @@ ) # Match patterns for lastmod attributes -DATE_PATTERNS = map(re.compile, [ +DATE_PATTERNS = list(map(re.compile, [ r'^\d\d\d\d$', r'^\d\d\d\d-\d\d$', r'^\d\d\d\d-\d\d-\d\d$', @@ -121,7 +121,7 @@ r'^\d\d\d\d-\d\d-\d\dT\d\d:\d\d[+-]\d\d:\d\d$', r'^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\d(\.\d+)?Z$', r'^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\d(\.\d+)?[+-]\d\d:\d\d$', - ]) + ])) # Match patterns for changefreq attributes CHANGEFREQ_PATTERNS = [ @@ -286,7 +286,7 @@ def NarrowText(self, text, encoding): """ Narrow a piece of arbitrary text """ - if type(text) != types.UnicodeType: + if type(text) != str: return text # Try the passed in preference @@ -338,13 +338,13 @@ def WidenText(self, text, encoding): """ Widen a piece of arbitrary text """ - if type(text) != types.StringType: + if type(text) != bytes: return text # Try the passed in preference if encoding: try: - result = unicode(text, encoding) + result = str(text, encoding) if not encoding in self._learned: self._learned.append(encoding) return result @@ -356,7 +356,7 @@ # Try the user preference if self._user: try: - return unicode(text, self._user) + return str(text, self._user) except UnicodeError: pass except LookupError: @@ -367,13 +367,13 @@ # Look through learned defaults, knock any failing ones out of the list while self._learned: try: - return unicode(text, self._learned[0]) + return str(text, self._learned[0]) except: del self._learned[0] # When all other defaults are exhausted, use UTF-8 try: - return unicode(text, ENC_UTF8) + return str(text, ENC_UTF8) except UnicodeError: pass @@ -418,7 +418,7 @@ if text: text = encoder.NarrowText(text, None) if self._verbose >= level: - print text + print(text) #end def Log def Warn(self, text): @@ -426,9 +426,9 @@ if text: text = encoder.NarrowText(text, None) hash = md5.new(text).digest() - if not self._warns_shown.has_key(hash): + if hash not in self._warns_shown: self._warns_shown[hash] = 1 - print '[WARNING] ' + text + print('[WARNING] ' + text) else: self.Log('(suppressed) [WARNING] ' + text, 3) self.num_warns = self.num_warns + 1 @@ -439,9 +439,9 @@ if text: text = encoder.NarrowText(text, None) hash = md5.new(text).digest() - if not self._errors_shown.has_key(hash): + if hash not in self._errors_shown: self._errors_shown[hash] = 1 - print '[ERROR] ' + text + print('[ERROR] ' + text) else: self.Log('(suppressed) [ERROR] ' + text, 3) self.num_errors = self.num_errors + 1 @@ -451,16 +451,16 @@ """ Output an error and terminate the program. """ if text: text = encoder.NarrowText(text, None) - print '[FATAL] ' + text + print('[FATAL] ' + text) else: - print 'Fatal error.' + print('Fatal error.') sys.exit(1) #end def Fatal def SetVerbose(self, level): """ Sets the verbose level. """ try: - if type(level) != types.IntType: + if type(level) != int: level = int(level) if (level >= 0) and (level <= 3): self._verbose = level @@ -510,7 +510,7 @@ if not loc: return False narrow = encoder.NarrowText(loc, None) - (scheme, netloc, path, query, frag) = urlparse.urlsplit(narrow) + (scheme, netloc, path, query, frag) = urllib.parse.urlsplit(narrow) if (not scheme) or (not netloc): return False return True @@ -526,21 +526,21 @@ narrow = encoder.NarrowText(loc, None) # Escape components individually - (scheme, netloc, path, query, frag) = urlparse.urlsplit(narrow) + (scheme, netloc, path, query, frag) = urllib.parse.urlsplit(narrow) unr = '-._~' sub = '!$&\'()*+,;=' - netloc = urllib.quote(netloc, unr + sub + '%:@/[]') - path = urllib.quote(path, unr + sub + '%:@/') - query = urllib.quote(query, unr + sub + '%:@/?') - frag = urllib.quote(frag, unr + sub + '%:@/?') + netloc = urllib.parse.quote(netloc, unr + sub + '%:@/[]') + path = urllib.parse.quote(path, unr + sub + '%:@/') + query = urllib.parse.quote(query, unr + sub + '%:@/?') + frag = urllib.parse.quote(frag, unr + sub + '%:@/?') # Try built-in IDNA encoding on the netloc try: - (ignore, widenetloc, ignore, ignore, ignore) = urlparse.urlsplit(loc) + (ignore, widenetloc, ignore, ignore, ignore) = urllib.parse.urlsplit(loc) for c in widenetloc: - if c >= unichr(128): + if c >= chr(128): netloc = widenetloc.encode(ENC_IDNA) - netloc = urllib.quote(netloc, unr + sub + '%:@/[]') + netloc = urllib.parse.quote(netloc, unr + sub + '%:@/[]') break except UnicodeError: # urlsplit must have failed, based on implementation differences in the @@ -557,7 +557,7 @@ bad_netloc = True # Put it all back together - narrow = urlparse.urlunsplit((scheme, netloc, path, query, frag)) + narrow = urllib.parse.urlunsplit((scheme, netloc, path, query, frag)) # I let '%' through. Fix any that aren't pre-existing escapes. HEXDIG = '0123456789abcdefABCDEF' @@ -596,14 +596,14 @@ def Validate(self, base_url, allow_fragment): """ Verify the data in this URL is well-formed, and override if not. """ - assert type(base_url) == types.StringType + assert type(base_url) == bytes # Test (and normalize) the ref if not self.loc: output.Warn('Empty URL') return False if allow_fragment: - self.loc = urlparse.urljoin(base_url, self.loc) + self.loc = urllib.parse.urljoin(base_url, self.loc) if not self.loc.startswith(base_url): output.Warn('Discarded URL for not starting with the base_url: %s' % self.loc) @@ -674,9 +674,9 @@ for attribute in self.__slots__: value = getattr(self, attribute) if value: - if type(value) == types.UnicodeType: + if type(value) == str: value = encoder.NarrowText(value, None) - elif type(value) != types.StringType: + elif type(value) != bytes: value = str(value) value = xml.sax.saxutils.escape(value) out = out + (' <%s>%s\n' % (attribute, value, attribute)) @@ -700,7 +700,7 @@ def Validate(self, base_url, allow_fragment): """ Verify the data in this News URL is well-formed, and override if not. """ - assert type(base_url) == types.StringType + assert type(base_url) == bytes if not URL.Validate(self, base_url, allow_fragment): return False @@ -722,9 +722,9 @@ for attribute in self.__slots__: value = getattr(self, attribute) if value: - if type(value) == types.UnicodeType: + if type(value) == str: value = encoder.NarrowText(value, None) - elif type(value) != types.StringType: + elif type(value) != bytes: value = str(value) value = xml.sax.saxutils.escape(value) if attribute in NEWS_SPECIFIC_TAGS: @@ -840,7 +840,7 @@ return url = URL() - for attr in attributes.keys(): + for attr in list(attributes.keys()): if attr == 'href': url.TrySetAttribute('loc', attributes[attr]) else: @@ -1086,7 +1086,7 @@ if not url.endswith('/'): url = url + '/' if not url.startswith(base_url): - url = urlparse.urljoin(base_url, url) + url = urllib.parse.urljoin(base_url, url) if not url.startswith(base_url): output.Error('The directory URL "%s" is not relative to the ' 'base_url: %s' % (url, base_url)) @@ -1461,7 +1461,7 @@ def GeneratePath(self, instance): """ Generates the iterations, as described above. """ prefix = self._path + self._prefix - if type(instance) == types.IntType: + if type(instance) == int: if instance: return '%s%d%s' % (prefix, instance, self._suffix) return prefix + self._suffix @@ -1472,7 +1472,7 @@ """ Generates iterations, but as a URL instead of a path. """ prefix = root_url + self._prefix retval = None - if type(instance) == types.IntType: + if type(instance) == int: if instance: retval = '%s%d%s' % (prefix, instance, self._suffix) else: @@ -1502,13 +1502,13 @@ def Consume(self, url): """ Log some stats for the URL. At the moment, that means extension. """ if url and url.loc: - (scheme, netloc, path, query, frag) = urlparse.urlsplit(url.loc) + (scheme, netloc, path, query, frag) = urllib.parse.urlsplit(url.loc) if not path: return # Recognize directories if path.endswith('/'): - if self._extensions.has_key('/'): + if '/' in self._extensions: self._extensions['/'] = self._extensions['/'] + 1 else: self._extensions['/'] = 1 @@ -1525,12 +1525,12 @@ if i > 0: assert i < len(path) ext = path[i:].lower() - if self._extensions.has_key(ext): + if ext in self._extensions: self._extensions[ext] = self._extensions[ext] + 1 else: self._extensions[ext] = 1 else: - if self._extensions.has_key('(no extension)'): + if '(no extension)' in self._extensions: self._extensions['(no extension)'] = self._extensions[ '(no extension)'] + 1 else: @@ -1541,7 +1541,7 @@ """ Dump out stats to the output. """ if len(self._extensions): output.Log('Count of file extensions on URLs:', 1) - set = self._extensions.keys() + set = list(self._extensions.keys()) set.sort() for ext in set: output.Log(' %7d %s' % (self._extensions[ext], ext), 1) @@ -1617,8 +1617,8 @@ # Unify various forms of False if all_good: if self._suppress: - if (type(self._suppress) == types.StringType) or (type(self._suppress) - == types.UnicodeType): + if (type(self._suppress) == bytes) or (type(self._suppress) + == str): if (self._suppress == '0') or (self._suppress.lower() == 'false'): self._suppress = False @@ -1702,7 +1702,7 @@ # Note the sighting hash = url.MakeHash() - if self._urls.has_key(hash): + if hash in self._urls: dup = self._urls[hash] if dup > 0: dup = dup + 1 @@ -1780,7 +1780,7 @@ file = None except IOError: output.Fatal('Couldn\'t write out to file: %s' % filename) - os.chmod(filename, 0644) + os.chmod(filename, 0o644) # Flush self._set = [] @@ -1821,7 +1821,7 @@ fd = None except IOError: output.Fatal('Couldn\'t write out to file: %s' % filename) - os.chmod(filename, 0644) + os.chmod(filename, 0o644) #end def WriteIndex def NotifySearch(self): @@ -1833,14 +1833,14 @@ output.Log('Notifying search engines.', 1) # Override the urllib's opener class with one that doesn't ignore 404s - class ExceptionURLopener(urllib.FancyURLopener): + class ExceptionURLopener(urllib.request.FancyURLopener): def http_error_default(self, url, fp, errcode, errmsg, headers): output.Log('HTTP error %d: %s' % (errcode, errmsg), 2) raise IOError #end def http_error_default #end class ExceptionURLOpener - old_opener = urllib._urlopener - urllib._urlopener = ExceptionURLopener() + old_opener = urllib.request._urlopener + urllib.request._urlopener = ExceptionURLopener() # Build the URL we want to send in if self._sitemaps > 1: @@ -1850,7 +1850,7 @@ # Test if we can hit it ourselves try: - u = urllib.urlopen(url) + u = urllib.request.urlopen(url) u.close() except IOError: output.Error('When attempting to access our generated Sitemap at the ' @@ -1866,21 +1866,21 @@ query_map = ping[3] query_attr = ping[5] query_map[query_attr] = url - query = urllib.urlencode(query_map) - notify = urlparse.urlunsplit((ping[0], ping[1], ping[2], query, ping[4])) + query = urllib.parse.urlencode(query_map) + notify = urllib.parse.urlunsplit((ping[0], ping[1], ping[2], query, ping[4])) # Send the notification output.Log('Notifying: %s' % ping[1], 0) output.Log('Notification URL: %s' % notify, 2) try: - u = urllib.urlopen(notify) + u = urllib.reRefactoringTool: Refactored ../python3/doc/conf.py WARNING: couldn't encode ../python3/doc/conf.py's diff for your terminal RefactoringTool: Refactored ../python3/bootstrap.py RefactoringTool: Files that were modified: RefactoringTool: ../python3/tests/treq.py RefactoringTool: ../python3/tests/t.py RefactoringTool: ../python3/tests/_server_test.py RefactoringTool: ../python3/tests/010-test-proxies.py RefactoringTool: ../python3/tests/009-test-oauth_filter.py RefactoringTool: ../python3/tests/008-test-request.py RefactoringTool: ../python3/tests/007-test-util.py RefactoringTool: ../python3/tests/006-test-webob.py RefactoringTool: ../python3/tests/005-test-resource.py RefactoringTool: ../python3/tests/004-test-client.py RefactoringTool: ../python3/setup.py RefactoringTool: ../python3/restkit/wrappers.py RefactoringTool: ../python3/restkit/version.py RefactoringTool: ../python3/restkit/util.py RefactoringTool: ../python3/restkit/tee.py RefactoringTool: ../python3/restkit/resource.py RefactoringTool: ../python3/restkit/oauth2.py RefactoringTool: ../python3/restkit/forms.py RefactoringTool: ../python3/restkit/filters.py RefactoringTool: ../python3/restkit/errors.py RefactoringTool: ../python3/restkit/datastructures.py RefactoringTool: ../python3/restkit/contrib/wsgi_proxy.py RefactoringTool: ../python3/restkit/contrib/webob_helper.py RefactoringTool: ../python3/restkit/contrib/webob_api.py RefactoringTool: ../python3/restkit/contrib/ipython_shell.py RefactoringTool: ../python3/restkit/contrib/console.py RefactoringTool: ../python3/restkit/conn.py RefactoringTool: ../python3/restkit/client.py RefactoringTool: ../python3/restkit/__init__.py RefactoringTool: ../python3/examples/test_threads.py RefactoringTool: ../python3/examples/test_gevent.py RefactoringTool: ../python3/examples/test_eventlet.py RefactoringTool: ../python3/examples/couchdbproxy.py RefactoringTool: ../python3/doc/sphinxtogithub.py RefactoringTool: ../python3/doc/sitemap_gen.py RefactoringTool: ../python3/doc/conf.py RefactoringTool: ../python3/bootstrap.py quest.urlopen(notify) u.read() u.close() except IOError: output.Warn('Cannot contact: %s' % ping[1]) if old_opener: - urllib._urlopener = old_opener + urllib.request._urlopener = old_opener #end def NotifySearch def startElement(self, tag, attributes): @@ -1912,7 +1912,7 @@ self._filters.append(Filter(attributes)) elif tag == 'url': - print type(attributes) + print(type(attributes)) self._inputs.append(InputURL(attributes)) elif tag == 'urllist': @@ -1955,7 +1955,7 @@ """ Makes sure 'attributes' does not contain any attribute not listed in 'goodattributes' """ all_good = True - for attr in attributes.keys(): + for attr in list(attributes.keys()): if not attr in goodattributes: output.Error('Unknown %s attribute: %s' % (tag, attr)) all_good = False @@ -1977,9 +1977,9 @@ return [src] # If this isn't actually a dictionary, make it one - if type(src) != types.DictionaryType: + if type(src) != dict: tmp = {} - for key in src.keys(): + for key in list(src.keys()): tmp[key] = src[key] src = tmp # Create N new dictionaries @@ -2036,7 +2036,7 @@ xml.sax.parse(configpath, sitemap) except IOError: output.Error('Cannot read configuration file: %s' % configpath) - except xml.sax._exceptions.SAXParseException, e: + except xml.sax._exceptions.SAXParseException as e: output.Error('XML error in the config file (line %d, column %d): %s' % (e._linenum, e._colnum, e.getMessage())) except xml.sax._exceptions.SAXReaderNotAvailable: @@ -2065,9 +2065,9 @@ for a in args: try: rcg = rc.search(a).groupdict() - if rcg.has_key('key'): + if 'key' in rcg: flags[rcg['key']] = rcg['value'] - if rcg.has_key('option'): + if 'option' in rcg: flags[rcg['option']] = rcg['option'] except AttributeError: return None @@ -2081,10 +2081,10 @@ if __name__ == '__main__': flags = ProcessCommandFlags(sys.argv[1:]) - if not flags or not flags.has_key('config') or flags.has_key('help'): + if not flags or 'config' not in flags or 'help' in flags: output.Log(__usage__, 0) else: - suppress_notify = flags.has_key('testing') + suppress_notify = 'testing' in flags sitemap = CreateSitemapFromFile(flags['config'], suppress_notify) if not sitemap: output.Log('Configuration file errors -- exiting.', 0) --- ../python3/doc/conf.py (original) +++ ../python3/doc/conf.py (refactored) @@ -20,8 +20,8 @@ source_suffix = '.rst' master_doc = 'index' -project = u'restkit' --- ../python3/bootstrap.py (original) +++ ../python3/bootstrap.py (refactored) @@ -20,7 +20,7 @@ $Id$ """ -import os, shutil, sys, tempfile, urllib2 +import os, shutil, sys, tempfile, urllib.request, urllib.error, urllib.parse from optparse import OptionParser tmpeggs = tempfile.mkdtemp() @@ -62,12 +62,12 @@ except ImportError: ez = {} if USE_DISTRIBUTE: - exec urllib2.urlopen('http://python-distribute.org/distribute_setup.py' - ).read() in ez + exec(urllib.request.urlopen('http://python-distribute.org/distribute_setup.py' + ).read(), ez) ez['use_setuptools'](to_dir=tmpeggs, download_delay=0, no_fake=True) else: - exec urllib2.urlopen('http://peak.telecommunity.com/dist/ez_setup.py' - ).read() in ez + exec(urllib.request.urlopen('http://peak.telecommunity.com/dist/ez_setup.py' + ).read(), ez) ez['use_setuptools'](to_dir=tmpeggs, download_delay=0) if to_reload: + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.74025 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-restkit-4.2.2 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export FFLAGS + /usr/bin/python setup.py build running build running build_py creating build creating build/lib creating build/lib/restkit copying restkit/wrappers.py -> build/lib/restkit copying restkit/version.py -> build/lib/restkit copying restkit/util.py -> build/lib/restkit copying restkit/tee.py -> build/lib/restkit copying restkit/session.py -> build/lib/restkit copying restkit/resource.py -> build/lib/restkit copying restkit/oauth2.py -> build/lib/restkit copying restkit/forms.py -> build/lib/restkit copying restkit/filters.py -> build/lib/restkit copying restkit/errors.py -> build/lib/restkit copying restkit/datastructures.py -> build/lib/restkit copying restkit/conn.py -> build/lib/restkit copying restkit/client.py -> build/lib/restkit copying restkit/__init__.py -> build/lib/restkit creating build/lib/restkit/contrib copying restkit/contrib/wsgi_proxy.py -> build/lib/restkit/contrib copying restkit/contrib/webob_helper.py -> build/lib/restkit/contrib copying restkit/contrib/webob_api.py -> build/lib/restkit/contrib copying restkit/contrib/ipython_shell.py -> build/lib/restkit/contrib copying restkit/contrib/console.py -> build/lib/restkit/contrib copying restkit/contrib/__init__.py -> build/lib/restkit/contrib running build_scripts creating build/scripts-2.7 copying and adjusting scripts/restcli -> build/scripts-2.7 changing mode of build/scripts-2.7/restcli from 644 to 755 + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-restkit-4.2.2 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export FFLAGS + /usr/bin/python3 setup.py build running build running build_py creating build creating build/lib creating build/lib/restkit copying restkit/wrappers.py -> build/lib/restkit copying restkit/version.py -> build/lib/restkit copying restkit/util.py -> build/lib/restkit copying restkit/tee.py -> build/lib/restkit copying restkit/session.py -> build/lib/restkit copying restkit/resource.py -> build/lib/restkit copying restkit/oauth2.py -> build/lib/restkit copying restkit/forms.py -> build/lib/restkit copying restkit/filters.py -> build/lib/restkit copying restkit/errors.py -> build/lib/restkit copying restkit/datastructures.py -> build/lib/restkit copying restkit/conn.py -> build/lib/restkit copying restkit/client.py -> build/lib/restkit copying restkit/__init__.py -> build/lib/restkit creating build/lib/restkit/contrib copying restkit/contrib/wsgi_proxy.py -> build/lib/restkit/contrib copying restkit/contrib/webob_helper.py -> build/lib/restkit/contrib copying restkit/contrib/webob_api.py -> build/lib/restkit/contrib copying restkit/contrib/ipython_shell.py -> build/lib/restkit/contrib copying restkit/contrib/console.py -> build/lib/restkit/contrib copying restkit/contrib/__init__.py -> build/lib/restkit/contrib running build_scripts creating build/scripts-3.7 copying and adjusting scripts/restcli -> build/scripts-3.7 changing mode of build/scripts-3.7/restcli from 644 to 755 + popd ~/RPM/BUILD/python-module-restkit-4.2.2 + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.78326 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python-module-restkit-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python-module-restkit-buildroot + cd python-module-restkit-4.2.2 + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-restkit-4.2.2 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export FFLAGS + /usr/bin/python3 setup.py install --skip-build --root=/usr/src/tmp/python-module-restkit-buildroot --force running install running install_lib creating /usr/src/tmp/python-module-restkit-buildroot creating /usr/src/tmp/python-module-restkit-buildroot/usr creating /usr/src/tmp/python-module-restkit-buildroot/usr/lib creating /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3 creating /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages creating /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit creating /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib copying build/lib/restkit/contrib/__init__.py -> /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib copying build/lib/restkit/contrib/console.py -> /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib copying build/lib/restkit/contrib/ipython_shell.py -> /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib copying build/lib/restkit/contrib/webob_api.py -> /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib copying build/lib/restkit/contrib/webob_helper.py -> /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib copying build/lib/restkit/contrib/wsgi_proxy.py -> /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib copying build/lib/restkit/__init__.py -> /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit copying build/lib/restkit/client.py -> /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit copying build/lib/restkit/conn.py -> /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit copying build/lib/restkit/datastructures.py -> /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit copying build/lib/restkit/errors.py -> /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit copying build/lib/restkit/filters.py -> /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit copying build/lib/restkit/forms.py -> /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit copying build/lib/restkit/oauth2.py -> /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit copying build/lib/restkit/resource.py -> /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit copying build/lib/restkit/session.py -> /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit copying build/lib/restkit/tee.py -> /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit copying build/lib/restkit/util.py -> /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit copying build/lib/restkit/version.py -> /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit copying build/lib/restkit/wrappers.py -> /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit byte-compiling /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib/__init__.py to __init__.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib/console.py to console.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib/ipython_shell.py to ipython_shell.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib/webob_api.py to webob_api.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib/webob_helper.py to webob_helper.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib/wsgi_proxy.py to wsgi_proxy.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/__init__.py to __init__.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/client.py to client.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/conn.py to conn.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/datastructures.py to datastructures.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/errors.py to errors.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/filters.py to filters.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/forms.py to forms.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/oauth2.py to oauth2.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/resource.py to resource.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/session.py to session.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/tee.py to tee.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/util.py to util.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/version.py to version.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/wrappers.py to wrappers.cpython-37.pyc running install_data creating /usr/src/tmp/python-module-restkit-buildroot/usr/restkit copying LICENSE -> /usr/src/tmp/python-module-restkit-buildroot/usr/restkit copying MANIFEST.in -> /usr/src/tmp/python-module-restkit-buildroot/usr/restkit copying NOTICE -> /usr/src/tmp/python-module-restkit-buildroot/usr/restkit copying README.rst -> /usr/src/tmp/python-module-restkit-buildroot/usr/restkit copying THANKS -> /usr/src/tmp/python-module-restkit-buildroot/usr/restkit copying TODO.txt -> /usr/src/tmp/python-module-restkit-buildroot/usr/restkit running install_egg_info running egg_info creating restkit.egg-info writing restkit.egg-info/PKG-INFO writing dependency_links to restkit.egg-info/dependency_links.txt writing entry points to restkit.egg-info/entry_points.txt writing requirements to restkit.egg-info/requires.txt writing top-level names to restkit.egg-info/top_level.txt writing manifest file 'restkit.egg-info/SOURCES.txt' reading manifest file 'restkit.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'restkit.egg-info/SOURCES.txt' Copying restkit.egg-info to /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit-4.2.2-py3.7.egg-info running install_scripts creating /usr/src/tmp/python-module-restkit-buildroot/usr/bin copying build/scripts-3.7/restcli -> /usr/src/tmp/python-module-restkit-buildroot/usr/bin changing mode of /usr/src/tmp/python-module-restkit-buildroot/usr/bin/restcli to 755 + popd ~/RPM/BUILD/python-module-restkit-4.2.2 + pushd /usr/src/tmp/python-module-restkit-buildroot/usr/bin ~/tmp/python-module-restkit-buildroot/usr/bin ~/RPM/BUILD/python-module-restkit-4.2.2 ++ ls + for i in $(ls) + mv restcli restcli.py3 + popd ~/RPM/BUILD/python-module-restkit-4.2.2 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export FFLAGS + /usr/bin/python setup.py install --skip-build --root=/usr/src/tmp/python-module-restkit-buildroot --force running install running install_lib creating /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7 creating /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages creating /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit creating /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib copying build/lib/restkit/contrib/__init__.py -> /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib copying build/lib/restkit/contrib/console.py -> /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib copying build/lib/restkit/contrib/ipython_shell.py -> /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib copying build/lib/restkit/contrib/webob_api.py -> /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib copying build/lib/restkit/contrib/webob_helper.py -> /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib copying build/lib/restkit/contrib/wsgi_proxy.py -> /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib copying build/lib/restkit/__init__.py -> /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit copying build/lib/restkit/client.py -> /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit copying build/lib/restkit/conn.py -> /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit copying build/lib/restkit/datastructures.py -> /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit copying build/lib/restkit/errors.py -> /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit copying build/lib/restkit/filters.py -> /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit copying build/lib/restkit/forms.py -> /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit copying build/lib/restkit/oauth2.py -> /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit copying build/lib/restkit/resource.py -> /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit copying build/lib/restkit/session.py -> /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit copying build/lib/restkit/tee.py -> /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit copying build/lib/restkit/util.py -> /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit copying build/lib/restkit/version.py -> /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit copying build/lib/restkit/wrappers.py -> /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit byte-compiling /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/__init__.py to __init__.pyc byte-compiling /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/console.py to console.pyc byte-compiling /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/ipython_shell.py to ipython_shell.pyc byte-compiling /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/webob_api.py to webob_api.pyc byte-compiling /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/webob_helper.py to webob_helper.pyc byte-compiling /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/wsgi_proxy.py to wsgi_proxy.pyc byte-compiling /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/__init__.py to __init__.pyc byte-compiling /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/client.py to client.pyc byte-compiling /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/conn.py to conn.pyc byte-compiling /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/datastructures.py to datastructures.pyc byte-compiling /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/errors.py to errors.pyc byte-compiling /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/filters.py to filters.pyc byte-compiling /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/forms.py to forms.pyc byte-compiling /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/oauth2.py to oauth2.pyc byte-compiling /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/resource.py to resource.pyc byte-compiling /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/session.py to session.pyc byte-compiling /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/tee.py to tee.pyc byte-compiling /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/util.py to util.pyc byte-compiling /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/version.py to version.pyc byte-compiling /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/wrappers.py to wrappers.pyc running install_data copying LICENSE -> /usr/src/tmp/python-module-restkit-buildroot/usr/restkit copying MANIFEST.in -> /usr/src/tmp/python-module-restkit-buildroot/usr/restkit copying NOTICE -> /usr/src/tmp/python-module-restkit-buildroot/usr/restkit copying README.rst -> /usr/src/tmp/python-module-restkit-buildroot/usr/restkit copying THANKS -> /usr/src/tmp/python-module-restkit-buildroot/usr/restkit copying TODO.txt -> /usr/src/tmp/python-module-restkit-buildroot/usr/restkit running install_egg_info running egg_info creating restkit.egg-info writing requirements to restkit.egg-info/requires.txt writing restkit.egg-info/PKG-INFO writing top-level names to restkit.egg-info/top_level.txt writing dependency_links to restkit.egg-info/dependency_links.txt writing entry points to restkit.egg-info/entry_points.txt writing manifest file 'restkit.egg-info/SOURCES.txt' reading manifest file 'restkit.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'restkit.egg-info/SOURCES.txt' Copying restkit.egg-info to /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit-4.2.2-py2.7.egg-info running install_scripts copying build/scripts-2.7/restcli -> /usr/src/tmp/python-module-restkit-buildroot/usr/bin changing mode of /usr/src/tmp/python-module-restkit-buildroot/usr/bin/restcli to 755 + rm -f doc/NOTICE + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python-module-restkit-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python-module-restkit-buildroot (binconfig,pkgconfig,libtool,desktop) Checking contents of files in /usr/src/tmp/python-module-restkit-buildroot/ (default) Compressing files in /usr/src/tmp/python-module-restkit-buildroot (auto) Adjusting library links in /usr/src/tmp/python-module-restkit-buildroot ./usr/lib: Verifying ELF objects in /usr/src/tmp/python-module-restkit-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-restkit-buildroot using /usr/bin/python unlink /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/__init__.pyc unlink /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/console.pyc unlink /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/ipython_shell.pyc unlink /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/webob_api.pyc unlink /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/webob_helper.pyc unlink /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/wsgi_proxy.pyc compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/__init__.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/console.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/ipython_shell.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/webob_api.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/webob_helper.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/wsgi_proxy.py unlink /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/__init__.pyc unlink /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/client.pyc unlink /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/conn.pyc unlink /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/datastructures.pyc unlink /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/errors.pyc unlink /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/filters.pyc unlink /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/forms.pyc unlink /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/oauth2.pyc unlink /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/resource.pyc unlink /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/session.pyc unlink /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/tee.pyc unlink /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/util.pyc unlink /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/version.pyc unlink /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/wrappers.pyc compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/__init__.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/client.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/conn.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/datastructures.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/errors.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/filters.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/forms.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/oauth2.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/resource.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/session.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/tee.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/util.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/version.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/wrappers.py Bytecompiling python modules with optimization in /usr/src/tmp/python-module-restkit-buildroot using /usr/bin/python -O compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/__init__.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/console.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/ipython_shell.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/webob_api.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/webob_helper.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/wsgi_proxy.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/__init__.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/client.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/conn.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/datastructures.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/errors.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/filters.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/forms.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/oauth2.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/resource.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/session.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/tee.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/util.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/version.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/wrappers.py Bytecompiling python3 modules in /usr/src/tmp/python-module-restkit-buildroot using /usr/bin/python3 unlink /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/__pycache__/__init__.cpython-37.pyc unlink /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/__pycache__/client.cpython-37.pyc unlink /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/__pycache__/conn.cpython-37.pyc unlink /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/__pycache__/datastructures.cpython-37.pyc unlink /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/__pycache__/errors.cpython-37.pyc unlink /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/__pycache__/filters.cpython-37.pyc unlink /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/__pycache__/forms.cpython-37.pyc unlink /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/__pycache__/oauth2.cpython-37.pyc unlink /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/__pycache__/resource.cpython-37.pyc unlink /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/__pycache__/session.cpython-37.pyc unlink /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/__pycache__/tee.cpython-37.pyc unlink /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/__pycache__/util.cpython-37.pyc unlink /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/__pycache__/version.cpython-37.pyc unlink /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/__pycache__/wrappers.cpython-37.pyc unlink /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib/__pycache__/__init__.cpython-37.pyc unlink /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib/__pycache__/console.cpython-37.pyc unlink /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib/__pycache__/ipython_shell.cpython-37.pyc unlink /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib/__pycache__/webob_api.cpython-37.pyc unlink /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib/__pycache__/webob_helper.cpython-37.pyc unlink /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib/__pycache__/wsgi_proxy.cpython-37.pyc compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib/__init__.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib/console.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib/ipython_shell.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib/webob_api.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib/webob_helper.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib/wsgi_proxy.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/__init__.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/client.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/conn.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/datastructures.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/errors.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/filters.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/forms.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/oauth2.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/resource.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/session.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/tee.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/util.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/version.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/wrappers.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python-module-restkit-buildroot using /usr/bin/python3 -O compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib/__init__.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib/console.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib/ipython_shell.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib/webob_api.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib/webob_helper.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib/wsgi_proxy.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/__init__.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/client.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/conn.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/datastructures.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/errors.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/filters.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/forms.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/oauth2.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/resource.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/session.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/tee.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/util.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/version.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/wrappers.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python-module-restkit-buildroot using /usr/bin/python3 -OO compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib/__init__.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib/console.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib/ipython_shell.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib/webob_api.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib/webob_helper.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib/wsgi_proxy.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/__init__.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/client.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/conn.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/datastructures.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/errors.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/filters.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/forms.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/oauth2.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/resource.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/session.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/tee.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/util.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/version.py compile /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/wrappers.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/restkit/__pycache__/wrappers.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/restkit/__pycache__/wrappers.cpython-37.pyc' './usr/lib/python3/site-packages/restkit/__pycache__/version.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/restkit/__pycache__/version.cpython-37.pyc' './usr/lib/python3/site-packages/restkit/__pycache__/version.cpython-37.opt-2.pyc' => './usr/lib/python3/site-packages/restkit/__pycache__/version.cpython-37.opt-1.pyc' './usr/lib/python3/site-packages/restkit/__pycache__/util.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/restkit/__pycache__/util.cpython-37.pyc' './usr/lib/python3/site-packages/restkit/__pycache__/tee.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/restkit/__pycache__/tee.cpython-37.pyc' './usr/lib/python3/site-packages/restkit/__pycache__/session.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/restkit/__pycache__/session.cpython-37.pyc' './usr/lib/python3/site-packages/restkit/__pycache__/session.cpython-37.opt-2.pyc' => './usr/lib/python3/site-packages/restkit/__pycache__/session.cpython-37.opt-1.pyc' './usr/lib/python3/site-packages/restkit/__pycache__/resource.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/restkit/__pycache__/resource.cpython-37.pyc' './usr/lib/python3/site-packages/restkit/__pycache__/forms.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/restkit/__pycache__/forms.cpython-37.pyc' './usr/lib/python3/site-packages/restkit/__pycache__/filters.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/restkit/__pycache__/filters.cpython-37.pyc' './usr/lib/python3/site-packages/restkit/__pycache__/errors.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/restkit/__pycache__/errors.cpython-37.pyc' './usr/lib/python3/site-packages/restkit/__pycache__/datastructures.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/restkit/__pycache__/datastructures.cpython-37.pyc' './usr/lib/python3/site-packages/restkit/__pycache__/conn.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/restkit/__pycache__/conn.cpython-37.pyc' './usr/lib/python3/site-packages/restkit/__pycache__/client.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/restkit/__pycache__/client.cpython-37.pyc' './usr/lib/python3/site-packages/restkit/__pycache__/__init__.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/restkit/__pycache__/__init__.cpython-37.pyc' './usr/lib/python3/site-packages/restkit/contrib/__pycache__/wsgi_proxy.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/restkit/contrib/__pycache__/wsgi_proxy.cpython-37.pyc' './usr/lib/python3/site-packages/restkit/contrib/__pycache__/webob_helper.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/restkit/contrib/__pycache__/webob_helper.cpython-37.pyc' './usr/lib/python3/site-packages/restkit/contrib/__pycache__/webob_api.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/restkit/contrib/__pycache__/webob_api.cpython-37.pyc' './usr/lib/python3/site-packages/restkit/contrib/__pycache__/webob_api.cpython-37.opt-2.pyc' => './usr/lib/python3/site-packages/restkit/contrib/__pycache__/webob_api.cpython-37.opt-1.pyc' './usr/lib/python3/site-packages/restkit/contrib/__pycache__/ipython_shell.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/restkit/contrib/__pycache__/ipython_shell.cpython-37.pyc' './usr/lib/python3/site-packages/restkit/contrib/__pycache__/console.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/restkit/contrib/__pycache__/console.cpython-37.pyc' './usr/lib/python3/site-packages/restkit/contrib/__pycache__/__init__.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/restkit/contrib/__pycache__/__init__.cpython-37.pyc' './usr/lib/python3/site-packages/restkit/contrib/__pycache__/__init__.cpython-37.opt-2.pyc' => './usr/lib/python3/site-packages/restkit/contrib/__pycache__/__init__.cpython-37.opt-1.pyc' Hardlinking identical .pyc and .pyo files './usr/lib/python2.7/site-packages/restkit/wrappers.pyo' => './usr/lib/python2.7/site-packages/restkit/wrappers.pyc' './usr/lib/python2.7/site-packages/restkit/version.pyo' => './usr/lib/python2.7/site-packages/restkit/version.pyc' './usr/lib/python2.7/site-packages/restkit/util.pyo' => './usr/lib/python2.7/site-packages/restkit/util.pyc' './usr/lib/python2.7/site-packages/restkit/tee.pyo' => './usr/lib/python2.7/site-packages/restkit/tee.pyc' './usr/lib/python2.7/site-packages/restkit/session.pyo' => './usr/lib/python2.7/site-packages/restkit/session.pyc' './usr/lib/python2.7/site-packages/restkit/resource.pyo' => './usr/lib/python2.7/site-packages/restkit/resource.pyc' './usr/lib/python2.7/site-packages/restkit/forms.pyo' => './usr/lib/python2.7/site-packages/restkit/forms.pyc' './usr/lib/python2.7/site-packages/restkit/filters.pyo' => './usr/lib/python2.7/site-packages/restkit/filters.pyc' './usr/lib/python2.7/site-packages/restkit/errors.pyo' => './usr/lib/python2.7/site-packages/restkit/errors.pyc' './usr/lib/python2.7/site-packages/restkit/datastructures.pyo' => './usr/lib/python2.7/site-packages/restkit/datastructures.pyc' './usr/lib/python2.7/site-packages/restkit/conn.pyo' => './usr/lib/python2.7/site-packages/restkit/conn.pyc' './usr/lib/python2.7/site-packages/restkit/client.pyo' => './usr/lib/python2.7/site-packages/restkit/client.pyc' './usr/lib/python2.7/site-packages/restkit/__init__.pyo' => './usr/lib/python2.7/site-packages/restkit/__init__.pyc' './usr/lib/python2.7/site-packages/restkit/contrib/wsgi_proxy.pyo' => './usr/lib/python2.7/site-packages/restkit/contrib/wsgi_proxy.pyc' './usr/lib/python2.7/site-packages/restkit/contrib/webob_helper.pyo' => './usr/lib/python2.7/site-packages/restkit/contrib/webob_helper.pyc' './usr/lib/python2.7/site-packages/restkit/contrib/webob_api.pyo' => './usr/lib/python2.7/site-packages/restkit/contrib/webob_api.pyc' './usr/lib/python2.7/site-packages/restkit/contrib/ipython_shell.pyo' => './usr/lib/python2.7/site-packages/restkit/contrib/ipython_shell.pyc' './usr/lib/python2.7/site-packages/restkit/contrib/console.pyo' => './usr/lib/python2.7/site-packages/restkit/contrib/console.pyc' './usr/lib/python2.7/site-packages/restkit/contrib/__init__.pyo' => './usr/lib/python2.7/site-packages/restkit/contrib/__init__.pyc' Executing(%check): /bin/sh -e /usr/src/tmp/rpm-tmp.77269 Check is turned off by --disable check Processing files: python-module-restkit-4.2.2-alt2.git20140731.1.2 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.77269 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-restkit-4.2.2 + DOCDIR=/usr/src/tmp/python-module-restkit-buildroot/usr/share/doc/python-module-restkit-4.2.2 + export DOCDIR + rm -rf /usr/src/tmp/python-module-restkit-buildroot/usr/share/doc/python-module-restkit-4.2.2 + /bin/mkdir -p /usr/src/tmp/python-module-restkit-buildroot/usr/share/doc/python-module-restkit-4.2.2 + cp -prL README.rst THANKS LICENSE NOTICE examples/couchdbproxy.py examples/proxy.ini examples/test_eventlet.py examples/test_gevent.py examples/test_threads.py doc/Makefile doc/_static doc/_templates doc/api doc/api.rst doc/authentication.rst doc/client.rst doc/conf.py doc/ghp-import doc/green.rst doc/index.rst doc/installation.rst doc/make.bat doc/news.rst doc/pool.rst doc/resource.rst doc/shell.rst doc/sitemap_config.xml doc/sitemap_gen.py doc/sphinxtogithub.py doc/streaming.rst doc/wsgi_proxy.rst /usr/src/tmp/python-module-restkit-buildroot/usr/share/doc/python-module-restkit-4.2.2 + chmod -R go-w /usr/src/tmp/python-module-restkit-buildroot/usr/share/doc/python-module-restkit-4.2.2 + chmod -R a+rX /usr/src/tmp/python-module-restkit-buildroot/usr/share/doc/python-module-restkit-4.2.2 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.Mwd7Ov 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.xZ7Utk 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-restkit-buildroot/usr/bin/restcli: hiding restkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/__init__.py: hiding restkit, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/__init__.py: line=9 IGNORE (for REQ=slight and deep=8) module=restkit /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/__init__.py: line=10 IGNORE (for REQ=slight and deep=8) module=restkit /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/__init__.py: line=13 IGNORE (for REQ=slight and deep=8) module=restkit /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/__init__.py: line=14 IGNORE (for REQ=slight and deep=8) module=restkit /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/__init__.py: line=15 IGNORE (for REQ=slight and deep=8) module=restkit /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/__init__.py: line=16 IGNORE (for REQ=slight and deep=8) module=restkit /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/__init__.py: line=18 IGNORE (for REQ=slight and deep=8) module=traceback python.req: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/client.py: skipping errno /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/client.py: line=17 IGNORE (for REQ=slight and deep=8) module=http_parser /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/client.py: line=20 IGNORE (for REQ=slight and deep=8) module=http_parser python.req: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/client.py: hiding restkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/client.py: hiding restkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/client.py: hiding restkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/client.py: hiding restkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/client.py: hiding restkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/client.py: hiding restkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/console.py: skipping sys /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/console.py: line=13 IGNORE (for REQ=slight and deep=8) module=pygments /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/console.py: line=14 IGNORE (for REQ=slight and deep=8) module=pygments /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/console.py: line=15 IGNORE (for REQ=slight and deep=8) module=pygments /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/console.py: line=21 IGNORE (for REQ=slight and deep=8) module=simplejson /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/console.py: line=24 IGNORE (for REQ=slight and deep=12) module=json python.req: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/console.py: hiding restkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/console.py: hiding restkit, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/console.py: line=187 IGNORE (for REQ=slight and deep=16) module=restkit /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/ipython_shell.py: line=10 IGNORE (for REQ=slight and deep=8) module=IPython /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/ipython_shell.py: line=11 IGNORE (for REQ=slight and deep=8) module=IPython /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/ipython_shell.py: line=17 IGNORE (for REQ=slight and deep=8) module=webob python.req: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/ipython_shell.py: hiding restkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/ipython_shell.py: hiding restkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/ipython_shell.py: hiding restkit, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/ipython_shell.py: line=247 IGNORE (for REQ=slight and deep=8) module=sys /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/webob_api.py: line=13 IGNORE (for REQ=slight and deep=8) module=webob /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/webob_api.py: line=17 possible relative import from ., UNIMPLEMENTED python.req: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/webob_helper.py: hiding restkit, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/wsgi_proxy.py: line=9 IGNORE (for REQ=slight and deep=8) module=cStringIO /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/wsgi_proxy.py: line=11 IGNORE (for REQ=slight and deep=8) module=StringIO python.req: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/wsgi_proxy.py: hiding restkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/wsgi_proxy.py: hiding restkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/wsgi_proxy.py: hiding restkit, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/datastructures.py: line=7 IGNORE (for REQ=slight and deep=8) module=UserDict /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/datastructures.py: line=9 IGNORE (for REQ=slight and deep=8) module=collections /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/filters.py: line=9 IGNORE (for REQ=slight and deep=8) module=urlparse /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/filters.py: line=11 IGNORE (for REQ=slight and deep=8) module=cgi python.req: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/filters.py: hiding restkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/forms.py: hiding restkit, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/oauth2.py: line=15 IGNORE (for REQ=slight and deep=8) module=urlparse /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/oauth2.py: line=17 IGNORE (for REQ=slight and deep=8) module=cgi python.req: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/oauth2.py: hiding restkit, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/oauth2.py: line=23 IGNORE (for REQ=slight and deep=8) module=hashlib /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/oauth2.py: line=27 IGNORE (for REQ=slight and deep=8) module=sha python.req: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/oauth2.py: hiding restkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/resource.py: hiding restkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/resource.py: hiding restkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/resource.py: hiding restkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/resource.py: hiding restkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/resource.py: hiding restkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/session.py: hiding restkit, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/tee.py: line=16 IGNORE (for REQ=slight and deep=8) module=cStringIO /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/tee.py: line=18 IGNORE (for REQ=slight and deep=8) module=StringIO python.req: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/tee.py: hiding restkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/util.py: hiding restkit, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/util.py: line=19 IGNORE (for REQ=slight and deep=8) module=subprocess python.req: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/wrappers.py: hiding restkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/wrappers.py: hiding restkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/wrappers.py: hiding restkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/wrappers.py: hiding restkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/wrappers.py: hiding restkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/wrappers.py: hiding restkit, which SEEMS TO BE SELF-SATISFIED shebang.req.files: executable script /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python2.7/site-packages/restkit/contrib/webob_api.py is not executable Provides: python2.7(restkit), python2.7(restkit.client), python2.7(restkit.conn), python2.7(restkit.contrib), python2.7(restkit.contrib.console), python2.7(restkit.contrib.ipython_shell), python2.7(restkit.contrib.webob_api), python2.7(restkit.contrib.webob_helper), python2.7(restkit.contrib.wsgi_proxy), python2.7(restkit.datastructures), python2.7(restkit.errors), python2.7(restkit.filters), python2.7(restkit.forms), python2.7(restkit.oauth2), python2.7(restkit.resource), python2.7(restkit.session), python2.7(restkit.tee), python2.7(restkit.util), python2.7(restkit.version), python2.7(restkit.wrappers) Requires: python2.7(http_parser), python2.7(socketpool), /usr/bin/python, /usr/lib/python2.7/site-packages, python-modules, python2.7(logging), python2.7(mimetypes), python2.7(webob) Processing files: python3-module-restkit-4.2.2-alt2.git20140731.1.2 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.62409 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-restkit-4.2.2 + DOCDIR=/usr/src/tmp/python-module-restkit-buildroot/usr/share/doc/python3-module-restkit-4.2.2 + export DOCDIR + rm -rf /usr/src/tmp/python-module-restkit-buildroot/usr/share/doc/python3-module-restkit-4.2.2 + /bin/mkdir -p /usr/src/tmp/python-module-restkit-buildroot/usr/share/doc/python3-module-restkit-4.2.2 + cp -prL README.rst THANKS LICENSE NOTICE examples/couchdbproxy.py examples/proxy.ini examples/test_eventlet.py examples/test_gevent.py examples/test_threads.py doc/Makefile doc/_static doc/_templates doc/api doc/api.rst doc/authentication.rst doc/client.rst doc/conf.py doc/ghp-import doc/green.rst doc/index.rst doc/installation.rst doc/make.bat doc/news.rst doc/pool.rst doc/resource.rst doc/shell.rst doc/sitemap_config.xml doc/sitemap_gen.py doc/sphinxtogithub.py doc/streaming.rst doc/wsgi_proxy.rst /usr/src/tmp/python-module-restkit-buildroot/usr/share/doc/python3-module-restkit-4.2.2 + chmod -R go-w /usr/src/tmp/python-module-restkit-buildroot/usr/share/doc/python3-module-restkit-4.2.2 + chmod -R a+rX /usr/src/tmp/python-module-restkit-buildroot/usr/share/doc/python3-module-restkit-4.2.2 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.cC1VaU 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.UnPVrV 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-restkit-buildroot/usr/lib/python3/site-packages/restkit/__init__.py: line=9 IGNORE (for REQ=slight and deep=8) module=restkit.conn /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/__init__.py: line=10 IGNORE (for REQ=slight and deep=8) module=restkit.errors /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/__init__.py: line=13 IGNORE (for REQ=slight and deep=8) module=restkit.client /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/__init__.py: line=14 IGNORE (for REQ=slight and deep=8) module=restkit.wrappers /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/__init__.py: line=15 IGNORE (for REQ=slight and deep=8) module=restkit.resource /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/__init__.py: line=16 IGNORE (for REQ=slight and deep=8) module=restkit.filters /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/__init__.py: line=18 IGNORE (for REQ=slight and deep=8) module=traceback python3.req: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/client.py: skipping errno python3.req: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/client.py: skipping time /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/client.py: line=17 IGNORE (for REQ=slight and deep=8) module=http_parser.http /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/client.py: line=20 IGNORE (for REQ=slight and deep=8) module=http_parser.reader python3.req: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/conn.py: skipping time python3.req: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib/console.py: skipping sys /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib/console.py: line=13 IGNORE (for REQ=slight and deep=8) module=pygments /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib/console.py: line=14 IGNORE (for REQ=slight and deep=8) module=pygments.lexers /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib/console.py: line=15 IGNORE (for REQ=slight and deep=8) module=pygments.formatters /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib/console.py: line=21 IGNORE (for REQ=slight and deep=8) module=simplejson /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib/console.py: line=24 IGNORE (for REQ=slight and deep=12) module=json /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib/console.py: line=187 IGNORE (for REQ=slight and deep=16) module=restkit.contrib /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib/ipython_shell.py: line=10 IGNORE (for REQ=slight and deep=8) module=IPython.config.loader /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib/ipython_shell.py: line=11 IGNORE (for REQ=slight and deep=8) module=IPython.frontend.terminal.embed /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib/ipython_shell.py: line=17 IGNORE (for REQ=slight and deep=8) module=webob /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib/ipython_shell.py: line=247 IGNORE (for REQ=slight and deep=8) module=sys /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib/webob_api.py: line=13 IGNORE (for REQ=slight and deep=8) module=webob /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib/webob_api.py: line=17 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib/wsgi_proxy.py: line=9 IGNORE (for REQ=slight and deep=8) module=io /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib/wsgi_proxy.py: line=11 IGNORE (for REQ=slight and deep=8) module=io /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/datastructures.py: line=7 IGNORE (for REQ=slight and deep=8) module=UserDict /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/datastructures.py: line=9 IGNORE (for REQ=slight and deep=8) module=collections /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/filters.py: line=9 IGNORE (for REQ=slight and deep=8) module=urllib.parse /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/filters.py: line=11 IGNORE (for REQ=slight and deep=8) module=cgi python3.req: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/oauth2.py: skipping time /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/oauth2.py: line=15 IGNORE (for REQ=slight and deep=8) module=urllib.parse /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/oauth2.py: line=17 IGNORE (for REQ=slight and deep=8) module=cgi /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/oauth2.py: line=23 IGNORE (for REQ=slight and deep=8) module=hashlib /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/oauth2.py: line=27 IGNORE (for REQ=slight and deep=8) module=sha /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/tee.py: line=16 IGNORE (for REQ=slight and deep=8) module=io /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/tee.py: line=18 IGNORE (for REQ=slight and deep=8) module=io python3.req: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/util.py: skipping time /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/util.py: line=19 IGNORE (for REQ=slight and deep=8) module=subprocess shebang.req.files: executable script /usr/src/tmp/python-module-restkit-buildroot/usr/lib/python3/site-packages/restkit/contrib/webob_api.py is not executable Provides: python3(restkit), python3(restkit.client), python3(restkit.conn), python3(restkit.contrib), python3(restkit.contrib.console), python3(restkit.contrib.ipython_shell), python3(restkit.contrib.webob_api), python3(restkit.contrib.webob_helper), python3(restkit.contrib.wsgi_proxy), python3(restkit.datastructures), python3(restkit.errors), python3(restkit.filters), python3(restkit.forms), python3(restkit.oauth2), python3(restkit.resource), python3(restkit.session), python3(restkit.tee), python3(restkit.util), python3(restkit.version), python3(restkit.wrappers) Requires: python3(http_parser) < 0, python3(socketpool) < 0, /usr/bin/python3, /usr/lib/python3/site-packages, python3(base64) < 0, python3(binascii) < 0, python3(cgi) < 0, python3(copy) < 0, python3(hmac) < 0, python3(http.cookies) < 0, python3(io) < 0, python3(logging) < 0, python3(mimetypes) < 0, python3(optparse) < 0, python3(os) < 0, python3(random) < 0, python3(re) < 0, python3(select) < 0, python3(socket) < 0, python3(socketpool.util) < 0, python3(ssl) < 0, python3(tempfile) < 0, python3(traceback) < 0, python3(types) < 0, python3(urllib.error) < 0, python3(urllib.parse) < 0, python3(urllib.request) < 0, python3(uuid) < 0, python3(warnings) < 0, python3(webob) < 0, python3(webob.exc) < 0 warning: Installed (but unpackaged) file(s) found: /usr/restkit/LICENSE /usr/restkit/MANIFEST.in /usr/restkit/NOTICE /usr/restkit/README.rst /usr/restkit/THANKS /usr/restkit/TODO.txt Wrote: /usr/src/RPM/RPMS/noarch/python-module-restkit-4.2.2-alt2.git20140731.1.2.noarch.rpm Wrote: /usr/src/RPM/RPMS/noarch/python3-module-restkit-4.2.2-alt2.git20140731.1.2.noarch.rpm 15.83user 0.83system 0:24.47elapsed 68%CPU (0avgtext+0avgdata 26660maxresident)k 0inputs+0outputs (0major+273409minor)pagefaults 0swaps 31.79user 7.49system 0:50.61elapsed 77%CPU (0avgtext+0avgdata 116460maxresident)k 0inputs+0outputs (0major+789057minor)pagefaults 0swaps