<86>Jun 25 09:19:22 userdel[4029773]: delete user 'rooter'
<86>Jun 25 09:19:22 userdel[4029773]: removed group 'rooter' owned by 'rooter'
<86>Jun 25 09:19:22 userdel[4029773]: removed shadow group 'rooter' owned by 'rooter'
<86>Jun 25 09:19:22 groupadd[4029785]: group added to /etc/group: name=rooter, GID=1850
<86>Jun 25 09:19:22 groupadd[4029785]: group added to /etc/gshadow: name=rooter
<86>Jun 25 09:19:22 groupadd[4029785]: new group: name=rooter, GID=1850
<86>Jun 25 09:19:22 useradd[4029799]: new user: name=rooter, UID=1850, GID=1850, home=/root, shell=/bin/bash
<86>Jun 25 09:19:22 userdel[4029815]: delete user 'builder'
<86>Jun 25 09:19:22 userdel[4029815]: removed group 'builder' owned by 'builder'
<86>Jun 25 09:19:22 userdel[4029815]: removed shadow group 'builder' owned by 'builder'
<86>Jun 25 09:19:22 groupadd[4029826]: group added to /etc/group: name=builder, GID=1851
<86>Jun 25 09:19:22 groupadd[4029826]: group added to /etc/gshadow: name=builder
<86>Jun 25 09:19:22 groupadd[4029826]: new group: name=builder, GID=1851
<86>Jun 25 09:19:22 useradd[4029838]: new user: name=builder, UID=1851, GID=1851, home=/usr/src, shell=/bin/bash
<13>Jun 25 09:19:23 rpmi: libgdbm-1.8.3-alt10 1454943313 installed
<13>Jun 25 09:19:24 rpmi: libexpat-2.4.3-alt1 p9+293696.100.1.1 1643124786 installed
<13>Jun 25 09:19:24 rpmi: libp11-kit-0.23.15-alt2 p9+254920.2400.19.1 1601385869 installed
<13>Jun 25 09:19:24 rpmi: libtasn1-4.14-alt1 p9+235792.100.2.1 1565425233 installed
<13>Jun 25 09:19:24 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed
<13>Jun 25 09:19:24 rpmi: alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed
<13>Jun 25 09:19:24 rpmi: ca-certificates-2021.10.06-alt1 p9+289862.100.1.1 1637033643 installed
<13>Jun 25 09:19:24 rpmi: ca-trust-0.1.2-alt1 p9+233349.100.1.1 1561655062 installed
<13>Jun 25 09:19:24 rpmi: p11-kit-trust-0.23.15-alt2 p9+254920.2400.19.1 1601385869 installed
<13>Jun 25 09:19:24 rpmi: libcrypto1.1-1.1.1u-alt1 p9+322202.100.1.1 1685863283 installed
<13>Jun 25 09:19:24 rpmi: libssl1.1-1.1.1u-alt1 p9+322202.100.1.1 1685863283 installed
<13>Jun 25 09:19:24 rpmi: python3-3.7.11-alt1 p9+273501.10.37.1 1629720188 installed
<13>Jun 25 09:19:24 rpmi: libpython3-3.7.11-alt1 p9+273501.10.37.1 1629720188 installed
<13>Jun 25 09:19:24 rpmi: python3-base-3.7.11-alt1 p9+273501.10.37.1 1629720188 installed
<13>Jun 25 09:19:24 rpmi: tests-for-installed-python3-pkgs-0.1.13.1-alt2 1535450458 installed
<13>Jun 25 09:19:24 rpmi: rpm-build-python3-0.1.13.1-alt2 1535450458 installed
<13>Jun 25 09:19:26 rpmi: python3-module-pkg_resources-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed
<13>Jun 25 09:19:26 rpmi: python-modules-curses-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed
<13>Jun 25 09:19:26 rpmi: libtinfo-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686221 installed
<13>Jun 25 09:19:26 rpmi: libncurses-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686221 installed
<13>Jun 25 09:19:26 rpmi: python3-dev-3.7.11-alt1 p9+273501.10.37.1 1629720188 installed
<13>Jun 25 09:19:26 rpmi: libverto-0.3.0-alt1_7 sisyphus+225932.100.1.1 1553994917 installed
<13>Jun 25 09:19:26 rpmi: libkeyutils-1.6-alt2 sisyphus+226520.100.2.1 1554512088 installed
<13>Jun 25 09:19:26 rpmi: libcom_err-1.44.6-alt1 sisyphus+224154.100.1.1 1552091653 installed
<86>Jun 25 09:19:26 groupadd[4047139]: group added to /etc/group: name=_keytab, GID=499
<86>Jun 25 09:19:26 groupadd[4047139]: group added to /etc/gshadow: name=_keytab
<86>Jun 25 09:19:26 groupadd[4047139]: new group: name=_keytab, GID=499
<13>Jun 25 09:19:26 rpmi: libkrb5-1.17.2-alt4 p9+310094.100.3.1 1669309764 installed
<13>Jun 25 09:19:26 rpmi: libtirpc-1.0.3-alt1 1532008015 installed
<13>Jun 25 09:19:26 rpmi: libnsl2-1.1.0-alt1_1 1511548748 installed
<13>Jun 25 09:19:26 rpmi: python-modules-compiler-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed
<13>Jun 25 09:19:26 rpmi: python-modules-email-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed
<13>Jun 25 09:19:26 rpmi: python-modules-unittest-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed
<13>Jun 25 09:19:26 rpmi: python-modules-encodings-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed
<13>Jun 25 09:19:27 rpmi: python-modules-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed
<13>Jun 25 09:19:27 rpmi: python-modules-nis-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed
<13>Jun 25 09:19:27 rpmi: python-modules-ctypes-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed
<13>Jun 25 09:19:27 rpmi: python-modules-multiprocessing-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed
<13>Jun 25 09:19:27 rpmi: python-modules-logging-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed
<13>Jun 25 09:19:27 rpmi: python-tools-2to3-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed
<13>Jun 25 09:19:27 rpmi: python-modules-xml-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed
<13>Jun 25 09:19:27 rpmi: python-modules-hotshot-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed
<13>Jun 25 09:19:27 rpmi: python-modules-bsddb-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed
<13>Jun 25 09:19:27 rpmi: python-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed
<13>Jun 25 09:19:27 rpmi: python-modules-distutils-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed
<13>Jun 25 09:19:27 rpmi: python-module-pkg_resources-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed
<13>Jun 25 09:19:27 rpmi: libnsl2-devel-1.1.0-alt1_1 1511548748 installed
<13>Jun 25 09:19:27 rpmi: python-dev-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed
<13>Jun 25 09:19:27 rpmi: python-module-setuptools-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed
<13>Jun 25 09:19:27 rpmi: python3-module-setuptools-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed
Building target platforms: x86_64
Building for target x86_64
Wrote: /usr/src/in/nosrpm/python-module-zc.testbrowser-1.0.0a5-alt3.2.nosrc.rpm (w1.gzdio)
Installing python-module-zc.testbrowser-1.0.0a5-alt3.2.src.rpm
Building target platforms: x86_64
Building for target x86_64
Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.3084
+ umask 022
+ /bin/mkdir -p /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ rm -rf python-module-zc.testbrowser-1.0.0a5
+ echo 'Source #0 (python-module-zc.testbrowser-1.0.0a5.tar):'
Source #0 (python-module-zc.testbrowser-1.0.0a5.tar):
+ /bin/tar -xf /usr/src/RPM/SOURCES/python-module-zc.testbrowser-1.0.0a5.tar
+ cd python-module-zc.testbrowser-1.0.0a5
+ /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/src/zc/testbrowser/tests.py
RefactoringTool: Refactored ../python3/src/zc/testbrowser/real.py
--- ../python3/src/zc/testbrowser/tests.py	(original)
+++ ../python3/src/zc/testbrowser/tests.py	(refactored)
@@ -12,12 +12,12 @@
 #
 ##############################################################################
 
-from cStringIO import StringIO
+from io import StringIO
 from zc.testbrowser import browser
 from zope.testing import renormalizing, doctest
-import BaseHTTPServer
+import http.server
 import cgi
-import httplib
+import http.client
 import mechanize
 import os.path
 import pprint
@@ -26,8 +26,8 @@
 import string
 import threading
 import unittest
-import urllib
-import urllib2
+import urllib.request, urllib.parse, urllib.error
+import urllib.request, urllib.error, urllib.parse
 import zc.testbrowser.browser
 import zc.testbrowser.real
 
@@ -35,7 +35,7 @@
 web_server_base_path = os.path.join(os.path.split(__file__)[0], 'ftests')
 
 
-class TestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
+class TestHandler(http.server.BaseHTTPRequestHandler):
 
     def version_string(self):
         return 'BaseHTTP'
@@ -134,7 +134,7 @@
         # Construct the headers.
         header_chunks = []
         if headers is not None:
-            for header in headers.items():
+            for header in list(headers.items()):
                 header_chunks.append('%s: %s' % header)
             headers = '\n'.join(header_chunks) + '\n'
         else:
@@ -145,7 +145,7 @@
         request_string = (method + ' ' + url + ' HTTP/1.1\n'
                           + headers + '\n' + body)
 
-        print request_string.replace('\r', '')
+        print(request_string.replace('\r', ''))
 
     def getresponse(self):
         return FauxResponse(next_response_body,
@@ -161,7 +161,7 @@
         self.content = content
         self.status = status
         self.reason = reason
-        self.msg = httplib.HTTPMessage(StringIO(headers), 0)
+        self.msg = http.client.HTTPMessage(StringIO(headers), 0)
         self.content_as_file = StringIO(self.content)
 
     def read(self, amt=None):
@@ -172,7 +172,7 @@
         pass
 
 
-class FauxHTTPHandler(urllib2.HTTPHandler):
+class FauxHTTPHandler(urllib.request.HTTPHandler):
 
     http_request = urllib2.AbstractHTTPHandler.do_request_
 
@@ -190,10 +190,10 @@
 
         "_http_error": mechanize.HTTPErrorProcessor,
         "_http_request_upgrade": mechanize.HTTPRequestUpgradeProcessor,
-        "_http_default_error": urllib2.HTTPDefaultErrorHandler,
+        "_http_default_error": urllib.request.HTTPDefaultErrorHandler,
 
         # feature handlers
-        "_authen": urllib2.HTTPBasicAuthHandler,
+        "_authen": urllib.request.HTTPBasicAuthHandler,
         "_redirect": mechanize.HTTPRedirectHandler,
         "_cookies": mechanize.HTTPCookieProcessor,
         "_refresh": mechanize.HTTPRefreshProcessor,
@@ -442,7 +442,7 @@
     server_stop = False
     port = random.randint(20000, 30000)
     test.globs['TEST_PORT'] = port
-    server = BaseHTTPServer.HTTPServer(('localhost', port), TestHandler)
+    server = http.server.HTTPServer(('localhost', port), TestHandler)
     thread = threading.Thread(target=serve_requests, args=[server])
     thread.setDaemon(True)
     thread.start()
@@ -453,7 +453,7 @@
     server_stop = True
     # make a request, so the last call to `handle_one_request` will return
     try:
-        urllib.urlretrieve('http://localhost:%d/' % test.globs['TEST_PORT'])
+        urllib.request.urlretrieve('http://localhost:%d/' % test.globs['TEST_PORT'])
     except IOError:
         pass # it's ok, server is already dead
     test.globs['web_server_thread'].join()
--- ../python3/src/zc/testbrowser/real.py	(original)
+++ ../python3/src/zc/testbrowser/real.py	(refactored)
@@ -5,7 +5,7 @@
 import telnetlib
 import tempfile
 import time
-import urlparse
+import urllib.parse
 import zc.testbrowser.browser
 import zc.testbrowser.interfaces
 import zope.interface
@@ -114,7 +114,7 @@
     def init_repl(self, host, port):
         try:
             self.telnet = telnetlib.Telnet(host, port)
-        except socket.error, e:
+        except socket.error as e:
             raise RunRefactoringTool: Refactored ../python3/src/zc/testbrowser/interfaces.py
timeError('Error connecting to Firefox at %s:%s.'
                 ' Is MozRepl running?' % (host, port))
         self.load_realjs()
@@ -202,7 +202,7 @@
 
     def open(self, url, data=None):
         if self.base is not None:
-            url = urlparse.urljoin(self.base, url)
+            url = urllib.parse.urljoin(self.base, url)
         assert data is None
         try:
             self.execute('content.location = ' + simplejson.dumps(url))
@@ -666,7 +666,7 @@
             raise zc.testbrowser.interfaces.ExpiredError
         action = self.browser.getAttribute(self.token, 'action')
         if action:
-            return urlparse.urljoin(self.browser.base, action)
+            return urllib.parse.urljoin(self.browser.base, action)
         return self.browser.url
 
     @property
--- ../python3/src/zc/testbrowser/interfaces.py	(original)
+++ ../python3/src/zc/testbrowser/interfaces.py	(refactored)
@@ -25,28 +25,28 @@
     """A Programmatic Web Browser"""
 
     url = zope.schema.URI(
-        title=u"URL",
-        description=u"The URL the browser is currently showing.",
+        title="URL",
+        description="The URL the browser is currently showing.",
         required=True)
 
     contents = zope.schema.Text(
-        title=u"Contents",
-        description=u"The complete response body of the HTTP request.",
+        title="Contents",
+        description="The complete response body of the HTTP request.",
         required=True)
 
     isHtml = zope.schema.Bool(
-        title=u"Is HTML",
-        description=u"Tells whether the output is HTML or not.",
+        title="Is HTML",
+        description="Tells whether the output is HTML or not.",
         required=True)
 
     base = zope.schema.TextLine(
-        title=u"Base",
-        description=u"Base URL for opening relative paths",
+        title="Base",
+        description="Base URL for opening relative paths",
         required=False)
 
     title = zope.schema.TextLine(
-        title=u"Title",
-        description=u"Title of the displayed page",
+        title="Title",
+        description="Title of the displayed page",
         required=False)
 
     def open(url, data=None):
@@ -138,8 +138,8 @@
     """Expose HTTP headers and the manipulation thereof"""
 
     headers = zope.schema.Field(
-        title=u"Headers",
-        description=(u"Headers of the HTTP response; a "
+        title="Headers",
+        description=("Headers of the HTTP response; a "
                      "``httplib.HTTPMessage``."),
         required=True)
 
@@ -155,9 +155,9 @@
     """Keep up with how long requests take in seconds and pystones"""
 
     lastRequestSeconds = zope.schema.Field(
-        title=u"Seconds to Process Last Request",
+        title="Seconds to Process Last Request",
         description=(
-        u"""Return how many seconds (or fractions) the last request took.
+        """Return how many seconds (or fractions) the last request took.
 
         The values returned have the same resolution as the results from
         ``time.clock``.
@@ -167,9 +167,9 @@
 
     lastRequestPystones = zope.schema.Field(
         title=
-            u"Approximate System-Independent Effort of Last Request (Pystones)",
+            "Approximate System-Independent Effort of Last Request (Pystones)",
         description=(
-        u"""Return how many pystones the last request took.
+        """Return how many pystones the last request took.
 
         This number is found by multiplying the number of pystones/second at
         which this system benchmarks and the result of ``lastRequestSeconds``.
@@ -182,11 +182,11 @@
     """A browser for use with the Zope functional testing framework"""
 
     handleErrors = zope.schema.Bool(
-        title=u"Handle Errors",
-        description=(u"Describes whether server-side errors will be handled "
-                     u"by the publisher. If set to ``False``, the error will "
-                     u"progress all the way to the test, which is good for "
-                     u"debugging."),
+        title="Handle Errors",
+        description=("Describes whether server-side errors will be handled "
+                     "by the publisher. If set to ``False``, the error will "
+                     "progress all the way to the test, which is good for "
+                     "debugging."),
         default=True,
         required=True)
 
@@ -199,32 +199,32 @@
     """A control (input field) of a page."""
 
     name = zope.schema.TextLine(
-        title=u"Name",
-        description=u"The name of the control.",
+        title="Name",
+        description="The name of the control.",
         required=True)
 
     value = zope.schema.Field(
-        title=u"Value",
-        description=u"The value of the control",
+        title="Value",
+        description="The value of the control",
         default=None,
         required=True)
 
     type = zope.schema.Choice(
-        title=u"Type",
-        description=u"The type of the control",
+        title="Type",
+        description="The type of the control",
         values=['text', 'password', 'hidden', 'submit', 'checkbox', 'select',
                 'radio', 'image', 'file'],
         required=True)
 
     disabled = zope.schema.Bool(
-        title=u"Disabled",
-        description=u"Describes whether a control is disabled.",
+        title="Disabled",
+        description="Describes whether a control is disabled.",
         default=False,
         required=False)
 
     multiple = zope.schema.Bool(
-        title=u"Multiple",
-        description=u"Describes whether this control can hold multiple values.",
+        title="Multiple",
+        description="Describes whether this control can hold multiple values.",
         default=False,
         required=False)
 
@@ -236,22 +236,22 @@
     """A radio button, checkbox, or select control"""
 
     options = zope.schema.List(
-        title=u"Options",
-        description=u"""\
+        title="Options",
+        description="""\
         A list of possible values for the control.""",
         required=True)
 
     displayOptions = zope.schema.List(
         # TODO: currently only implemented for select by ClientForm
-        title=u"Options",
-        description=u"""\
+        title="Options",
+        description="""\
         A list of possible display values for the control.""",
         required=True)
 
     displayValue = zope.schema.Field(
         # TODO: currently only implemented for select by ClientForm
-        title=u"Value",
-        description=u"The value of the control, as rendered by the display",
+        title="Value",
+        description="The value of the control, as rendered by the display",
         default=None,
         required=True)
 
@@ -283,26 +283,26 @@
     """a radio button or checkbox within a larger multiple-choice control"""
 
     control = zope.schema.Object(
-        title=u"Control",
-        description=(u"The parent control element."),
+        title="Control",
+        description=("The parent control element."),
         schema=IControl,
         required=True)
 
     disabled = zope.schema.Bool(
-        title=u"Disabled",
-        description=u"Describes whether a subcontrol is disabled.",
+        title="Disabled",
+        description="Describes whether a subcontrol is disabled.",
         default=False,
         required=False)
 
     selected = zope.schema.Bool(
-        title=u"Selected",
-        description=u"Whether the subcontrol is selected",
+        title="Selected",
+        description="Whether the subcontrol is selected",
         default=None,
         required=True)
 
     optionValue = zope.schema.TextLine(
-        title=u"Value",
-        description=u"The value of the subcontrol",
+        title="Value",
+        description="The value of the subcontrol",
         default=None,
         required=False)
 
@@ -313,13 +313,13 @@
         """click the link, going to the URL referenced"""
 
     url = zope.schema.TextLine(
-        title=u"URL",
-        description=u"The normalized URL of the link",
+        title="URL",
+        description="The normalized URL of the link",
         requiRefactoringTool: No changes to ../python3/src/zc/testbrowser/dummymodules.py
RefactoringTool: Refactored ../python3/src/zc/testbrowser/browser.py
RefactoringTool: No changes to ../python3/src/zc/__init__.py
RefactoringTool: No changes to ../python3/setup.py
RefactoringTool: Refactored ../python3/bootstrap/bootstrap.py
RefactoringTool: Files that were modified:
RefactoringTool: ../python3/src/zc/testbrowser/tests.py
RefactoringTool: ../python3/src/zc/testbrowser/real.py
RefactoringTool: ../python3/src/zc/testbrowser/interfaces.py
RefactoringTool: ../python3/src/zc/testbrowser/dummymodules.py
RefactoringTool: ../python3/src/zc/testbrowser/browser.py
RefactoringTool: ../python3/src/zc/__init__.py
RefactoringTool: ../python3/setup.py
RefactoringTool: ../python3/bootstrap/bootstrap.py
red=False)
 
     text = zope.schema.TextLine(
-        title=u'Text',
-        description=u'The contained text of the link',
+        title='Text',
+        description='The contained text of the link',
         required=False)
 
 
@@ -327,20 +327,20 @@
     """An HTML form of the page"""
 
     action = zope.schema.TextLine(
-        title=u"Action",
-        description=u"The action (or URI) that is opened upon submittance.",
+        title="Action",
+        description="The action (or URI) that is opened upon submittance.",
         required=True)
 
     name = zope.schema.TextLine(
-        title=u"Name",
-        description=u"The value of the `name` attribute in the form tag, "
-                    u"if specified.",
+        title="Name",
+        description="The value of the `name` attribute in the form tag, "
+                    "if specified.",
         required=True)
 
     id = zope.schema.TextLine(
-        title=u"Id",
-        description=u"The value of the `id` attribute in the form tag, "
-                    u"if specified.",
+        title="Id",
+        description="The value of the `id` attribute in the form tag, "
+                    "if specified.",
         required=True)
 
     def getControl(label=None, name=None, index=None):
--- ../python3/src/zc/testbrowser/browser.py	(original)
+++ ../python3/src/zc/testbrowser/browser.py	(refactored)
@@ -13,15 +13,15 @@
 ##############################################################################
 __docformat__ = "reStructuredText"
 
-from cStringIO import StringIO
+from io import StringIO
 import ClientForm
 import mechanize
 import operator
 import re
 import sys
 import time
-import urllib2
-import urlparse
+import urllib.request, urllib.error, urllib.parse
+import urllib.parse
 import zc.testbrowser.interfaces
 import zope.interface
 
@@ -210,12 +210,12 @@
 
     def open(self, url, data=None):
         if self.base is not None:
-            url = urlparse.urljoin(self.base, url)
+            url = urllib.parse.urljoin(self.base, url)
         self._start_timer()
         try:
             try:
                 self.mech_browser.open(url, data)
-            except urllib2.HTTPError, e:
+            except urllib.error.HTTPError as e:
                 if e.code >= 200 and e.code <= 299:
                     # 200s aren't really errors
                     pass
@@ -230,7 +230,7 @@
             code, msg = self.headers['Status'].split(' ', 1)
             code = int(code)
             if self.raiseHttpErrors and code >= 400:
-                raise urllib2.HTTPError(url, code, msg, self.headers, fp=None)
+                raise urllib.error.HTTPError(url, code, msg, self.headers, fp=None)
 
     def _start_timer(self):
         self.timer.start()
@@ -694,7 +694,7 @@
             if index is not None or coord != (1,1):
                 raise ValueError(
                     'May not use index or coord without a control')
-            request = self.mech_form._switch_click("request", urllib2.Request)
+            request = self.mech_form._switch_click("request", urllib.request.Request)
             self.browser._start_timer()
             self.browser.mech_browser.open(request)
             self.browser._stop_timer()
--- ../python3/bootstrap/bootstrap.py	(original)
+++ ../python3/bootstrap/bootstrap.py	(refactored)
@@ -20,7 +20,7 @@
 $Id: bootstrap.py 90478 2008-08-27 22:44:46Z georgyberdyshev $
 """
 
-import os, shutil, sys, tempfile, urllib2
+import os, shutil, sys, tempfile, urllib.request, urllib.error, urllib.parse
 
 tmpeggs = tempfile.mkdtemp()
 
@@ -30,8 +30,8 @@
     import pkg_resources
 except ImportError:
     ez = {}
-    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)
 
     import pkg_resources
+ exit 0
Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.78657
+ umask 022
+ /bin/mkdir -p /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ cd python-module-zc.testbrowser-1.0.0a5
+ CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2'
+ export CFLAGS
+ CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2'
+ export CXXFLAGS
+ FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2'
+ export FFLAGS
+ /usr/bin/python setup.py build
running build
running build_py
creating build
creating build/lib
creating build/lib/zc
copying src/zc/__init__.py -> build/lib/zc
creating build/lib/zc/testbrowser
copying src/zc/testbrowser/tests.py -> build/lib/zc/testbrowser
copying src/zc/testbrowser/real.py -> build/lib/zc/testbrowser
copying src/zc/testbrowser/interfaces.py -> build/lib/zc/testbrowser
copying src/zc/testbrowser/dummymodules.py -> build/lib/zc/testbrowser
copying src/zc/testbrowser/browser.py -> build/lib/zc/testbrowser
copying src/zc/testbrowser/__init__.py -> build/lib/zc/testbrowser
creating build/lib/zc/testbrowser/ftests
copying src/zc/testbrowser/ftests/__init__.py -> build/lib/zc/testbrowser/ftests
running egg_info
writing requirements to src/zc.testbrowser.egg-info/requires.txt
writing src/zc.testbrowser.egg-info/PKG-INFO
writing namespace_packages to src/zc.testbrowser.egg-info/namespace_packages.txt
writing top-level names to src/zc.testbrowser.egg-info/top_level.txt
writing dependency_links to src/zc.testbrowser.egg-info/dependency_links.txt
reading manifest file 'src/zc.testbrowser.egg-info/SOURCES.txt'
writing manifest file 'src/zc.testbrowser.egg-info/SOURCES.txt'
copying src/zc/testbrowser/README.txt -> build/lib/zc/testbrowser
copying src/zc/testbrowser/headers.txt -> build/lib/zc/testbrowser
copying src/zc/testbrowser/performance.txt -> build/lib/zc/testbrowser
copying src/zc/testbrowser/real.js -> build/lib/zc/testbrowser
copying src/zc/testbrowser/screen-shots.txt -> build/lib/zc/testbrowser
copying src/zc/testbrowser/ftests/controls.html -> build/lib/zc/testbrowser/ftests
copying src/zc/testbrowser/ftests/doctype.html -> build/lib/zc/testbrowser/ftests
copying src/zc/testbrowser/ftests/forms.html -> build/lib/zc/testbrowser/ftests
copying src/zc/testbrowser/ftests/ftesting.zcml -> build/lib/zc/testbrowser/ftests
copying src/zc/testbrowser/ftests/index.html -> build/lib/zc/testbrowser/ftests
copying src/zc/testbrowser/ftests/navigate.html -> build/lib/zc/testbrowser/ftests
copying src/zc/testbrowser/ftests/notitle.html -> build/lib/zc/testbrowser/ftests
copying src/zc/testbrowser/ftests/oneform.html -> build/lib/zc/testbrowser/ftests
copying src/zc/testbrowser/ftests/target.html -> build/lib/zc/testbrowser/ftests
copying src/zc/testbrowser/ftests/test.css -> build/lib/zc/testbrowser/ftests
copying src/zc/testbrowser/ftests/test.txt -> build/lib/zc/testbrowser/ftests
copying src/zc/testbrowser/ftests/zope3logo.gif -> build/lib/zc/testbrowser/ftests
+ pushd ../python3
~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-zc.testbrowser-1.0.0a5
+ CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2'
+ export CFLAGS
+ CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2'
+ export CXXFLAGS
+ FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2'
+ export FFLAGS
+ /usr/bin/python3 setup.py build
running build
running build_py
creating build
creating build/lib
creating build/lib/zc
copying src/zc/__init__.py -> build/lib/zc
creating build/lib/zc/testbrowser
copying src/zc/testbrowser/tests.py -> build/lib/zc/testbrowser
copying src/zc/testbrowser/real.py -> build/lib/zc/testbrowser
copying src/zc/testbrowser/interfaces.py -> build/lib/zc/testbrowser
copying src/zc/testbrowser/dummymodules.py -> build/lib/zc/testbrowser
copying src/zc/testbrowser/browser.py -> build/lib/zc/testbrowser
copying src/zc/testbrowser/__init__.py -> build/lib/zc/testbrowser
creating build/lib/zc/testbrowser/ftests
copying src/zc/testbrowser/ftests/__init__.py -> build/lib/zc/testbrowser/ftests
running egg_info
writing src/zc.testbrowser.egg-info/PKG-INFO
writing dependency_links to src/zc.testbrowser.egg-info/dependency_links.txt
writing namespace_packages to src/zc.testbrowser.egg-info/namespace_packages.txt
writing requirements to src/zc.testbrowser.egg-info/requires.txt
writing top-level names to src/zc.testbrowser.egg-info/top_level.txt
reading manifest file 'src/zc.testbrowser.egg-info/SOURCES.txt'
writing manifest file 'src/zc.testbrowser.egg-info/SOURCES.txt'
copying src/zc/testbrowser/README.txt -> build/lib/zc/testbrowser
copying src/zc/testbrowser/headers.txt -> build/lib/zc/testbrowser
copying src/zc/testbrowser/performance.txt -> build/lib/zc/testbrowser
copying src/zc/testbrowser/real.js -> build/lib/zc/testbrowser
copying src/zc/testbrowser/screen-shots.txt -> build/lib/zc/testbrowser
copying src/zc/testbrowser/ftests/controls.html -> build/lib/zc/testbrowser/ftests
copying src/zc/testbrowser/ftests/doctype.html -> build/lib/zc/testbrowser/ftests
copying src/zc/testbrowser/ftests/forms.html -> build/lib/zc/testbrowser/ftests
copying src/zc/testbrowser/ftests/ftesting.zcml -> build/lib/zc/testbrowser/ftests
copying src/zc/testbrowser/ftests/index.html -> build/lib/zc/testbrowser/ftests
copying src/zc/testbrowser/ftests/navigate.html -> build/lib/zc/testbrowser/ftests
copying src/zc/testbrowser/ftests/notitle.html -> build/lib/zc/testbrowser/ftests
copying src/zc/testbrowser/ftests/oneform.html -> build/lib/zc/testbrowser/ftests
copying src/zc/testbrowser/ftests/target.html -> build/lib/zc/testbrowser/ftests
copying src/zc/testbrowser/ftests/test.css -> build/lib/zc/testbrowser/ftests
copying src/zc/testbrowser/ftests/test.txt -> build/lib/zc/testbrowser/ftests
copying src/zc/testbrowser/ftests/zope3logo.gif -> build/lib/zc/testbrowser/ftests
+ popd
~/RPM/BUILD/python-module-zc.testbrowser-1.0.0a5
+ exit 0
Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.56905
+ umask 022
+ /bin/mkdir -p /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ /bin/chmod -Rf u+rwX -- /usr/src/tmp/python-module-zc.testbrowser-buildroot
+ :
+ /bin/rm -rf -- /usr/src/tmp/python-module-zc.testbrowser-buildroot
+ PATH=/usr/libexec/rpm-build:/usr/src/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games
+ cd python-module-zc.testbrowser-1.0.0a5
+ CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2'
+ export CFLAGS
+ CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2'
+ export CXXFLAGS
+ FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2'
+ export FFLAGS
+ /usr/bin/python setup.py install --skip-build --root=/usr/src/tmp/python-module-zc.testbrowser-buildroot --force
running install
running install_lib
Skipping installation of /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python2.7/site-packages/zc/__init__.py (namespace package)
copying zc/testbrowser/screen-shots.txt -> /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python2.7/site-packages/zc/testbrowser
copying zc/testbrowser/real.js -> /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python2.7/site-packages/zc/testbrowser
copying zc/testbrowser/performance.txt -> /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python2.7/site-packages/zc/testbrowser
copying zc/testbrowser/headers.txt -> /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python2.7/site-packages/zc/testbrowser
copying zc/testbrowser/README.txt -> /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python2.7/site-packages/zc/testbrowser
copying zc/testbrowser/__init__.py -> /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python2.7/site-packages/zc/testbrowser
copying zc/testbrowser/browser.py -> /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python2.7/site-packages/zc/testbrowser
copying zc/testbrowser/dummymodules.py -> /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python2.7/site-packages/zc/testbrowser
copying zc/testbrowser/interfaces.py -> /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python2.7/site-packages/zc/testbrowser
copying zc/testbrowser/real.py -> /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python2.7/site-packages/zc/testbrowser
copying zc/testbrowser/tests.py -> /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python2.7/site-packages/zc/testbrowser
copying zc/testbrowser/ftests/zope3logo.gif -> /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python2.7/site-packages/zc/testbrowser/ftests
copying zc/testbrowser/ftests/test.txt -> /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python2.7/site-packages/zc/testbrowser/ftests
copying zc/testbrowser/ftests/test.css -> /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python2.7/site-packages/zc/testbrowser/ftests
copying zc/testbrowser/ftests/target.html -> /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python2.7/site-packages/zc/testbrowser/ftests
copying zc/testbrowser/ftests/oneform.html -> /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python2.7/site-packages/zc/testbrowser/ftests
copying zc/testbrowser/ftests/notitle.html -> /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python2.7/site-packages/zc/testbrowser/ftests
copying zc/testbrowser/ftests/navigate.html -> /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python2.7/site-packages/zc/testbrowser/ftests
copying zc/testbrowser/ftests/index.html -> /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python2.7/site-packages/zc/testbrowser/ftests
copying zc/testbrowser/ftests/ftesting.zcml -> /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python2.7/site-packages/zc/testbrowser/ftests
copying zc/testbrowser/ftests/forms.html -> /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python2.7/site-packages/zc/testbrowser/ftests
copying zc/testbrowser/ftests/doctype.html -> /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python2.7/site-packages/zc/testbrowser/ftests
copying zc/testbrowser/ftests/controls.html -> /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python2.7/site-packages/zc/testbrowser/ftests
copying zc/testbrowser/ftests/__init__.py -> /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python2.7/site-packages/zc/testbrowser/ftests
byte-compiling /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python2.7/site-packages/zc/testbrowser/__init__.py to __init__.pyc
byte-compiling /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python2.7/site-packages/zc/testbrowser/browser.py to browser.pyc
byte-compiling /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python2.7/site-packages/zc/testbrowser/dummymodules.py to dummymodules.pyc
byte-compiling /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python2.7/site-packages/zc/testbrowser/interfaces.py to interfaces.pyc
byte-compiling /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python2.7/site-packages/zc/testbrowser/real.py to real.pyc
byte-compiling /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python2.7/site-packages/zc/testbrowser/tests.py to tests.pyc
byte-compiling /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python2.7/site-packages/zc/testbrowser/ftests/__init__.py to __init__.pyc
running install_egg_info
running egg_info
writing requirements to src/zc.testbrowser.egg-info/requires.txt
writing src/zc.testbrowser.egg-info/PKG-INFO
writing namespace_packages to src/zc.testbrowser.egg-info/namespace_packages.txt
writing top-level names to src/zc.testbrowser.egg-info/top_level.txt
writing dependency_links to src/zc.testbrowser.egg-info/dependency_links.txt
reading manifest file 'src/zc.testbrowser.egg-info/SOURCES.txt'
writing manifest file 'src/zc.testbrowser.egg-info/SOURCES.txt'
Copying src/zc.testbrowser.egg-info to /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python2.7/site-packages/zc.testbrowser-1.0.0a5-py2.7.egg-info
Installing /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python2.7/site-packages/zc.testbrowser-1.0.0a5-py2.7-nspkg.pth
running install_scripts
+ install -d /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python2.7/site-packages
+ mv /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python2.7/site-packages/zc /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python2.7/site-packages/zc.testbrowser-1.0.0a5-py2.7-nspkg.pth /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python2.7/site-packages/zc.testbrowser-1.0.0a5-py2.7.egg-info /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python2.7/site-packages/
+ pushd ../python3
~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-zc.testbrowser-1.0.0a5
+ CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2'
+ export CFLAGS
+ CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2'
+ export CXXFLAGS
+ FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2'
+ export FFLAGS
+ /usr/bin/python3 setup.py install --skip-build --root=/usr/src/tmp/python-module-zc.testbrowser-buildroot --force
running install
running install_lib
Skipping installation of /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python3/site-packages/zc/__init__.py (namespace package)
copying zc/testbrowser/screen-shots.txt -> /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python3/site-packages/zc/testbrowser
copying zc/testbrowser/real.js -> /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python3/site-packages/zc/testbrowser
copying zc/testbrowser/performance.txt -> /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python3/site-packages/zc/testbrowser
copying zc/testbrowser/headers.txt -> /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python3/site-packages/zc/testbrowser
copying zc/testbrowser/README.txt -> /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python3/site-packages/zc/testbrowser
copying zc/testbrowser/__init__.py -> /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python3/site-packages/zc/testbrowser
copying zc/testbrowser/browser.py -> /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python3/site-packages/zc/testbrowser
copying zc/testbrowser/dummymodules.py -> /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python3/site-packages/zc/testbrowser
copying zc/testbrowser/interfaces.py -> /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python3/site-packages/zc/testbrowser
copying zc/testbrowser/real.py -> /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python3/site-packages/zc/testbrowser
copying zc/testbrowser/tests.py -> /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python3/site-packages/zc/testbrowser
copying zc/testbrowser/ftests/zope3logo.gif -> /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python3/site-packages/zc/testbrowser/ftests
copying zc/testbrowser/ftests/test.txt -> /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python3/site-packages/zc/testbrowser/ftests
copying zc/testbrowser/ftests/test.css -> /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python3/site-packages/zc/testbrowser/ftests
copying zc/testbrowser/ftests/target.html -> /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python3/site-packages/zc/testbrowser/ftests
copying zc/testbrowser/ftests/oneform.html -> /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python3/site-packages/zc/testbrowser/ftests
copying zc/testbrowser/ftests/notitle.html -> /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python3/site-packages/zc/testbrowser/ftests
copying zc/testbrowser/ftests/navigate.html -> /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python3/site-packages/zc/testbrowser/ftests
copying zc/testbrowser/ftests/index.html -> /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python3/site-packages/zc/testbrowser/ftests
copying zc/testbrowser/ftests/ftesting.zcml -> /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python3/site-packages/zc/testbrowser/ftests
copying zc/testbrowser/ftests/forms.html -> /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python3/site-packages/zc/testbrowser/ftests
copying zc/testbrowser/ftests/doctype.html -> /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python3/site-packages/zc/testbrowser/ftests
copying zc/testbrowser/ftests/controls.html -> /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python3/site-packages/zc/testbrowser/ftests
copying zc/testbrowser/ftests/__init__.py -> /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python3/site-packages/zc/testbrowser/ftests
byte-compiling /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python3/site-packages/zc/testbrowser/__init__.py to __init__.cpython-37.pyc
byte-compiling /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python3/site-packages/zc/testbrowser/browser.py to browser.cpython-37.pyc
byte-compiling /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python3/site-packages/zc/testbrowser/dummymodules.py to dummymodules.cpython-37.pyc
byte-compiling /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python3/site-packages/zc/testbrowser/interfaces.py to interfaces.cpython-37.pyc
byte-compiling /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python3/site-packages/zc/testbrowser/real.py to real.cpython-37.pyc
byte-compiling /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python3/site-packages/zc/testbrowser/tests.py to tests.cpython-37.pyc
byte-compiling /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python3/site-packages/zc/testbrowser/ftests/__init__.py to __init__.cpython-37.pyc
running install_egg_info
running egg_info
writing src/zc.testbrowser.egg-info/PKG-INFO
writing dependency_links to src/zc.testbrowser.egg-info/dependency_links.txt
writing namespace_packages to src/zc.testbrowser.egg-info/namespace_packages.txt
writing requirements to src/zc.testbrowser.egg-info/requires.txt
writing top-level names to src/zc.testbrowser.egg-info/top_level.txt
reading manifest file 'src/zc.testbrowser.egg-info/SOURCES.txt'
writing manifest file 'src/zc.testbrowser.egg-info/SOURCES.txt'
Copying src/zc.testbrowser.egg-info to /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python3/site-packages/zc.testbrowser-1.0.0a5-py3.7.egg-info
Installing /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python3/site-packages/zc.testbrowser-1.0.0a5-py3.7-nspkg.pth
running install_scripts
+ popd
~/RPM/BUILD/python-module-zc.testbrowser-1.0.0a5
+ install -d /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python3/site-packages
+ mv /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python3/site-packages/zc /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python3/site-packages/zc.testbrowser-1.0.0a5-py3.7-nspkg.pth /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib/python3/site-packages/zc.testbrowser-1.0.0a5-py3.7.egg-info /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python3/site-packages/
+ /usr/lib/rpm/brp-alt
Cleaning files in /usr/src/tmp/python-module-zc.testbrowser-buildroot (auto)
Verifying and fixing files in /usr/src/tmp/python-module-zc.testbrowser-buildroot (binconfig,pkgconfig,libtool,desktop,gnuconfig)
Checking contents of files in /usr/src/tmp/python-module-zc.testbrowser-buildroot/ (default)
Compressing files in /usr/src/tmp/python-module-zc.testbrowser-buildroot (auto)
Adjusting library links in /usr/src/tmp/python-module-zc.testbrowser-buildroot
./usr/lib64:
./usr/lib:
Verifying ELF objects in /usr/src/tmp/python-module-zc.testbrowser-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-zc.testbrowser-buildroot using /usr/bin/python
unlink /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python2.7/site-packages/zc/testbrowser/ftests/__init__.pyc
compile /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python2.7/site-packages/zc/testbrowser/ftests/__init__.py
unlink /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python2.7/site-packages/zc/testbrowser/__init__.pyc
unlink /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python2.7/site-packages/zc/testbrowser/browser.pyc
unlink /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python2.7/site-packages/zc/testbrowser/dummymodules.pyc
unlink /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python2.7/site-packages/zc/testbrowser/interfaces.pyc
unlink /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python2.7/site-packages/zc/testbrowser/real.pyc
unlink /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python2.7/site-packages/zc/testbrowser/tests.pyc
compile /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python2.7/site-packages/zc/testbrowser/__init__.py
compile /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python2.7/site-packages/zc/testbrowser/browser.py
compile /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python2.7/site-packages/zc/testbrowser/dummymodules.py
compile /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python2.7/site-packages/zc/testbrowser/interfaces.py
compile /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python2.7/site-packages/zc/testbrowser/real.py
compile /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python2.7/site-packages/zc/testbrowser/tests.py
Bytecompiling python modules with optimization in /usr/src/tmp/python-module-zc.testbrowser-buildroot using /usr/bin/python -O
compile /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python2.7/site-packages/zc/testbrowser/ftests/__init__.py
compile /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python2.7/site-packages/zc/testbrowser/__init__.py
compile /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python2.7/site-packages/zc/testbrowser/browser.py
compile /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python2.7/site-packages/zc/testbrowser/dummymodules.py
compile /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python2.7/site-packages/zc/testbrowser/interfaces.py
compile /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python2.7/site-packages/zc/testbrowser/real.py
compile /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python2.7/site-packages/zc/testbrowser/tests.py
Bytecompiling python3 modules in /usr/src/tmp/python-module-zc.testbrowser-buildroot using /usr/bin/python3
unlink /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python3/site-packages/zc/testbrowser/__pycache__/__init__.cpython-37.pyc
unlink /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python3/site-packages/zc/testbrowser/__pycache__/browser.cpython-37.pyc
unlink /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python3/site-packages/zc/testbrowser/__pycache__/dummymodules.cpython-37.pyc
unlink /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python3/site-packages/zc/testbrowser/__pycache__/interfaces.cpython-37.pyc
unlink /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python3/site-packages/zc/testbrowser/__pycache__/real.cpython-37.pyc
unlink /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python3/site-packages/zc/testbrowser/__pycache__/tests.cpython-37.pyc
unlink /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python3/site-packages/zc/testbrowser/ftests/__pycache__/__init__.cpython-37.pyc
compile /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python3/site-packages/zc/testbrowser/ftests/__init__.py
compile /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python3/site-packages/zc/testbrowser/__init__.py
compile /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python3/site-packages/zc/testbrowser/browser.py
compile /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python3/site-packages/zc/testbrowser/dummymodules.py
compile /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python3/site-packages/zc/testbrowser/interfaces.py
compile /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python3/site-packages/zc/testbrowser/real.py
compile /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python3/site-packages/zc/testbrowser/tests.py
Bytecompiling python3 modules with optimization in /usr/src/tmp/python-module-zc.testbrowser-buildroot using /usr/bin/python3 -O
compile /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python3/site-packages/zc/testbrowser/ftests/__init__.py
compile /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python3/site-packages/zc/testbrowser/__init__.py
compile /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python3/site-packages/zc/testbrowser/browser.py
compile /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python3/site-packages/zc/testbrowser/dummymodules.py
compile /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python3/site-packages/zc/testbrowser/interfaces.py
compile /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python3/site-packages/zc/testbrowser/real.py
compile /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python3/site-packages/zc/testbrowser/tests.py
Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python-module-zc.testbrowser-buildroot using /usr/bin/python3 -OO
compile /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python3/site-packages/zc/testbrowser/ftests/__init__.py
compile /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python3/site-packages/zc/testbrowser/__init__.py
compile /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python3/site-packages/zc/testbrowser/browser.py
compile /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python3/site-packages/zc/testbrowser/dummymodules.py
compile /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python3/site-packages/zc/testbrowser/interfaces.py
compile /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python3/site-packages/zc/testbrowser/real.py
compile /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python3/site-packages/zc/testbrowser/tests.py
Hardlinking identical .pyc and .opt-?.pyc files
'./usr/lib64/python3/site-packages/zc/testbrowser/__pycache__/tests.cpython-37.opt-1.pyc' => './usr/lib64/python3/site-packages/zc/testbrowser/__pycache__/tests.cpython-37.pyc'
'./usr/lib64/python3/site-packages/zc/testbrowser/__pycache__/interfaces.cpython-37.opt-1.pyc' => './usr/lib64/python3/site-packages/zc/testbrowser/__pycache__/interfaces.cpython-37.pyc'
'./usr/lib64/python3/site-packages/zc/testbrowser/__pycache__/dummymodules.cpython-37.opt-1.pyc' => './usr/lib64/python3/site-packages/zc/testbrowser/__pycache__/dummymodules.cpython-37.pyc'
'./usr/lib64/python3/site-packages/zc/testbrowser/__pycache__/dummymodules.cpython-37.opt-2.pyc' => './usr/lib64/python3/site-packages/zc/testbrowser/__pycache__/dummymodules.cpython-37.opt-1.pyc'
'./usr/lib64/python3/site-packages/zc/testbrowser/__pycache__/browser.cpython-37.opt-1.pyc' => './usr/lib64/python3/site-packages/zc/testbrowser/__pycache__/browser.cpython-37.pyc'
'./usr/lib64/python3/site-packages/zc/testbrowser/__pycache__/__init__.cpython-37.opt-1.pyc' => './usr/lib64/python3/site-packages/zc/testbrowser/__pycache__/__init__.cpython-37.pyc'
'./usr/lib64/python3/site-packages/zc/testbrowser/__pycache__/__init__.cpython-37.opt-2.pyc' => './usr/lib64/python3/site-packages/zc/testbrowser/__pycache__/__init__.cpython-37.opt-1.pyc'
'./usr/lib64/python3/site-packages/zc/testbrowser/ftests/__pycache__/__init__.cpython-37.opt-1.pyc' => './usr/lib64/python3/site-packages/zc/testbrowser/ftests/__pycache__/__init__.cpython-37.pyc'
'./usr/lib64/python3/site-packages/zc/testbrowser/ftests/__pycache__/__init__.cpython-37.opt-2.pyc' => './usr/lib64/python3/site-packages/zc/testbrowser/ftests/__pycache__/__init__.cpython-37.opt-1.pyc'
Hardlinking identical .pyc and .pyo files
'./usr/lib64/python2.7/site-packages/zc/testbrowser/tests.pyo' => './usr/lib64/python2.7/site-packages/zc/testbrowser/tests.pyc'
'./usr/lib64/python2.7/site-packages/zc/testbrowser/interfaces.pyo' => './usr/lib64/python2.7/site-packages/zc/testbrowser/interfaces.pyc'
'./usr/lib64/python2.7/site-packages/zc/testbrowser/dummymodules.pyo' => './usr/lib64/python2.7/site-packages/zc/testbrowser/dummymodules.pyc'
'./usr/lib64/python2.7/site-packages/zc/testbrowser/browser.pyo' => './usr/lib64/python2.7/site-packages/zc/testbrowser/browser.pyc'
'./usr/lib64/python2.7/site-packages/zc/testbrowser/__init__.pyo' => './usr/lib64/python2.7/site-packages/zc/testbrowser/__init__.pyc'
'./usr/lib64/python2.7/site-packages/zc/testbrowser/ftests/__init__.pyo' => './usr/lib64/python2.7/site-packages/zc/testbrowser/ftests/__init__.pyc'
Processing files: python-module-zc.testbrowser-1.0.0a5-alt3.2
Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.60210
+ umask 022
+ /bin/mkdir -p /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ cd python-module-zc.testbrowser-1.0.0a5
+ DOCDIR=/usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/share/doc/python-module-zc.testbrowser-1.0.0a5
+ export DOCDIR
+ rm -rf /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/share/doc/python-module-zc.testbrowser-1.0.0a5
+ /bin/mkdir -p /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/share/doc/python-module-zc.testbrowser-1.0.0a5
+ cp -prL CHANGES.txt README.txt TODO.txt /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/share/doc/python-module-zc.testbrowser-1.0.0a5
+ chmod -R go-w /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/share/doc/python-module-zc.testbrowser-1.0.0a5
+ chmod -R a+rX /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/share/doc/python-module-zc.testbrowser-1.0.0a5
+ exit 0
Finding Provides (using /usr/lib/rpm/find-provides)
Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.m0Duj0
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.KgyQFp
find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services)
python.req: /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python2.7/site-packages/zc/testbrowser/browser.py: skipping sys
/usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python2.7/site-packages/zc/testbrowser/browser.py: line=99 IGNORE (for REQ=slight and deep=12) module=test
Provides: python2.7(zc.testbrowser), python2.7(zc.testbrowser.browser), python2.7(zc.testbrowser.dummymodules), python2.7(zc.testbrowser.ftests), python2.7(zc.testbrowser.interfaces), python2.7(zc.testbrowser.real)
Requires: python2.7(zc), python2.7(ClientForm), python2.7(mechanize), python2.7(simplejson), python2.7(zope.interface), python2.7(zope.schema), /usr/lib64/python2.7/site-packages, python-modules, python2.7(zope)
Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files)
Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.OGyUFS
Processing files: python3-module-zc.testbrowser-1.0.0a5-alt3.2
Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.76767
+ umask 022
+ /bin/mkdir -p /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ cd python-module-zc.testbrowser-1.0.0a5
+ DOCDIR=/usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/share/doc/python3-module-zc.testbrowser-1.0.0a5
+ export DOCDIR
+ rm -rf /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/share/doc/python3-module-zc.testbrowser-1.0.0a5
+ /bin/mkdir -p /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/share/doc/python3-module-zc.testbrowser-1.0.0a5
+ cp -prL CHANGES.txt README.txt TODO.txt /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/share/doc/python3-module-zc.testbrowser-1.0.0a5
+ chmod -R go-w /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/share/doc/python3-module-zc.testbrowser-1.0.0a5
+ chmod -R a+rX /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/share/doc/python3-module-zc.testbrowser-1.0.0a5
+ exit 0
Finding Provides (using /usr/lib/rpm/find-provides)
Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.CM5ESp
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.uMWmK0
find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services)
python3.req: /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python3/site-packages/zc/testbrowser/browser.py: skipping sys
python3.req: /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python3/site-packages/zc/testbrowser/browser.py: skipping time
/usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python3/site-packages/zc/testbrowser/browser.py: line=99 IGNORE (for REQ=slight and deep=12) module=test
python3.req: /usr/src/tmp/python-module-zc.testbrowser-buildroot/usr/lib64/python3/site-packages/zc/testbrowser/real.py: skipping time
Provides: python3(zc.testbrowser), python3(zc.testbrowser.browser), python3(zc.testbrowser.dummymodules), python3(zc.testbrowser.ftests), python3(zc.testbrowser.interfaces), python3(zc.testbrowser.real)
Requires: python3(zc) < 0, python3(ClientForm) < 0, python3(mechanize) < 0, python3(simplejson) < 0, python3(zope.interface) < 0, python3(zope.schema) < 0, /usr/lib64/python3/site-packages, python3(io) < 0, python3(operator) < 0, python3(os.path) < 0, python3(re) < 0, python3(socket) < 0, python3(telnetlib) < 0, python3(tempfile) < 0, python3(urllib.error) < 0, python3(urllib.parse) < 0, python3(urllib.request) < 0
Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files)
Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.WKkIkF
Processing files: python3-module-zc.testbrowser-tests-1.0.0a5-alt3.2
Finding Provides (using /usr/lib/rpm/find-provides)
Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.6vaTwn
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.4WaFl9
find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services)
Provides: python3(zc.testbrowser.tests)
Requires: python3-module-zc.testbrowser = 1.0.0a5-alt3.2, python3(zope.testing) < 0, /usr/lib64/python3/site-packages, python3(cgi) < 0, python3(http.client) < 0, python3(http.server) < 0, python3(io) < 0, python3(mechanize) < 0, python3(os.path) < 0, python3(pprint) < 0, python3(random) < 0, python3(re) < 0, python3(string) < 0, python3(threading) < 0, python3(unittest) < 0, python3(urllib.error) < 0, python3(urllib.parse) < 0, python3(urllib.request) < 0, python3(zc.testbrowser) < 0, python3(zc.testbrowser.browser) < 0, python3(zc.testbrowser.real) < 0
Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files)
Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.KqxyMY
Processing files: python-module-zc.testbrowser-tests-1.0.0a5-alt3.2
Finding Provides (using /usr/lib/rpm/find-provides)
Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.iOD5PR
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.g7CUwO
find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services)
Provides: python2.7(zc.testbrowser.tests)
Requires: python-module-zc.testbrowser = 1.0.0a5-alt3.2, python2.7(zope.testing), /usr/lib64/python2.7/site-packages, python-modules, python2.7(mechanize), python2.7(unittest), python2.7(zc), python2.7(zope)
Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files)
Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.kHm5PO
Adding to python-module-zc.testbrowser-tests a strict dependency on python-module-zc.testbrowser
Adding to python3-module-zc.testbrowser-tests a strict dependency on python3-module-zc.testbrowser
Removing 3 extra deps from python3-module-zc.testbrowser-tests due to dependency on python3-module-zc.testbrowser
Removing 5 extra deps from python-module-zc.testbrowser-tests due to repentancy on python-module-zc.testbrowser
Removing 8 extra deps from python3-module-zc.testbrowser-tests due to repentancy on python3-module-zc.testbrowser
Wrote: /usr/src/RPM/RPMS/x86_64/python-module-zc.testbrowser-1.0.0a5-alt3.2.x86_64.rpm (w2.lzdio)
Wrote: /usr/src/RPM/RPMS/x86_64/python3-module-zc.testbrowser-1.0.0a5-alt3.2.x86_64.rpm (w2.lzdio)
Wrote: /usr/src/RPM/RPMS/x86_64/python3-module-zc.testbrowser-tests-1.0.0a5-alt3.2.x86_64.rpm (w2.lzdio)
Wrote: /usr/src/RPM/RPMS/x86_64/python-module-zc.testbrowser-tests-1.0.0a5-alt3.2.x86_64.rpm (w2.lzdio)
5.80user 1.50system 0:17.79elapsed 41%CPU (0avgtext+0avgdata 36560maxresident)k
0inputs+0outputs (0major+479315minor)pagefaults 0swaps
3.01user 1.28system 0:26.65elapsed 16%CPU (0avgtext+0avgdata 122580maxresident)k
0inputs+0outputs (0major+279931minor)pagefaults 0swaps