<86>Sep 18 04:19:43 userdel[1988409]: delete user 'rooter' <86>Sep 18 04:19:43 userdel[1988409]: removed group 'rooter' owned by 'rooter' <86>Sep 18 04:19:43 userdel[1988409]: removed shadow group 'rooter' owned by 'rooter' <86>Sep 18 04:19:43 groupadd[1988421]: group added to /etc/group: name=rooter, GID=651 <86>Sep 18 04:19:43 groupadd[1988421]: group added to /etc/gshadow: name=rooter <86>Sep 18 04:19:43 groupadd[1988421]: new group: name=rooter, GID=651 <86>Sep 18 04:19:43 useradd[1988435]: new user: name=rooter, UID=651, GID=651, home=/root, shell=/bin/bash <86>Sep 18 04:19:43 userdel[1988452]: delete user 'builder' <86>Sep 18 04:19:43 userdel[1988452]: removed group 'builder' owned by 'builder' <86>Sep 18 04:19:43 userdel[1988452]: removed shadow group 'builder' owned by 'builder' <86>Sep 18 04:19:43 groupadd[1988471]: group added to /etc/group: name=builder, GID=652 <86>Sep 18 04:19:43 groupadd[1988471]: group added to /etc/gshadow: name=builder <86>Sep 18 04:19:43 groupadd[1988471]: new group: name=builder, GID=652 <86>Sep 18 04:19:43 useradd[1988482]: new user: name=builder, UID=652, GID=652, home=/usr/src, shell=/bin/bash <13>Sep 18 04:19:45 rpmi: libgdbm-1.8.3-alt10 sisyphus+278100.1600.1.1 1626058413 installed <13>Sep 18 04:19:45 rpmi: libexpat-2.2.10-alt1 sisyphus+276608.100.1.2 1625153355 installed <13>Sep 18 04:19:45 rpmi: libp11-kit-0.23.15-alt2 sisyphus+278382.100.1.2 1626190666 installed <13>Sep 18 04:19:45 rpmi: libtasn1-4.17.0-alt1 sisyphus+276722.100.1.1 1625211284 installed <13>Sep 18 04:19:45 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+278157.100.2.1 1626055790 installed <13>Sep 18 04:19:45 rpmi: alternatives-0.5.1-alt1 sisyphus+278157.100.2.1 1626055790 installed <13>Sep 18 04:19:45 rpmi: ca-certificates-2021.06.03-alt1 sisyphus+273509.400.1.1 1622736045 installed <13>Sep 18 04:19:45 rpmi: ca-trust-0.1.2-alt1 sisyphus+233348.100.1.1 1561653823 installed <13>Sep 18 04:19:45 rpmi: p11-kit-trust-0.23.15-alt2 sisyphus+278382.100.1.2 1626190666 installed <13>Sep 18 04:19:45 rpmi: libcrypto1.1-1.1.1l-alt1 sisyphus+283685.100.1.1 1629815887 installed <13>Sep 18 04:19:45 rpmi: libssl1.1-1.1.1l-alt1 sisyphus+283685.100.1.1 1629815887 installed <13>Sep 18 04:19:45 rpmi: python3-3.9.7-alt1 sisyphus+285382.100.1.1 1631825257 installed <13>Sep 18 04:19:46 rpmi: python3-base-3.9.7-alt1 sisyphus+285382.100.1.1 1631825257 installed <13>Sep 18 04:19:46 rpmi: libpython3-3.9.7-alt1 sisyphus+285382.100.1.1 1631825257 installed <13>Sep 18 04:19:46 rpmi: tests-for-installed-python3-pkgs-0.1.17-alt1 sisyphus+271082.100.1.1 1619820927 installed <13>Sep 18 04:19:46 rpmi: rpm-build-python3-0.1.17-alt1 sisyphus+271082.100.1.1 1619820927 installed <13>Sep 18 04:19:46 rpmi: rpm-macros-sphinx3-1:4.0.2-alt2 sisyphus+284851.300.2.1 1631173767 installed <13>Sep 18 04:19:48 rpmi: python3-module-six-1.16.0-alt1 sisyphus+283489.100.2.1 1629527308 installed <13>Sep 18 04:19:48 rpmi: python3-module-Pygments-2.10.0-alt1 sisyphus+284851.100.1.1 1631107059 installed <13>Sep 18 04:19:48 rpmi: python3-module-alabaster-0.7.6-alt4 sisyphus+281697.200.1.1 1627919931 installed <13>Sep 18 04:19:48 rpmi: python3-module-genshi-0.7.4-alt2 sisyphus+275930.100.2.1 1624873830 installed <13>Sep 18 04:19:48 rpmi: python3-module-snowballstemmer-1.2.0-alt3 sisyphus+284856.100.1.1 1631108763 installed <13>Sep 18 04:19:48 rpmi: python3-module-pkg_resources-1:58.0.4-alt1 sisyphus+284960.300.5.1 1631868702 installed <13>Sep 18 04:19:48 rpmi: python3-module-pyparsing-2.4.7-alt1 sisyphus+277413.100.1.1 1625536142 installed <13>Sep 18 04:19:48 rpmi: python3-module-packaging-21.0-alt1 sisyphus+282740.100.1.1 1628983550 installed <13>Sep 18 04:19:48 rpmi: python3-module-markupsafe-1:2.0.1-alt2 sisyphus+279531.100.1.1 1626556142 installed <13>Sep 18 04:19:48 rpmi: python3-module-jinja2-3.0.1-alt1 sisyphus+274841.1100.1.1 1624295237 installed <13>Sep 18 04:19:48 rpmi: python3-module-imagesize-1.2.0-alt1 sisyphus+282837.100.1.1 1629041158 installed <13>Sep 18 04:19:48 rpmi: python3-module-idna-3.2-alt1 sisyphus+274748.100.1.1 1624021080 installed <13>Sep 18 04:19:48 rpmi: python3-module-webencodings-0.5.1-alt2 sisyphus+276020.100.1.1 1624812421 installed <13>Sep 18 04:19:48 rpmi: python3-module-chardet-1:3.0.4-alt3 sisyphus+284855.100.1.1 1631108377 installed <13>Sep 18 04:19:48 rpmi: python3-module-pycparser-2.20-alt2 sisyphus+278697.200.1.1 1626167452 installed <13>Sep 18 04:19:48 rpmi: python3-module-cffi-1.14.5-alt2 sisyphus+279395.100.1.2 1626532846 installed <13>Sep 18 04:19:48 rpmi: python3-module-cryptography-3.4.7-alt1 sisyphus+270667.100.1.1 1619307682 installed <13>Sep 18 04:19:48 rpmi: python3-module-openssl-20.0.1-alt1 sisyphus+267607.100.2.1 1615475362 installed <13>Sep 18 04:19:48 rpmi: python3-module-urllib3-2:1.26.6-alt3 sisyphus+283224.100.2.2 1629257365 installed <13>Sep 18 04:19:48 rpmi: python3-module-requests-2.25.1-alt2 sisyphus+267359.100.1.1 1614881487 installed <13>Sep 18 04:19:48 rpmi: python3-module-pytz-1:2021.1-alt1 sisyphus+267903.400.1.1 1615896636 installed <13>Sep 18 04:19:49 rpmi: python3-module-babel-1:2.9.1-alt1 sisyphus+282703.100.1.1 1628975529 installed <13>Sep 18 04:19:49 rpmi: python-sphinx-objects.inv-1:2.3.11.20210827-alt1 sisyphus+284152.100.1.1 1630288849 installed <13>Sep 18 04:19:49 rpmi: libxslt-1.1.34-alt3 sisyphus+275636.100.1.1 1624616833 installed <13>Sep 18 04:19:49 rpmi: python3-module-html5lib-1:1.1-alt1 sisyphus+278096.120.5.1 1626086978 installed <13>Sep 18 04:19:49 rpmi: python3-module-cssselect-0.9.1-alt3 sisyphus+270533.2600.6.1 1619684675 installed <13>Sep 18 04:19:49 rpmi: python3-module-lxml-4.6.3.0.16.git5ecb40bc-alt1 sisyphus+279721.1500.1.1 1626648574 installed <13>Sep 18 04:19:49 rpmi: python3-module-docutils-0.17.1-alt1 sisyphus+271898.100.1.1 1621041818 installed <13>Sep 18 04:19:49 rpmi: python3-module-sphinxcontrib-applehelp-1.0.2-alt1 sisyphus+276002.100.2.2 1624878023 installed <13>Sep 18 04:19:49 rpmi: python3-module-sphinxcontrib-devhelp-1.0.2-alt1 sisyphus+276003.100.2.2 1624879024 installed <13>Sep 18 04:19:49 rpmi: python3-module-sphinxcontrib-htmlhelp-2.0.0-alt1 sisyphus+272876.100.1.1 1622446944 installed <13>Sep 18 04:19:49 rpmi: python3-module-sphinxcontrib-jsmath-1.0.1-alt1 sisyphus+276004.100.1.1 1624811634 installed <13>Sep 18 04:19:49 rpmi: python3-module-sphinxcontrib-qthelp-1.0.3-alt1 sisyphus+276005.100.2.2 1624879764 installed <13>Sep 18 04:19:49 rpmi: python3-module-sphinxcontrib-serializinghtml-1.1.5-alt1 sisyphus+272874.100.1.1 1622445988 installed <13>Sep 18 04:19:50 rpmi: python3-module-sphinx-1:4.0.2-alt2 sisyphus+284851.300.2.1 1631173767 installed <13>Sep 18 04:19:50 rpmi: libpython-2.7.18-alt7 sisyphus+284067.100.1.1 1630124748 installed <13>Sep 18 04:19:50 rpmi: python2-base-2.7.18-alt7 sisyphus+284067.100.1.1 1630124748 installed <13>Sep 18 04:19:50 rpmi: python-modules-encodings-2.7.18-alt7 sisyphus+284067.100.1.1 1630124748 installed <13>Sep 18 04:19:50 rpmi: python-modules-compiler-2.7.18-alt7 sisyphus+284067.100.1.1 1630124748 installed <13>Sep 18 04:19:50 rpmi: python-modules-email-2.7.18-alt7 sisyphus+284067.100.1.1 1630124748 installed <13>Sep 18 04:19:50 rpmi: python-modules-unittest-2.7.18-alt7 sisyphus+284067.100.1.1 1630124748 installed <13>Sep 18 04:19:50 rpmi: python-modules-2.7.18-alt7 sisyphus+284067.100.1.1 1630124748 installed <13>Sep 18 04:19:50 rpmi: python-modules-ctypes-2.7.18-alt7 sisyphus+284067.100.1.1 1630124748 installed <13>Sep 18 04:19:50 rpmi: python-modules-multiprocessing-2.7.18-alt7 sisyphus+284067.100.1.1 1630124748 installed <13>Sep 18 04:19:50 rpmi: python-modules-logging-2.7.18-alt7 sisyphus+284067.100.1.1 1630124748 installed <13>Sep 18 04:19:50 rpmi: python-tools-2to3-2.7.18-alt7 sisyphus+284067.100.1.1 1630124748 installed Building target platforms: x86_64 Building for target x86_64 Wrote: /usr/src/in/nosrpm/python3-module-flup-1.0.3-alt3.hg20120223.1.2.nosrc.rpm (w1.gzdio) <13>Sep 18 04:19:52 rpmi: libncurses-6.2.20210123-alt2 sisyphus+283886.200.2.1 1630022599 installed <13>Sep 18 04:19:52 rpmi: libtinfo-devel-6.2.20210123-alt2 sisyphus+283886.200.2.1 1630022599 installed <13>Sep 18 04:19:52 rpmi: libncurses-devel-6.2.20210123-alt2 sisyphus+283886.200.2.1 1630022599 installed <13>Sep 18 04:19:53 rpmi: python3-dev-3.9.7-alt1 sisyphus+285382.100.1.1 1631825257 installed <13>Sep 18 04:19:53 rpmi: python3-module-setuptools-1:58.0.4-alt1 sisyphus+284960.300.5.1 1631868702 installed Installing python3-module-flup-1.0.3-alt3.hg20120223.1.2.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.16116 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python3-module-flup-1.0.3 + echo 'Source #0 (flup.tar.bz2):' Source #0 (flup.tar.bz2): + /bin/bzip2 -dc /usr/src/RPM/SOURCES/flup.tar.bz2 + /bin/tar -xf - + cd python3-module-flup-1.0.3 + /bin/chmod -c -Rf u+rwX,go-w . + install -pm644 /usr/share/python-sphinx/objects.inv docs/source/ + '[' -e docs/source/conf.py ']' + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.77097 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python3-module-flup-1.0.3 + find -type f -name '*.py' -exec 2to3 -w '{}' + RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: No changes to ./setup.py RefactoringTool: Refactored ./flup/server/threadpool.py RefactoringTool: Refactored ./flup/server/threadedserver.py RefactoringTool: Refactored ./flup/server/singleserver.py RefactoringTool: Refactored ./flup/server/scgi_fork.py --- ./flup/server/threadpool.py (original) +++ ./flup/server/threadpool.py (refactored) @@ -28,7 +28,7 @@ __version__ = '$Revision$' import sys -import thread +import _thread import threading class ThreadPool(object): @@ -38,7 +38,7 @@ the number of threads that can be started, but this can be controlled by maxThreads. """ - def __init__(self, minSpare=1, maxSpare=5, maxThreads=sys.maxint): + def __init__(self, minSpare=1, maxSpare=5, maxThreads=sys.maxsize): self._minSpare = minSpare self._maxSpare = maxSpare self._maxThreads = max(minSpare, maxThreads) @@ -92,7 +92,7 @@ self._workerCount < self._maxThreads: try: self._start_new_thread() - except thread.error: + except _thread.error: return False self._workerCount += 1 self._idleCount += 1 --- ./flup/server/threadedserver.py (original) +++ ./flup/server/threadedserver.py (refactored) @@ -74,7 +74,7 @@ while self._keepGoing: try: r, w, e = select.select([sock], [], [], timeout) - except select.error, e: + except select.error as e: if e[0] == errno.EINTR: continue raise @@ -82,7 +82,7 @@ if r: try: clientSock, addr = sock.accept() - except socket.error, e: + except socket.error as e: if e[0] in (errno.EINTR, errno.EAGAIN): continue raise @@ -167,12 +167,12 @@ self._sock = sock self._addr = addr def run(self): - print "Client connection opened from %s:%d" % self._addr + print("Client connection opened from %s:%d" % self._addr) self._sock.send('Hello World!\n') self._sock.setblocking(1) self._sock.recv(1) self._sock.close() - print "Client connection closed from %s:%d" % self._addr + print("Client connection closed from %s:%d" % self._addr) sock = socket.socket() sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) sock.bind(('', 8080)) --- ./flup/server/singleserver.py (original) +++ ./flup/server/singleserver.py (refactored) @@ -70,7 +70,7 @@ while self._keepGoing: try: r, w, e = select.select([sock], [], [], timeout) - except select.error, e: + except select.error as e: if e[0] == errno.EINTR: continue raise @@ -78,7 +78,7 @@ if r: try: clientSock, addr = sock.accept() - except socket.error, e: + except socket.error as e: if e[0] in (errno.EINTR, errno.EAGAIN): continue raise @@ -153,12 +153,12 @@ self._sock = sock self._addr = addr def run(self): - print "Client connection opened from %s:%d" % self._addr + print("Client connection opened from %s:%d" % self._addr) self._sock.send('Hello World!\n') self._sock.setblocking(1) self._sock.recv(1) self._sock.close() - print "Client connection closed from %s:%d" % self._addr + print("Client connection closed from %s:%d" % self._addr) sock = socket.socket() sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) sock.bind(('', 8080)) --- ./flup/server/scgi_fork.py (original) +++ ./flup/server/scgi_fork.py (refactored) @@ -135,7 +135,7 @@ loggingLevel=loggingLevel, debug=debug) for key in ('multithreaded', 'multiprocess', 'jobClass', 'jobArgs'): - if kw.has_key(key): + if key in kw: del kw[key] RefactoringTool: Refactored ./flup/server/scgi_base.py PreforkServer.__init__(self, jobClass=Connection, @@ -151,7 +151,7 @@ try: sock = self._setupSocket() - except socket.error, e: + except socket.error as e: self.logger.error('Failed to bind socket (%s), exiting', e[1]) return False @@ -167,17 +167,17 @@ if __name__ == '__main__': def test_app(environ, start_response): """Probably not the most efficient example.""" - import cgi + from . import cgi start_response('200 OK', [('Content-Type', 'text/html')]) yield 'Hello World!\n' \ '\n' \ '

Hello World!

\n' \ '' - names = environ.keys() + names = list(environ.keys()) names.sort() for name in names: yield '\n' % ( - name, cgi.escape(`environ[name]`)) + name, cgi.escape(repr(environ[name]))) form = cgi.FieldStorage(fp=environ['wsgi.input'], environ=environ, keep_blank_values=1) --- ./flup/server/scgi_base.py (original) +++ ./flup/server/scgi_base.py (refactored) @@ -32,7 +32,7 @@ import socket import select import errno -import cStringIO as StringIO +import io as StringIO import signal import datetime import os @@ -41,7 +41,7 @@ # Threads are required. If you want a non-threaded (forking) version, look at # SWAP . -import thread +import _thread import threading __all__ = ['BaseSCGIServer'] @@ -76,7 +76,7 @@ while length: try: data = sock.recv(length) - except socket.error, e: + except socket.error as e: if e[0] == errno.EAGAIN: select.select([sock], [], []) continue @@ -99,7 +99,7 @@ while True: try: c = sock.recv(1) - except socket.error, e: + except socket.error as e: if e[0] == errno.EAGAIN: select.select([sock], [], []) continue @@ -117,7 +117,7 @@ if size < 0: raise ValueError except ValueError: - raise ProtocolError, 'invalid netstring length' + raise ProtocolError('invalid netstring length') # Now read the string. s, length = recvall(sock, size) @@ -132,7 +132,7 @@ raise EOFError if trailer != ',': - raise ProtocolError, 'invalid netstring trailer' + raise ProtocolError('invalid netstring trailer') return s @@ -229,7 +229,7 @@ self.processInput() except (EOFError, KeyboardInterrupt): pass - except ProtocolError, e: + except ProtocolError as e: self.logger.error("Protocol error '%s'", str(e)) except: self.logger.exception('Exception caught in Connection') @@ -246,20 +246,20 @@ headers = readNetstring(self._sock) headers = headers.split('\x00')[:-1] if len(headers) % 2 != 0: - raise ProtocolError, 'invalid headers' + raise ProtocolError('invalid headers') environ = {} for i in range(len(headers) / 2): environ[headers[2*i]] = headers[2*i+1] clen = environ.get('CONTENT_LENGTH') if clen is None: - raise ProtocolError, 'missing CONTENT_LENGTH' + raise ProtocolError('missing CONTENT_LENGTH') try: clen = int(clen) if clen < 0: raise ValueError except ValueError: - raise ProtocolError, 'invalid CONTENT_LENGTH' + raise ProtocolError('invalid CONTENT_LENGTH') self._sock.setblocking(1) if clen: @@ -348,7 +348,7 @@ self._allowedServers = allowedServers # Used to force single-threadedness. - self._appLock = thread.allocate_lock() + self._appLock = _thread.allocate_lock() self.logger = logging.getLogger(RefactoringTool: Refactored ./flup/server/scgi.py RefactoringTool: Refactored ./flup/server/preforkserver.py LoggerName) self.logger.setLevel(loggingLevel) @@ -451,7 +451,7 @@ try: if headers_sent: # Re-raise if too late - raise exc_info[0], exc_info[1], exc_info[2] + raise exc_info[0](exc_info[1]).with_traceback(exc_info[2]) finally: exc_info = None # avoid dangling circular ref else: @@ -484,7 +484,7 @@ finally: if hasattr(result, 'close'): result.close() - except socket.error, e: + except socket.error as e: if e[0] != errno.EPIPE: raise # Don't let EPIPE propagate beyond server finally: @@ -494,11 +494,11 @@ def _sanitizeEnv(self, environ): """Fill-in/deduce missing values in environ.""" reqUri = None - if environ.has_key('REQUEST_URI'): + if 'REQUEST_URI' in environ: reqUri = environ['REQUEST_URI'].split('?', 1) # Ensure QUERY_STRING exists - if not environ.has_key('QUERY_STRING') or not environ['QUERY_STRING']: + if 'QUERY_STRING' not in environ or not environ['QUERY_STRING']: if reqUri is not None and len(reqUri) > 1: environ['QUERY_STRING'] = reqUri[1] else: @@ -521,9 +521,9 @@ if scriptName is NoDefault: # Pull SCRIPT_NAME/PATH_INFO from environment, with empty defaults - if not environ.has_key('SCRIPT_NAME'): + if 'SCRIPT_NAME' not in environ: environ['SCRIPT_NAME'] = '' - if not environ.has_key('PATH_INFO') or not environ['PATH_INFO']: + if 'PATH_INFO' not in environ or not environ['PATH_INFO']: if reqUri is not None: scriptName = environ['SCRIPT_NAME'] if not reqUri[0].startswith(scriptName): --- ./flup/server/scgi.py (original) +++ ./flup/server/scgi.py (refactored) @@ -136,7 +136,7 @@ loggingLevel=loggingLevel, debug=debug) for key in ('jobClass', 'jobArgs'): - if kw.has_key(key): + if key in kw: del kw[key] ThreadedServer.__init__(self, jobClass=Connection, jobArgs=(self, None), **kw) @@ -151,7 +151,7 @@ try: sock = self._setupSocket() - except socket.error, e: + except socket.error as e: self.logger.error('Failed to bind socket (%s), exiting', e[1]) return False @@ -168,17 +168,17 @@ if __name__ == '__main__': def test_app(environ, start_response): """Probably not the most efficient example.""" - import cgi + from . import cgi start_response('200 OK', [('Content-Type', 'text/html')]) yield 'Hello World!\n' \ '\n' \ '

Hello World!

\n' \ '
%s%s
' - names = environ.keys() + names = list(environ.keys()) names.sort() for name in names: yield '\n' % ( - name, cgi.escape(`environ[name]`)) + name, cgi.escape(repr(environ[name]))) form = cgi.FieldStorage(fp=environ['wsgi.input'], environ=environ, keep_blank_values=1) --- ./flup/server/preforkserver.py (original) +++ ./flup/server/preforkserver.py (refactored) @@ -52,7 +52,7 @@ import eunuchs.socketpair except ImportError: # TODO: Other alternatives? Perhaps using os.pipe()? - raise ImportError, 'Requires eunuchs module for Python < 2.4' + raise ImportError('Requires eunuchs module for Python < 2.4') def socketpair(): s1, s2 = eunuchs.socketpair.socketpair() @@ -146,7 +146,7 @@ if not self._spawnChild(sock): break # Wait on any socket activity from live children. - r = [x['file'] for x in self._children.values() + r = [x['file'] for x in list(self._children.values()) if x['file'] is not None] if len(r) == len(self._children) and not self._children_to_purge: @@ -162,7 +162,7 @@ w = [x for x in self._children_to_purge if x.fileno() != -1] try: r, w, e = select.select(r, w, [], timeout) - except select.error, e: + except select.error as e: if e[0] != errno.EINTR: raise @@ -171,13 +171,13 @@ # Receive status byte. try: state = child.recv(1) - except socket.error, e: + except socket.error as e: if e[0] in (errno.EAGAIN, errno.EINTR): # Guess it really didn't need attention? continue raise # Try to match it with a child. (Do we need a reverse map?) - for pid,d in self._children.items(): + for pid,d in list(self._children.items()): if child is d['file']: if state: # Set availability status accordingly. @@ -197,7 +197,7 @@ self._last_purge = time.time() # Try to match it with a child. (Do we need a reverse map?) - for pid,d in self._children.items(): + for pid,d in list(self._children.items()): if child is d['file']: d['file'].close() d['file'] = None @@ -208,7 +208,7 @@ self._reapChildren() # See who and how many children are available. - availList = filter(lambda x: x[1]['avail'], self._children.items()) + availList = [x for x in list(self._children.items()) if x[1]['avail']] avail = len(availList) if avail < self._minSpare: @@ -246,7 +246,7 @@ Any children remaining after 10 seconds is SIGKILLed. """ # Let all children know it's time to go. - for pid,d in self._children.items(): + for pid,d in list(self._children.items()): if d['file'] is not None: d['file'].close() d['file'] = None @@ -254,7 +254,7 @@ # Child is unavailable. SIGINT it. try: os.kill(pid, signal.SIGINT) - except OSError, e: + except OSError as e: if e[0] != errno.ESRCH: raise @@ -270,20 +270,20 @@ while len(self._children): try: pid, status = os.wait() - except OSError, e: + except OSError as e: if e[0] in (errno.ECHILD, errno.EINTR): break - if self._children.has_key(pid): + if pid in self._children: del self._children[pid] signal.alarm(0) signal.signal(signal.SIGALRM, oldSIGALRM) # Forcefully kill any remaining children. - for pid in self._children.keys(): + for pid in list(self._children.keys()): try: os.kill(pid, signal.SIGKILL) - except OSError, e: + except OSError as e: if e[0] != errno.ESRCH: raise @@ -292,13 +292,13 @@ while True: try: pid, status = os.waitpid(-1, os.WNOHANG) - except OSError, e: + except OSError as e: if e[0] == errno.ECHILD: break raise if pid <= 0: break - if self._children.has_key(pid): # Sanity check. + if pid in self._children: # Sanity check. if self._children[pid]['file'] is not None: self._childRefactoringTool: Refactored ./flup/server/paste_factory.py RefactoringTool: Refactored ./flup/server/fcgi_single.py ren[pid]['file'].close() self._children[pid]['file'] = None @@ -317,7 +317,7 @@ setCloseOnExec(child) try: pid = os.fork() - except OSError, e: + except OSError as e: if e[0] in (errno.EAGAIN, errno.ENOMEM): return False # Can't fork anymore. raise @@ -330,7 +330,7 @@ # Restore signal handlers. self._restoreSignalHandlers() # Close copies of child sockets. - for f in [x['file'] for x in self._children.values() + for f in [x['file'] for x in list(self._children.values()) if x['file'] is not None]: f.close() self._children = {} @@ -358,7 +358,7 @@ try: parent.send(msg) return True - except socket.error, e: + except socket.error as e: if e[0] == errno.EPIPE: return False # Parent is gone if e[0] == errno.EAGAIN: @@ -397,7 +397,7 @@ # Otherwise, there's activity on the main socket... try: clientSock, addr = sock.accept() - except socket.error, e: + except socket.error as e: if e[0] == errno.EAGAIN: # Or maybe not. continue @@ -440,7 +440,7 @@ pass def _usr1Handler(self, signum, frame): - self._children_to_purge = [x['file'] for x in self._children.values() + self._children_to_purge = [x['file'] for x in list(self._children.values()) if x['file'] is not None] def _installSignalHandlers(self): @@ -471,12 +471,12 @@ self._sock = sock self._addr = addr def run(self): - print "Client connection opened from %s:%d" % self._addr + print("Client connection opened from %s:%d" % self._addr) self._sock.send('Hello World!\n') self._sock.setblocking(1) self._sock.recv(1) self._sock.close() - print "Client connection closed from %s:%d" % self._addr + print("Client connection closed from %s:%d" % self._addr) sock = socket.socket() sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) sock.bind(('', 8080)) --- ./flup/server/paste_factory.py (original) +++ ./flup/server/paste_factory.py (refactored) @@ -4,7 +4,7 @@ from flup.server import NoDefault def asbool(obj): - if isinstance(obj, (str, unicode)): + if isinstance(obj, str): obj = obj.strip().lower() if obj in ['true', 'yes', 'on', 'y', 't', '1']: return True @@ -16,7 +16,7 @@ return bool(obj) def aslist(obj, sep=None, strip=True): - if isinstance(obj, (str, unicode)): + if isinstance(obj, str): lst = obj.split(sep) if strip: lst = [v.strip() for v in lst] --- ./flup/server/fcgi_single.py (original) +++ ./flup/server/fcgi_single.py (refactored) @@ -90,7 +90,7 @@ roles=roles, forceCGI=forceCGI) for key in ('jobClass', 'jobArgs'): - if kw.has_key(key): + if key in kw: del kw[key] SingleServer.__init__(self, jobClass=self._connectionClass, jobArgs=(self, None), **kw) @@ -111,8 +111,7 @@ """ self._web_server_addrs = os.environ.get('FCGI_WEB_SERVER_ADDRS') if self._web_server_addrs is not None: - self._web_server_addrs = map(lambda x: x.strip(), - self._web_server_addrs.split(',')) + self._web_server_addrs = [x.strip() for x in self._web_server_addrs.split(',')] sock = self._setupSocket() @@ -125,17 +124,17 @@ if __name__ == '__main__': def test_app(environ, start_response): """Probably not the most efficient example.""" - import cgi + from . imporRefactoringTool: Refactored ./flup/server/fcgi_fork.py RefactoringTool: Refactored ./flup/server/fcgi_base.py t cgi start_response('200 OK', [('Content-Type', 'text/html')]) yield 'Hello World!\n' \ '\n' \ '

Hello World!

\n' \ '
%s%s
' - names = environ.keys() + names = list(environ.keys()) names.sort() for name in names: yield '\n' % ( - name, cgi.escape(`environ[name]`)) + name, cgi.escape(repr(environ[name]))) form = cgi.FieldStorage(fp=environ['wsgi.input'], environ=environ, keep_blank_values=1) --- ./flup/server/fcgi_fork.py (original) +++ ./flup/server/fcgi_fork.py (refactored) @@ -97,7 +97,7 @@ roles=roles, forceCGI=forceCGI) for key in ('multithreaded', 'multiprocess', 'jobClass', 'jobArgs'): - if kw.has_key(key): + if key in kw: del kw[key] PreforkServer.__init__(self, jobClass=self._connectionClass, jobArgs=(self, timeout), **kw) @@ -132,8 +132,7 @@ """ self._web_server_addrs = os.environ.get('FCGI_WEB_SERVER_ADDRS') if self._web_server_addrs is not None: - self._web_server_addrs = map(lambda x: x.strip(), - self._web_server_addrs.split(',')) + self._web_server_addrs = [x.strip() for x in self._web_server_addrs.split(',')] sock = self._setupSocket() @@ -146,17 +145,17 @@ if __name__ == '__main__': def test_app(environ, start_response): """Probably not the most efficient example.""" - import cgi + from . import cgi start_response('200 OK', [('Content-Type', 'text/html')]) yield 'Hello World!\n' \ '\n' \ '

Hello World!

\n' \ '
%s%s
' - names = environ.keys() + names = list(environ.keys()) names.sort() for name in names: yield '\n' % ( - name, cgi.escape(`environ[name]`)) + name, cgi.escape(repr(environ[name]))) form = cgi.FieldStorage(fp=environ['wsgi.input'], environ=environ, keep_blank_values=1) --- ./flup/server/fcgi_base.py (original) +++ ./flup/server/fcgi_base.py (refactored) @@ -31,18 +31,18 @@ import os import signal import struct -import cStringIO as StringIO +import io as StringIO import select import socket import errno import traceback try: - import thread + import _thread import threading thread_available = True except ImportError: - import dummy_thread as thread + import _dummy_thread as thread import dummy_threading as threading thread_available = False @@ -218,7 +218,7 @@ def __iter__(self): return self - def next(self): + def __next__(self): r = self.readline() if not r: raise StopIteration @@ -414,13 +414,13 @@ if nameLength < 128: s = chr(nameLength) else: - s = struct.pack('!L', nameLength | 0x80000000L) + s = struct.pack('!L', nameLength | 0x80000000) valueLength = len(value) if valueLength < 128: s += chr(valueLength) else: - s += struct.pack('!L', valueLength | 0x80000000L) + s += struct.pack('!L', valueLength | 0x80000000) return s + name + value @@ -448,7 +448,7 @@ while length: try: data = sock.recv(length) - except socket.error, e: + except socket.error as e: if e[0] == errno.EAGAIN: select.select([sock], [], []) continue @@ -505,7 +505,7 @@ while length: try: sent = sock.send(data) - except socket.error, e: + except socket.error as e: if e[0] == errno.EAGAIN: select.select([], [sock], []) continue @@ -591,11 +591,11 @@ try: self._flush() self._end(appStatus, protocolStatus) - except socket.error, e: + except socket.error as e: if e[0] != errno.EPIPE: raise - def _end(self, appStatus=0L, protocolStatus=FCGI_REQUEST_COMPLETE): + def _end(self, appStatus=0, protocolStatus=FCGI_REQUEST_COMPLETE): self._conn.end_request(self, appStatus, protocolStatus) def _flush(self): @@ -619,7 +619,7 @@ self.data = StringIO.StringIO() self._timeout = 0 - def _end(self, appStatus=0L, protocolStatus=FCGI_REQUEST_COMPLETE): + def _end(self, appStatus=0, protocolStatus=FCGI_REQUEST_COMPLETE): sys.exit(appStatus) def _flush(self): @@ -669,7 +669,7 @@ self.process_input() except (EOFError, KeyboardInterrupt): break - except (select.error, socket.error), e: + except (select.error, socket.error) as e: if e[0] == errno.EBADF: # Socket was closed by Request. break raise @@ -719,7 +719,7 @@ """ rec.write(self._sock) - def end_request(self, req, appStatus=0L, + def end_request(self, req, appStatus=0, protocolStatus=FCGI_REQUEST_COMPLETE, remove=True): """ End a Request. @@ -769,7 +769,7 @@ if not self._multiplexed and self._requests: # Can't multiplex requests. - self.end_request(req, 0L, FCGI_CANT_MPX_CONN, remove=False) + self.end_request(req, 0, FCGI_CANT_MPX_CONN, remove=False) else: self._requests[inrec.requestId] = req @@ -861,7 +861,7 @@ finally: self._lock.release() - def end_request(self, req, appStatus=0L, + def end_request(self, req, appStatus=0, protocolStatus=FCGI_REQUEST_COMPLETE, remove=True): self._lock.acquire() try: @@ -888,9 +888,9 @@ def _start_request(self, req): try: - thread.start_new_thread(req.run, ()) - except thread.error, e: - self.end_request(req, 0L, FCGI_OVERLOADED, remove=True) + _thread.start_new_thread(req.run, ()) + except _thread.error as e: + self.end_request(req, 0, FCGI_OVERLOADED, remove=True) def _do_params(self, inrec): self._lock.acquire() @@ -969,7 +969,7 @@ self._umask = umask # Used to force single-threadedness - self._appLock = thread.allocate_lock() + self._appLock = _thread.allocate_lock() if thread_available: try: @@ -1026,7 +1026,7 @@ isFCGI = True try: sock.getpeername() - except socket.error, e: + except socket.error as e: if e[0] == errno.ENOTSOCK: # Not a socket, assume CGI context. isFCGI = False @@ -1133,7 +1133,7 @@ try: if headers_sent: # Re-raise if too late - raise exc_info[0], exc_info[1], exc_info[2] + raise exc_info[0](exc_info[1]).with_traceback(exc_info[2]) finally: exc_info = None # avoid dangling circular ref else: @@ -1166,7 +1166,7 @@ finally: if hasattr(result, 'close'): result.close() - except socket.error, e: + except socket.error as e: if e[0] != errno.EPIPE: raise # Don't let EPIPE propagate beyond server finally: @@ -1177,14 +1177,14 @@ def _sanitizeEnv(self, environ): """Ensure certain values are present, if required by WSGI.""" - if not enviroRefactoringTool: Refactored ./flup/server/fcgi.py RefactoringTool: Refactored ./flup/server/cgi.py RefactoringTool: Refactored ./flup/server/ajp_fork.py n.has_key('SCRIPT_NAME'): + if 'SCRIPT_NAME' not in environ: environ['SCRIPT_NAME'] = '' reqUri = None - if environ.has_key('REQUEST_URI'): + if 'REQUEST_URI' in environ: reqUri = environ['REQUEST_URI'].split('?', 1) - if not environ.has_key('PATH_INFO') or not environ['PATH_INFO']: + if 'PATH_INFO' not in environ or not environ['PATH_INFO']: if reqUri is not None: scriptName = environ['SCRIPT_NAME'] if not reqUri[0].startswith(scriptName): @@ -1192,7 +1192,7 @@ environ['PATH_INFO'] = reqUri[0][len(scriptName):] else: environ['PATH_INFO'] = '' - if not environ.has_key('QUERY_STRING') or not environ['QUERY_STRING']: + if 'QUERY_STRING' not in environ or not environ['QUERY_STRING']: if reqUri is not None and len(reqUri) > 1: environ['QUERY_STRING'] = reqUri[1] else: @@ -1204,7 +1204,7 @@ ('SERVER_NAME', 'localhost'), ('SERVER_PORT', '80'), ('SERVER_PROTOCOL', 'HTTP/1.0')]: - if not environ.has_key(name): + if name not in environ: environ['wsgi.errors'].write('%s: missing FastCGI param %s ' 'required by WSGI!\n' % (self.__class__.__name__, name)) --- ./flup/server/fcgi.py (original) +++ ./flup/server/fcgi.py (refactored) @@ -90,7 +90,7 @@ roles=roles, forceCGI=forceCGI) for key in ('jobClass', 'jobArgs'): - if kw.has_key(key): + if key in kw: del kw[key] ThreadedServer.__init__(self, jobClass=self._connectionClass, jobArgs=(self, None), **kw) @@ -106,8 +106,7 @@ """ self._web_server_addrs = os.environ.get('FCGI_WEB_SERVER_ADDRS') if self._web_server_addrs is not None: - self._web_server_addrs = map(lambda x: x.strip(), - self._web_server_addrs.split(',')) + self._web_server_addrs = [x.strip() for x in self._web_server_addrs.split(',')] sock = self._setupSocket() @@ -121,17 +120,17 @@ if __name__ == '__main__': def test_app(environ, start_response): """Probably not the most efficient example.""" - import cgi + from . import cgi start_response('200 OK', [('Content-Type', 'text/html')]) yield 'Hello World!\n' \ '\n' \ '

Hello World!

\n' \ '
%s%s
' - names = environ.keys() + names = list(environ.keys()) names.sort() for name in names: yield '\n' % ( - name, cgi.escape(`environ[name]`)) + name, cgi.escape(repr(environ[name]))) form = cgi.FieldStorage(fp=environ['wsgi.input'], environ=environ, keep_blank_values=1) --- ./flup/server/cgi.py (original) +++ ./flup/server/cgi.py (refactored) @@ -14,7 +14,7 @@ def run(self): - environ = dict(os.environ.items()) + environ = dict(list(os.environ.items())) environ['wsgi.input'] = sys.stdin environ['wsgi.errors'] = sys.stderr environ['wsgi.version'] = (1,0) @@ -50,7 +50,7 @@ try: if headers_sent: # Re-raise original exception if headers sent - raise exc_info[0], exc_info[1], exc_info[2] + raise exc_info[0](exc_info[1]).with_traceback(exc_info[2]) finally: exc_info = None # avoid dangling circular ref elif headers_set: --- ./flup/server/ajp_fork.py (original) +++ ./flup/server/ajRefactoringTool: Refactored ./flup/server/ajp_base.py p_fork.py (refactored) @@ -139,7 +139,7 @@ loggingLevel=loggingLevel, debug=debug) for key in ('multithreaded', 'multiprocess', 'jobClass', 'jobArgs'): - if kw.has_key(key): + if key in kw: del kw[key] PreforkServer.__init__(self, jobClass=Connection, jobArgs=(self, timeout), **kw) @@ -154,7 +154,7 @@ try: sock = self._setupSocket() - except socket.error, e: + except socket.error as e: self.logger.error('Failed to bind socket (%s), exiting', e[1]) return False @@ -170,17 +170,17 @@ if __name__ == '__main__': def test_app(environ, start_response): """Probably not the most efficient example.""" - import cgi + from . import cgi start_response('200 OK', [('Content-Type', 'text/html')]) yield 'Hello World!\n' \ '\n' \ '

Hello World!

\n' \ '
%s%s
' - names = environ.keys() + names = list(environ.keys()) names.sort() for name in names: yield '\n' % ( - name, cgi.escape(`environ[name]`)) + name, cgi.escape(repr(environ[name]))) form = cgi.FieldStorage(fp=environ['wsgi.input'], environ=environ, keep_blank_values=1) --- ./flup/server/ajp_base.py (original) +++ ./flup/server/ajp_base.py (refactored) @@ -39,7 +39,7 @@ import traceback # Unfortunately, for now, threads are required. -import thread +import _thread import threading from flup.server import NoDefault @@ -170,8 +170,8 @@ return '', pos s = data[pos:pos+length] return s, pos+length+1 # Don't forget NUL - except Exception, e: - raise ProtocolError, 'decodeString: '+str(e) + except Exception as e: + raise ProtocolError('decodeString: '+str(e)) def decodeRequestHeader(data, pos=0): """Decode a request header/value pair.""" @@ -181,14 +181,14 @@ i = ord(data[pos+1]) name = requestHeaderTable[i] if name is None: - raise ValueError, 'bad request header code' + raise ValueError('bad request header code') pos += 2 else: name, pos = decodeString(data, pos) value, pos = decodeString(data, pos) return name, value, pos - except Exception, e: - raise ProtocolError, 'decodeRequestHeader: '+str(e) + except Exception as e: + raise ProtocolError('decodeRequestHeader: '+str(e)) def decodeAttribute(data, pos=0): """Decode a request attribute.""" @@ -210,11 +210,11 @@ else: name = attributeTable[i] if name is None: - raise ValueError, 'bad attribute code' + raise ValueError('bad attribute code') value, pos = decodeString(data, pos) return name, value, pos - except Exception, e: - raise ProtocolError, 'decodeAttribute: '+str(e) + except Exception as e: + raise ProtocolError('decodeAttribute: '+str(e)) def encodeString(s): """Encode a string.""" @@ -249,7 +249,7 @@ while length: try: data = sock.recv(length) - except socket.error, e: + except socket.error as e: if e[0] == errno.EAGAIN: select.select([sock], [], []) continue @@ -276,7 +276,7 @@ raise EOFError if header[:2] != SERVER_PREFIX: - raise ProtocolError, 'invalid header' + raise ProtocolError('invalid header') self.length = struct.unpack('>H', header[2:4])[0] if self.length: @@ -296,7 +296,7 @@ while length: try: sent = sock.send(data) - except socket.error, e: + eRefactoringTool: Refactored ./flup/server/ajp.py xcept socket.error as e: if e[0] == errno.EAGAIN: select.select([], [sock], []) continue @@ -427,7 +427,7 @@ def __iter__(self): return self - def next(self): + def __next__(self): r = self.readline() if not r: raise StopIteration @@ -446,12 +446,12 @@ never send us an EOF (empty string argument). """ if not data: - raise ProtocolError, 'short data' + raise ProtocolError('short data') self._bufList.append(data) length = len(data) self._avail += length if self._avail > self._length: - raise ProtocolError, 'too much data' + raise ProtocolError('too much data') class Request(object): """ @@ -626,7 +626,7 @@ while True: try: self.processInput() - except ProtocolError, e: + except ProtocolError as e: self.logger.error("Protocol error '%s'", str(e)) break except (EOFError, KeyboardInterrupt): @@ -652,7 +652,7 @@ return if not pkt.length: - raise ProtocolError, 'unexpected empty packet' + raise ProtocolError('unexpected empty packet') pkttype = pkt.data[0] if pkttype == PKTTYPE_FWD_REQ: @@ -664,7 +664,7 @@ elif pkttype == PKTTYPE_CPING: self._cping(pkt) else: - raise ProtocolError, 'unknown packet type' + raise ProtocolError('unknown packet type') def _forwardRequest(self, pkt): """ @@ -676,7 +676,7 @@ i = ord(pkt.data[1]) method = methodTable[i] if method is None: - raise ValueError, 'bad method field' + raise ValueError('bad method field') req.setMethod(method) value, pos = decodeString(pkt.data, 2) req.setProtocol(value) @@ -814,7 +814,7 @@ self._allowedServers = allowedServers # Used to force single-threadedness. - self._appLock = thread.allocate_lock() + self._appLock = _thread.allocate_lock() self.logger = logging.getLogger(LoggerName) self.logger.setLevel(loggingLevel) @@ -893,7 +893,7 @@ try: if headers_sent: # Re-raise if too late - raise exc_info[0], exc_info[1], exc_info[2] + raise exc_info[0](exc_info[1]).with_traceback(exc_info[2]) finally: exc_info = None # avoid dangling circular ref else: @@ -926,7 +926,7 @@ finally: if hasattr(result, 'close'): result.close() - except socket.error, e: + except socket.error as e: if e[0] != errno.EPIPE: raise # Don't let EPIPE propagate beyond server finally: @@ -945,10 +945,10 @@ environ['SCRIPT_NAME'] = scriptName reqUri = None - if environ.has_key('REQUEST_URI'): + if 'REQUEST_URI' in environ: reqUri = environ['REQUEST_URI'].split('?', 1) - if not environ.has_key('QUERY_STRING') or not environ['QUERY_STRING']: + if 'QUERY_STRING' not in environ or not environ['QUERY_STRING']: if reqUri is not None and len(reqUri) > 1: environ['QUERY_STRING'] = reqUri[1] else: --- ./flup/server/ajp.py (original) +++ ./flup/server/ajp.py (refactored) @@ -140,7 +140,7 @@ loggingLevel=loggingLevel, debug=debug) for key in ('jobClass', 'jobArgs'): - if kw.has_key(key): + if key in kw: del kw[key] ThreadedServer.__init__(self, jobClass=Connection, jobArgs=(self, None), **kw) @@ -155,7 +155,7 @@ try: sock = self._setupSocket() - except socRefactoringTool: No changes to ./flup/server/__init__.py RefactoringTool: Refactored ./flup/client/scgi_app.py RefactoringTool: Refactored ./flup/client/fcgi_app.py ket.error, e: + except socket.error as e: self.logger.error('Failed to bind socket (%s), exiting', e[1]) return False @@ -175,17 +175,17 @@ if __name__ == '__main__': def test_app(environ, start_response): """Probably not the most efficient example.""" - import cgi + from . import cgi start_response('200 OK', [('Content-Type', 'text/html')]) yield 'Hello World!\n' \ '\n' \ '

Hello World!

\n' \ '
%s%s
' - names = environ.keys() + names = list(environ.keys()) names.sort() for name in names: yield '\n' % ( - name, cgi.escape(`environ[name]`)) + name, cgi.escape(repr(environ[name]))) form = cgi.FieldStorage(fp=environ['wsgi.input'], environ=environ, keep_blank_values=1) --- ./flup/client/scgi_app.py (original) +++ ./flup/client/scgi_app.py (refactored) @@ -66,11 +66,11 @@ # TODO: Anything not from environ that needs to be sent also? content_length = int(environ.get('CONTENT_LENGTH') or 0) - if headers.has_key('CONTENT_LENGTH'): + if 'CONTENT_LENGTH' in headers: del headers['CONTENT_LENGTH'] headers_out = ['CONTENT_LENGTH', str(content_length), 'SCGI', '1'] - for k,v in headers.items(): + for k,v in list(headers.items()): headers_out.append(k) headers_out.append(v) headers_out.append('') # For trailing NUL @@ -137,7 +137,7 @@ return [result] def _getConnection(self): - if isinstance(self._connect, types.StringTypes): + if isinstance(self._connect, (str,)): sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) sock.connect(self._connect) elif hasattr(socket, 'create_connection'): @@ -154,7 +154,7 @@ def _defaultFilterEnviron(self, environ): result = {} - for n in environ.keys(): + for n in list(environ.keys()): for p in self._environPrefixes: if n.startswith(p): result[n] = environ[n] @@ -167,7 +167,7 @@ def _lightFilterEnviron(self, environ): result = {} - for n in environ.keys(): + for n in list(environ.keys()): if n.upper() == n: result[n] = environ[n] return result --- ./flup/client/fcgi_app.py (original) +++ ./flup/client/fcgi_app.py (refactored) @@ -137,13 +137,13 @@ if nameLength < 128: s = chr(nameLength) else: - s = struct.pack('!L', nameLength | 0x80000000L) + s = struct.pack('!L', nameLength | 0x80000000) valueLength = len(value) if valueLength < 128: s += chr(valueLength) else: - s += struct.pack('!L', valueLength | 0x80000000L) + s += struct.pack('!L', valueLength | 0x80000000) return s + name + value @@ -171,7 +171,7 @@ while length: try: data = sock.recv(length) - except socket.error, e: + except socket.error as e: if e[0] == errno.EAGAIN: select.select([sock], [], []) continue @@ -228,7 +228,7 @@ while length: try: sent = sock.send(data) - except socket.error, e: + except socket.error as e: if e[0] == errno.EAGAIN: select.select([], [sock], []) continue @@ -387,7 +387,7 @@ if self._connect is not None: # The simple case. Create a socket and connect to the # application. - if isinstance(self._connect, types.StringTypes): + if isinstance(self._connect, (str,)): sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) sock.connect(self._connect) RefactoringTool: Refactored ./ez_setup.py elif hasattr(socket, 'create_connection'): @@ -398,7 +398,7 @@ return sock # To be done when I have more time... - raise NotImplementedError, 'Launching and managing FastCGI programs not yet implemented' + raise NotImplementedError('Launching and managing FastCGI programs not yet implemented') def _fcgiGetValues(self, sock, vars): # Construct FCGI_GET_VALUES record @@ -425,7 +425,7 @@ def _fcgiParams(self, sock, requestId, params): rec = Record(FCGI_PARAMS, requestId) data = [] - for name,value in params.items(): + for name,value in list(params.items()): data.append(encode_pair(name, value)) data = ''.join(data) rec.contentData = data @@ -439,7 +439,7 @@ def _defaultFilterEnviron(self, environ): result = {} - for n in environ.keys(): + for n in list(environ.keys()): for p in self._environPrefixes: if n.startswith(p): result[n] = environ[n] @@ -452,7 +452,7 @@ def _lightFilterEnviron(self, environ): result = {} - for n in environ.keys(): + for n in list(environ.keys()): if n.upper() == n: result[n] = environ[n] return result --- ./ez_setup.py (original) +++ ./ez_setup.py (refactored) @@ -62,10 +62,10 @@ if egg_name in md5_data: digest = md5(data).hexdigest() if digest != md5_data[egg_name]: - print >>sys.stderr, ( + print(( "md5 validation of %s failed! (Possible download problem?)" % egg_name - ) + ), file=sys.stderr) sys.exit(2) return data @@ -95,14 +95,14 @@ return do_download() try: pkg_resources.require("setuptools>="+version); return - except pkg_resources.VersionConflict, e: + except pkg_resources.VersionConflict as e: if was_imported: - print >>sys.stderr, ( + print(( "The required version of setuptools (>=%s) is not available, and\n" "can't be installed while this script is running. Please install\n" " a more recent version first, using 'easy_install -U setuptools'." "\n\n(Currently using %r)" - ) % (version, e.args[0]) + ) % (version, e.args[0]), file=sys.stderr) sys.exit(2) else: del pkg_resources, sys.modules['pkg_resources'] # reload ok @@ -121,7 +121,7 @@ with a '/'). `to_dir` is the directory where the egg will be downloaded. `delay` is the number of seconds to pause before an actual download attempt. """ - import urllib2, shutil + import urllib.request, urllib.error, urllib.parse, shutil egg_name = "setuptools-%s-py%s.egg" % (version,sys.version[:3]) url = download_base + egg_name saveto = os.path.join(to_dir, egg_name) @@ -147,7 +147,7 @@ version, download_base, delay, url ); from time import sleep; sleep(delay) log.warn("Downloading %s", url) - src = urllib2.urlopen(url) + src = urllib.request.urlopen(url) # Read/write all in one block, so we don't create a corrupt file # if the download is interrupted. data = _validate_md5(egg_name, src.read()) @@ -208,10 +208,10 @@ os.unlink(egg) else: if setuptools.__version__ == '0.0.1': - print >>sys.stderr, ( + print(( "You have an obsolete version of setuptools installed. Please\n" "remove it from your system entirely before rerunning this script." - ) + ), file=sys.stderr) sys.exit(2) req = "setuptools>="+version @@ -230,8 +230,8 @@ from setuptools.command.easy_install import main main(argv) else: - print "Setuptools version",version,"or greater has been installed." - RefactoringTool: Refactored ./docs/source/conf.py RefactoringTool: Files that were modified: RefactoringTool: ./setup.py RefactoringTool: ./flup/server/threadpool.py RefactoringTool: ./flup/server/threadedserver.py RefactoringTool: ./flup/server/singleserver.py RefactoringTool: ./flup/server/scgi_fork.py RefactoringTool: ./flup/server/scgi_base.py RefactoringTool: ./flup/server/scgi.py RefactoringTool: ./flup/server/preforkserver.py RefactoringTool: ./flup/server/paste_factory.py RefactoringTool: ./flup/server/fcgi_single.py RefactoringTool: ./flup/server/fcgi_fork.py RefactoringTool: ./flup/server/fcgi_base.py RefactoringTool: ./flup/server/fcgi.py RefactoringTool: ./flup/server/cgi.py RefactoringTool: ./flup/server/ajp_fork.py RefactoringTool: ./flup/server/ajp_base.py RefactoringTool: ./flup/server/ajp.py RefactoringTool: ./flup/server/__init__.py RefactoringTool: ./flup/client/scgi_app.py RefactoringTool: ./flup/client/fcgi_app.py RefactoringTool: ./ez_setup.py RefactoringTool: ./docs/source/conf.py print '(Run "ez_setup.py -U setuptools" to reinstall or upgrade.)' + print("Setuptools version",version,"or greater has been installed.") + print('(Run "ez_setup.py -U setuptools" to reinstall or upgrade.)') def update_md5(filenames): """Update our built-in md5 registry""" @@ -244,7 +244,7 @@ md5_data[base] = md5(f.read()).hexdigest() f.close() - data = [" %r: %r,\n" % it for it in md5_data.items()] + data = [" %r: %r,\n" % it for it in list(md5_data.items())] data.sort() repl = "".join(data) @@ -254,7 +254,7 @@ match = re.search("\nmd5_data = {\n([^}]+)}", src) if not match: - print >>sys.stderr, "Internal error!" + print("Internal error!", file=sys.stderr) sys.exit(2) src = src[:match.start(1)] + repl + src[match.end(1):] --- ./docs/source/conf.py (original) +++ ./docs/source/conf.py (refactored) @@ -38,8 +38,8 @@ master_doc = 'index' # General information about the project. -project = u'flup' -copyright = u'2009, Allan Saddi' +project = 'flup' +copyright = '2009, Allan Saddi' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the @@ -173,8 +173,8 @@ # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, author, documentclass [howto/manual]). latex_documents = [ - ('index', 'flup.tex', u'flup Documentation', - u'Allan Saddi', 'manual'), + ('index', 'flup.tex', 'flup Documentation', + 'Allan Saddi', 'manual'), ] # The name of an image file (relative to this directory) to place at the top of + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export FFLAGS + /usr/bin/python3 setup.py build running build running build_py creating build creating build/lib creating build/lib/flup copying flup/__init__.py -> build/lib/flup creating build/lib/flup/server copying flup/server/ajp.py -> build/lib/flup/server copying flup/server/ajp_base.py -> build/lib/flup/server copying flup/server/ajp_fork.py -> build/lib/flup/server copying flup/server/cgi.py -> build/lib/flup/server copying flup/server/fcgi.py -> build/lib/flup/server copying flup/server/fcgi_base.py -> build/lib/flup/server copying flup/server/fcgi_fork.py -> build/lib/flup/server copying flup/server/fcgi_single.py -> build/lib/flup/server copying flup/server/paste_factory.py -> build/lib/flup/server copying flup/server/preforkserver.py -> build/lib/flup/server copying flup/server/scgi.py -> build/lib/flup/server copying flup/server/scgi_base.py -> build/lib/flup/server copying flup/server/scgi_fork.py -> build/lib/flup/server copying flup/server/singleserver.py -> build/lib/flup/server copying flup/server/threadedserver.py -> build/lib/flup/server copying flup/server/threadpool.py -> build/lib/flup/server copying flup/server/__init__.py -> build/lib/flup/server creating build/lib/flup/client copying flup/client/fcgi_app.py -> build/lib/flup/client copying flup/client/scgi_app.py -> build/lib/flup/client copying flup/client/__init__.py -> build/lib/flup/client + make SPHINXBUILD=sphinx-build-3 -C docs pickle make: Entering directory '/usr/src/RPM/BUILD/python3-module-flup-1.0.3/docs' sphinx-build-3 -b pickle -d build/doctrees source build/pickle Running Sphinx v4.0.2 making output directory... done WARNING: html_static_path entry '_static' does not exist building [mo]: targets for 0 po files that are out of date building [pickle]: targets for 17 source files that are out of date updating environment: [new config] 17 added, 0 changed, 0 removed reading sources... [ 5%] index reading sources... [ 11%] modules/flup.server.ajp reading sources... [ 17%] modules/flup.server.ajp_base reading sources... [ 23%] modules/flup.server.ajp_fork reading sources... [ 29%] modules/flup.server.cgi reading sources... [ 35%] modules/flup.server.fcgi reading sources... [ 41%] modules/flup.server.fcgi_base reading sources... [ 47%] modules/flup.server.fcgi_fork reading sources... [ 52%] modules/flup.server.fcgi_single reading sources... [ 58%] modules/flup.server.paste_factory reading sources... [ 64%] modules/flup.server.preforkserver reading sources... [ 70%] modules/flup.server.scgi reading sources... [ 76%] modules/flup.server.scgi_base reading sources... [ 82%] modules/flup.server.scgi_fork reading sources... [ 88%] modules/flup.server.singleserver reading sources... [ 94%] modules/flup.server.threadedserver reading sources... [100%] modules/flup.server.threadpool looking for now-outdated files... none found pickling environment... done checking consistency... done preparing documents... done writing output... [ 5%] index writing output... [ 11%] modules/flup.server.ajp writing output... [ 17%] modules/flup.server.ajp_base writing output... [ 23%] modules/flup.server.ajp_fork writing output... [ 29%] modules/flup.server.cgi writing output... [ 35%] modules/flup.server.fcgi writing output... [ 41%] modules/flup.server.fcgi_base writing output... [ 47%] modules/flup.server.fcgi_fork writing output... [ 52%] modules/flup.server.fcgi_single writing output... [ 58%] modules/flup.server.paste_factory writing output... [ 64%] modules/flup.server.preforkserver writing output... [ 70%] modules/flup.server.scgi writing output... [ 76%] modules/flup.server.scgi_base writing output... [ 82%] modules/flup.server.scgi_fork writing output... [ 88%] modules/flup.server.singleserver writing output... [ 94%] modules/flup.server.threadedserver writing output... [100%] modules/flup.server.threadpool generating indices... genindex py-modindex done writing additional pages... search opensearch done copying static files... done copying extra files... done dumping search index in English (code: en)... done dumping object inventory... done build succeeded, 1 warning. You can now process the pickle files in build/pickle. Build finished; now you can process the pickle files. make: Leaving directory '/usr/src/RPM/BUILD/python3-module-flup-1.0.3/docs' + make SPHINXBUILD=sphinx-build-3 -C docs html make: Entering directory '/usr/src/RPM/BUILD/python3-module-flup-1.0.3/docs' sphinx-build-3 -b html -d build/doctrees source build/html Running Sphinx v4.0.2 making output directory... done WARNING: html_static_path entry '_static' does not exist loading pickled environment... done building [mo]: targets for 0 po files that are out of date building [html]: targets for 17 source files that are out of date updating environment: 0 added, 0 changed, 0 removed looking for now-outdated files... none found preparing documents... done writing output... [ 5%] index writing output... [ 11%] modules/flup.server.ajp writing output... [ 17%] modules/flup.server.ajp_base writing output... [ 23%] modules/flup.server.ajp_fork writing output... [ 29%] modules/flup.server.cgi writing output... [ 35%] modules/flup.server.fcgi writing output... [ 41%] modules/flup.server.fcgi_base writing output... [ 47%] modules/flup.server.fcgi_fork writing output... [ 52%] modules/flup.server.fcgi_single writing output... [ 58%] modules/flup.server.paste_factory writing output... [ 64%] modules/flup.server.preforkserver writing output... [ 70%] modules/flup.server.scgi writing output... [ 76%] modules/flup.server.scgi_base writing output... [ 82%] modules/flup.server.scgi_fork writing output... [ 88%] modules/flup.server.singleserver writing output... [ 94%] modules/flup.server.threadedserver writing output... [100%] modules/flup.server.threadpool generating indices... genindex py-modindex done writing additional pages... search opensearch done copying static files... done copying extra files... done dumping search index in English (code: en)... done dumping object inventory... done build succeeded, 1 warning. The HTML pages are in build/html. Build finished. The HTML pages are in build/html. make: Leaving directory '/usr/src/RPM/BUILD/python3-module-flup-1.0.3/docs' + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.73342 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python3-module-flup-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python3-module-flup-buildroot + PATH=/usr/libexec/rpm-build:/usr/src/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games + cd python3-module-flup-1.0.3 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' + export FFLAGS + /usr/bin/python3 setup.py install --skip-build --root=/usr/src/tmp/python3-module-flup-buildroot --force running install running install_lib creating /usr/src/tmp/python3-module-flup-buildroot creating /usr/src/tmp/python3-module-flup-buildroot/usr creating /usr/src/tmp/python3-module-flup-buildroot/usr/lib creating /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3 creating /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages creating /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup creating /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/client copying build/lib/flup/client/__init__.py -> /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/client copying build/lib/flup/client/scgi_app.py -> /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/client copying build/lib/flup/client/fcgi_app.py -> /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/client creating /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server copying build/lib/flup/server/__init__.py -> /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server copying build/lib/flup/server/threadpool.py -> /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server copying build/lib/flup/server/threadedserver.py -> /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server copying build/lib/flup/server/singleserver.py -> /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server copying build/lib/flup/server/scgi_fork.py -> /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server copying build/lib/flup/server/scgi_base.py -> /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server copying build/lib/flup/server/scgi.py -> /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server copying build/lib/flup/server/preforkserver.py -> /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server copying build/lib/flup/server/paste_factory.py -> /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server copying build/lib/flup/server/fcgi_single.py -> /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server copying build/lib/flup/server/fcgi_fork.py -> /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server copying build/lib/flup/server/fcgi_base.py -> /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server copying build/lib/flup/server/fcgi.py -> /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server copying build/lib/flup/server/cgi.py -> /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server copying build/lib/flup/server/ajp_fork.py -> /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server copying build/lib/flup/server/ajp_base.py -> /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server copying build/lib/flup/server/ajp.py -> /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server copying build/lib/flup/__init__.py -> /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup byte-compiling /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/client/__init__.py to __init__.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/client/scgi_app.py to scgi_app.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/client/fcgi_app.py to fcgi_app.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/__init__.py to __init__.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/threadpool.py to threadpool.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/threadedserver.py to threadedserver.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/singleserver.py to singleserver.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/scgi_fork.py to scgi_fork.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/scgi_base.py to scgi_base.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/scgi.py to scgi.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/preforkserver.py to preforkserver.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/paste_factory.py to paste_factory.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/fcgi_single.py to fcgi_single.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/fcgi_fork.py to fcgi_fork.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/fcgi_base.py to fcgi_base.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/fcgi.py to fcgi.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/cgi.py to cgi.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/ajp_fork.py to ajp_fork.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/ajp_base.py to ajp_base.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/ajp.py to ajp.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/__init__.py to __init__.cpython-39.pyc running install_egg_info running egg_info creating flup.egg-info writing flup.egg-info/PKG-INFO writing dependency_links to flup.egg-info/dependency_links.txt writing entry points to flup.egg-info/entry_points.txt writing top-level names to flup.egg-info/top_level.txt writing manifest file 'flup.egg-info/SOURCES.txt' reading manifest file 'flup.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'flup.egg-info/SOURCES.txt' Copying flup.egg-info to /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup-1.0.3.dev20210918-py3.9.egg-info running install_scripts + cp -fR docs/build/pickle /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/ + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python3-module-flup-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python3-module-flup-buildroot (binconfig,pkgconfig,libtool,desktop,gnuconfig) Checking contents of files in /usr/src/tmp/python3-module-flup-buildroot/ (default) Compressing files in /usr/src/tmp/python3-module-flup-buildroot (auto) Adjusting library links in /usr/src/tmp/python3-module-flup-buildroot ./usr/lib: (from :0) Verifying ELF objects in /usr/src/tmp/python3-module-flup-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) Bytecompiling python3 modules in /usr/src/tmp/python3-module-flup-buildroot using /usr/bin/python3 unlink /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/__pycache__/__init__.cpython-39.pyc unlink /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/client/__pycache__/__init__.cpython-39.pyc unlink /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/client/__pycache__/fcgi_app.cpython-39.pyc unlink /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/client/__pycache__/scgi_app.cpython-39.pyc compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/client/__init__.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/client/fcgi_app.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/client/scgi_app.py unlink /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/__pycache__/__init__.cpython-39.pyc unlink /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/__pycache__/ajp.cpython-39.pyc unlink /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/__pycache__/ajp_base.cpython-39.pyc unlink /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/__pycache__/ajp_fork.cpython-39.pyc unlink /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/__pycache__/cgi.cpython-39.pyc unlink /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/__pycache__/fcgi.cpython-39.pyc unlink /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/__pycache__/fcgi_base.cpython-39.pyc unlink /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/__pycache__/fcgi_fork.cpython-39.pyc unlink /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/__pycache__/fcgi_single.cpython-39.pyc unlink /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/__pycache__/paste_factory.cpython-39.pyc unlink /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/__pycache__/preforkserver.cpython-39.pyc unlink /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/__pycache__/scgi.cpython-39.pyc unlink /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/__pycache__/scgi_base.cpython-39.pyc unlink /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/__pycache__/scgi_fork.cpython-39.pyc unlink /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/__pycache__/singleserver.cpython-39.pyc unlink /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/__pycache__/threadedserver.cpython-39.pyc unlink /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/__pycache__/threadpool.cpython-39.pyc compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/__init__.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/ajp.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/ajp_base.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/ajp_fork.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/cgi.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/fcgi.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/fcgi_base.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/fcgi_fork.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/fcgi_single.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/paste_factory.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/preforkserver.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/scgi.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/scgi_base.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/scgi_fork.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/singleserver.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/threadedserver.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/threadpool.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/__init__.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python3-module-flup-buildroot using /usr/bin/python3 -O compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/client/__init__.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/client/fcgi_app.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/client/scgi_app.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/__init__.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/ajp.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/ajp_base.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/ajp_fork.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/cgi.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/fcgi.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/fcgi_base.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/fcgi_fork.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/fcgi_single.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/paste_factory.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/preforkserver.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/scgi.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/scgi_base.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/scgi_fork.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/singleserver.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/threadedserver.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/threadpool.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/__init__.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python3-module-flup-buildroot using /usr/bin/python3 -OO compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/client/__init__.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/client/fcgi_app.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/client/scgi_app.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/__init__.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/ajp.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/ajp_base.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/ajp_fork.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/cgi.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/fcgi.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/fcgi_base.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/fcgi_fork.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/fcgi_single.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/paste_factory.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/preforkserver.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/scgi.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/scgi_base.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/scgi_fork.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/singleserver.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/threadedserver.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/threadpool.py compile /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/__init__.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/flup/__pycache__/__init__.cpython-39.opt-1.pyc' => './usr/lib/python3/site-packages/flup/__pycache__/__init__.cpython-39.pyc' './usr/lib/python3/site-packages/flup/__pycache__/__init__.cpython-39.opt-2.pyc' => './usr/lib/python3/site-packages/flup/__pycache__/__init__.cpython-39.opt-1.pyc' './usr/lib/python3/site-packages/flup/client/__pycache__/__init__.cpython-39.opt-1.pyc' => './usr/lib/python3/site-packages/flup/client/__pycache__/__init__.cpython-39.pyc' './usr/lib/python3/site-packages/flup/client/__pycache__/__init__.cpython-39.opt-2.pyc' => './usr/lib/python3/site-packages/flup/client/__pycache__/__init__.cpython-39.opt-1.pyc' './usr/lib/python3/site-packages/flup/client/__pycache__/scgi_app.cpython-39.opt-2.pyc' => './usr/lib/python3/site-packages/flup/client/__pycache__/scgi_app.cpython-39.opt-1.pyc' './usr/lib/python3/site-packages/flup/server/__pycache__/__init__.cpython-39.opt-1.pyc' => './usr/lib/python3/site-packages/flup/server/__pycache__/__init__.cpython-39.pyc' './usr/lib/python3/site-packages/flup/server/__pycache__/__init__.cpython-39.opt-2.pyc' => './usr/lib/python3/site-packages/flup/server/__pycache__/__init__.cpython-39.opt-1.pyc' './usr/lib/python3/site-packages/flup/server/__pycache__/ajp.cpython-39.opt-1.pyc' => './usr/lib/python3/site-packages/flup/server/__pycache__/ajp.cpython-39.pyc' './usr/lib/python3/site-packages/flup/server/__pycache__/ajp_fork.cpython-39.opt-1.pyc' => './usr/lib/python3/site-packages/flup/server/__pycache__/ajp_fork.cpython-39.pyc' './usr/lib/python3/site-packages/flup/server/__pycache__/cgi.cpython-39.opt-1.pyc' => './usr/lib/python3/site-packages/flup/server/__pycache__/cgi.cpython-39.pyc' './usr/lib/python3/site-packages/flup/server/__pycache__/cgi.cpython-39.opt-2.pyc' => './usr/lib/python3/site-packages/flup/server/__pycache__/cgi.cpython-39.opt-1.pyc' './usr/lib/python3/site-packages/flup/server/__pycache__/fcgi.cpython-39.opt-1.pyc' => './usr/lib/python3/site-packages/flup/server/__pycache__/fcgi.cpython-39.pyc' './usr/lib/python3/site-packages/flup/server/__pycache__/fcgi_fork.cpython-39.opt-1.pyc' => './usr/lib/python3/site-packages/flup/server/__pycache__/fcgi_fork.cpython-39.pyc' './usr/lib/python3/site-packages/flup/server/__pycache__/fcgi_single.cpython-39.opt-1.pyc' => './usr/lib/python3/site-packages/flup/server/__pycache__/fcgi_single.cpython-39.pyc' './usr/lib/python3/site-packages/flup/server/__pycache__/paste_factory.cpython-39.opt-2.pyc' => './usr/lib/python3/site-packages/flup/server/__pycache__/paste_factory.cpython-39.opt-1.pyc' './usr/lib/python3/site-packages/flup/server/__pycache__/preforkserver.cpython-39.opt-1.pyc' => './usr/lib/python3/site-packages/flup/server/__pycache__/preforkserver.cpython-39.pyc' './usr/lib/python3/site-packages/flup/server/__pycache__/scgi.cpython-39.opt-1.pyc' => './usr/lib/python3/site-packages/flup/server/__pycache__/scgi.cpython-39.pyc' './usr/lib/python3/site-packages/flup/server/__pycache__/scgi_fork.cpython-39.opt-1.pyc' => './usr/lib/python3/site-packages/flup/server/__pycache__/scgi_fork.cpython-39.pyc' './usr/lib/python3/site-packages/flup/server/__pycache__/singleserver.cpython-39.opt-1.pyc' => './usr/lib/python3/site-packages/flup/server/__pycache__/singleserver.cpython-39.pyc' './usr/lib/python3/site-packages/flup/server/__pycache__/threadedserver.cpython-39.opt-1.pyc' => './usr/lib/python3/site-packages/flup/server/__pycache__/threadedserver.cpython-39.pyc' Processing files: python3-module-flup-1.0.3-alt3.hg20120223.1.2 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.49xwwE 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.vlGgBD find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services) /usr/lib/rpm/python3.req.py:6: DeprecationWarning: The parser module is deprecated and will be removed in future versions of Python import parser, symbol, token, types /usr/lib/rpm/python3.req.py:6: DeprecationWarning: The symbol module is deprecated and will be removed in future versions of Python import parser, symbol, token, types python3.req: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/client/fcgi_app.py: skipping errno /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/client/fcgi_app.py: line=85 IGNORE (for REQ=slight and deep=8) module=time /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/client/fcgi_app.py: line=461 IGNORE (for REQ=slight and deep=8) module=flup.server.ajp python3.req: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/client/scgi_app.py: skipping errno /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/client/scgi_app.py: line=176 IGNORE (for REQ=slight and deep=8) module=flup.server.ajp /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/ajp.py: line=178 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/ajp.py: line=202 IGNORE (for REQ=slight and deep=8) module=wsgiref python3.req: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/ajp_base.py: skipping sys python3.req: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/ajp_base.py: skipping errno python3.req: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/ajp_base.py: skipping time python3.req: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/ajp_base.py: skipping _thread /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/ajp_base.py: line=965 IGNORE (for REQ=slight and deep=15) module=cgitb /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/ajp_fork.py: line=173 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/ajp_fork.py: line=197 IGNORE (for REQ=slight and deep=8) module=wsgiref python3.req: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/cgi.py: skipping sys /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/fcgi.py: line=123 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/fcgi.py: line=147 IGNORE (for REQ=slight and deep=8) module=wsgiref python3.req: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/fcgi_base.py: skipping sys python3.req: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/fcgi_base.py: skipping errno /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/fcgi_base.py: line=41 IGNORE (for REQ=slight and deep=8) module=_thread /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/fcgi_base.py: line=42 IGNORE (for REQ=slight and deep=8) module=threading /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/fcgi_base.py: line=45 IGNORE (for REQ=slight and deep=8) module=_dummy_thread /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/fcgi_base.py: line=46 IGNORE (for REQ=slight and deep=8) module=dummy_threading /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/fcgi_base.py: line=101 IGNORE (for REQ=slight and deep=8) module=time /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/fcgi_base.py: line=976 IGNORE (for REQ=slight and deep=19) module=resource /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/fcgi_base.py: line=1219 IGNORE (for REQ=slight and deep=15) module=cgitb /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/fcgi_fork.py: line=106 IGNORE (for REQ=slight and deep=15) module=resource /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/fcgi_fork.py: line=148 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/fcgi_fork.py: line=172 IGNORE (for REQ=slight and deep=8) module=wsgiref /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/fcgi_single.py: line=127 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/fcgi_single.py: line=151 IGNORE (for REQ=slight and deep=8) module=wsgiref /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/paste_factory.py: line=35 IGNORE (for REQ=slight and deep=8) module=flup.server.ajp /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/paste_factory.py: line=61 IGNORE (for REQ=slight and deep=8) module=flup.server.ajp_fork /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/paste_factory.py: line=89 IGNORE (for REQ=slight and deep=8) module=flup.server.fcgi /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/paste_factory.py: line=125 IGNORE (for REQ=slight and deep=8) module=flup.server.fcgi_fork /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/paste_factory.py: line=161 IGNORE (for REQ=slight and deep=8) module=flup.server.scgi /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/paste_factory.py: line=188 IGNORE (for REQ=slight and deep=8) module=flup.server.scgi_fork python3.req: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/preforkserver.py: skipping sys python3.req: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/preforkserver.py: skipping errno python3.req: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/preforkserver.py: skipping time /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/preforkserver.py: line=40 IGNORE (for REQ=slight and deep=8) module=fcntl /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/preforkserver.py: line=52 IGNORE (for REQ=slight and deep=12) module=eunuchs.socketpair /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/scgi.py: line=171 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/scgi.py: line=195 IGNORE (for REQ=slight and deep=8) module=wsgiref python3.req: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/scgi_base.py: skipping sys python3.req: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/scgi_base.py: skipping errno python3.req: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/scgi_base.py: skipping _thread /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/scgi_base.py: line=555 IGNORE (for REQ=slight and deep=15) module=cgitb /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/scgi_fork.py: line=170 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/scgi_fork.py: line=194 IGNORE (for REQ=slight and deep=8) module=wsgiref python3.req: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/singleserver.py: skipping sys python3.req: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/singleserver.py: skipping errno /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/singleserver.py: line=37 IGNORE (for REQ=slight and deep=8) module=fcntl python3.req: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/threadedserver.py: skipping sys python3.req: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/threadedserver.py: skipping errno /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/threadedserver.py: line=37 IGNORE (for REQ=slight and deep=8) module=fcntl python3.req: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/threadpool.py: skipping sys python3.req: /usr/src/tmp/python3-module-flup-buildroot/usr/lib/python3/site-packages/flup/server/threadpool.py: skipping _thread Provides: python3(flup), python3(flup.client), python3(flup.client.fcgi_app), python3(flup.client.scgi_app), python3(flup.server), python3(flup.server.ajp), python3(flup.server.ajp_base), python3(flup.server.ajp_fork), python3(flup.server.cgi), python3(flup.server.fcgi), python3(flup.server.fcgi_base), python3(flup.server.fcgi_fork), python3(flup.server.fcgi_single), python3(flup.server.paste_factory), python3(flup.server.preforkserver), python3(flup.server.scgi), python3(flup.server.scgi_base), python3(flup.server.scgi_fork), python3(flup.server.singleserver), python3(flup.server.threadedserver), python3(flup.server.threadpool) Requires: /usr/lib/python3/site-packages, python3(datetime) < 0, python3(io) < 0, python3(logging) < 0, python3(os) < 0, python3(random) < 0, python3(select) < 0, python3(signal) < 0, python3(socket) < 0, python3(struct) < 0, python3(threading) < 0, python3(traceback) < 0, python3(types) < 0, python3(warnings) < 0 Processing files: python3-module-flup-docs-1.0.3-alt3.hg20120223.1.2 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.87603 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python3-module-flup-1.0.3 + DOCDIR=/usr/src/tmp/python3-module-flup-buildroot/usr/share/doc/python3-module-flup-docs-1.0.3 + export DOCDIR + rm -rf /usr/src/tmp/python3-module-flup-buildroot/usr/share/doc/python3-module-flup-docs-1.0.3 + /bin/mkdir -p /usr/src/tmp/python3-module-flup-buildroot/usr/share/doc/python3-module-flup-docs-1.0.3 + cp -prL docs/build/html /usr/src/tmp/python3-module-flup-buildroot/usr/share/doc/python3-module-flup-docs-1.0.3 + chmod -R go-w /usr/src/tmp/python3-module-flup-buildroot/usr/share/doc/python3-module-flup-docs-1.0.3 + chmod -R a+rX /usr/src/tmp/python3-module-flup-buildroot/usr/share/doc/python3-module-flup-docs-1.0.3 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.VacY6F 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.3XVG5E find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services) Processing files: python3-module-flup-pickles-1.0.3-alt3.hg20120223.1.2 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.CNW07D 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.QQqQAE find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services) Requires: /usr/lib/python3/site-packages Wrote: /usr/src/RPM/RPMS/noarch/python3-module-flup-1.0.3-alt3.hg20120223.1.2.noarch.rpm (w2.lzdio) Wrote: /usr/src/RPM/RPMS/noarch/python3-module-flup-docs-1.0.3-alt3.hg20120223.1.2.noarch.rpm (w2.lzdio) Wrote: /usr/src/RPM/RPMS/noarch/python3-module-flup-pickles-1.0.3-alt3.hg20120223.1.2.noarch.rpm (w2.lzdio) 13.18user 1.01system 0:19.37elapsed 73%CPU (0avgtext+0avgdata 61828maxresident)k 0inputs+0outputs (0major+364761minor)pagefaults 0swaps 22.30user 5.04system 0:32.35elapsed 84%CPU (0avgtext+0avgdata 101968maxresident)k 0inputs+0outputs (0major+869911minor)pagefaults 0swaps --- python3-module-flup-1.0.3-alt3.hg20120223.1.2.noarch.rpm.repo 2021-07-22 20:30:08.000000000 +0000 +++ python3-module-flup-1.0.3-alt3.hg20120223.1.2.noarch.rpm.hasher 2021-09-18 04:20:13.953590961 +0000 @@ -1,9 +1,9 @@ /usr/lib/python3/site-packages/flup 40755 root:root -/usr/lib/python3/site-packages/flup-1.0.3.dev20210722-py3.9.egg-info 40755 root:root -/usr/lib/python3/site-packages/flup-1.0.3.dev20210722-py3.9.egg-info/PKG-INFO 100644 root:root -/usr/lib/python3/site-packages/flup-1.0.3.dev20210722-py3.9.egg-info/SOURCES.txt 100644 root:root -/usr/lib/python3/site-packages/flup-1.0.3.dev20210722-py3.9.egg-info/dependency_links.txt 100644 root:root -/usr/lib/python3/site-packages/flup-1.0.3.dev20210722-py3.9.egg-info/entry_points.txt 100644 root:root -/usr/lib/python3/site-packages/flup-1.0.3.dev20210722-py3.9.egg-info/top_level.txt 100644 root:root -/usr/lib/python3/site-packages/flup-1.0.3.dev20210722-py3.9.egg-info/zip-safe 100644 root:root +/usr/lib/python3/site-packages/flup-1.0.3.dev20210918-py3.9.egg-info 40755 root:root +/usr/lib/python3/site-packages/flup-1.0.3.dev20210918-py3.9.egg-info/PKG-INFO 100644 root:root +/usr/lib/python3/site-packages/flup-1.0.3.dev20210918-py3.9.egg-info/SOURCES.txt 100644 root:root +/usr/lib/python3/site-packages/flup-1.0.3.dev20210918-py3.9.egg-info/dependency_links.txt 100644 root:root +/usr/lib/python3/site-packages/flup-1.0.3.dev20210918-py3.9.egg-info/entry_points.txt 100644 root:root +/usr/lib/python3/site-packages/flup-1.0.3.dev20210918-py3.9.egg-info/top_level.txt 100644 root:root +/usr/lib/python3/site-packages/flup-1.0.3.dev20210918-py3.9.egg-info/zip-safe 100644 root:root /usr/lib/python3/site-packages/flup/__init__.py 100644 root:root @@ -135,9 +135,9 @@ File: /usr/lib/python3/site-packages/flup 40755 root:root -File: /usr/lib/python3/site-packages/flup-1.0.3.dev20210722-py3.9.egg-info 40755 root:root -File: /usr/lib/python3/site-packages/flup-1.0.3.dev20210722-py3.9.egg-info/PKG-INFO 100644 root:root ceb6dadb617e5bff3f81589d1d44cc2e -File: /usr/lib/python3/site-packages/flup-1.0.3.dev20210722-py3.9.egg-info/SOURCES.txt 100644 root:root 7b563f9895d5c663d05aae4bf09ace12 -File: /usr/lib/python3/site-packages/flup-1.0.3.dev20210722-py3.9.egg-info/dependency_links.txt 100644 root:root 68b329da9893e34099c7d8ad5cb9c940 -File: /usr/lib/python3/site-packages/flup-1.0.3.dev20210722-py3.9.egg-info/entry_points.txt 100644 root:root e65ed8edebc608f6e3feab3783b7c6b8 -File: /usr/lib/python3/site-packages/flup-1.0.3.dev20210722-py3.9.egg-info/top_level.txt 100644 root:root 8f4a53e907675e9e9f37af54a96cc231 -File: /usr/lib/python3/site-packages/flup-1.0.3.dev20210722-py3.9.egg-info/zip-safe 100644 root:root 68b329da9893e34099c7d8ad5cb9c940 +File: /usr/lib/python3/site-packages/flup-1.0.3.dev20210918-py3.9.egg-info 40755 root:root +File: /usr/lib/python3/site-packages/flup-1.0.3.dev20210918-py3.9.egg-info/PKG-INFO 100644 root:root cccce140ec6285903357bf12b4882b23 +File: /usr/lib/python3/site-packages/flup-1.0.3.dev20210918-py3.9.egg-info/SOURCES.txt 100644 root:root 7b563f9895d5c663d05aae4bf09ace12 +File: /usr/lib/python3/site-packages/flup-1.0.3.dev20210918-py3.9.egg-info/dependency_links.txt 100644 root:root 68b329da9893e34099c7d8ad5cb9c940 +File: /usr/lib/python3/site-packages/flup-1.0.3.dev20210918-py3.9.egg-info/entry_points.txt 100644 root:root e65ed8edebc608f6e3feab3783b7c6b8 +File: /usr/lib/python3/site-packages/flup-1.0.3.dev20210918-py3.9.egg-info/top_level.txt 100644 root:root 8f4a53e907675e9e9f37af54a96cc231 +File: /usr/lib/python3/site-packages/flup-1.0.3.dev20210918-py3.9.egg-info/zip-safe 100644 root:root 68b329da9893e34099c7d8ad5cb9c940 File: /usr/lib/python3/site-packages/flup/__init__.py 100644 root:root 552dacb15f2019c8f3f74c55befa242c @@ -231,2 +231,2 @@ File: /usr/lib/python3/site-packages/flup/server/threadpool.py 100644 root:root 9921ea3be3a03bc7dc003e7e881e9003 -RPMIdentity: 210baa03015e3b1c8e752ebfcd77b7313b0bff0ef024708f397392e8cbaf4adc6730da6ed59468d0a4beb80449dbbf32004fcdc0e66d0dac041f2f636597b9df +RPMIdentity: 0264c896baf22bc74fde3b45b045fddf319848cbfce5f9dbcb22515fe3ef51331c190c97ee9305a022dc5a6b88f2a58eaf7e054d759bfa0aa84e7a9e8c9cf032 --- python3-module-flup-pickles-1.0.3-alt3.hg20120223.1.2.noarch.rpm.repo 2021-07-22 20:30:08.000000000 +0000 +++ python3-module-flup-pickles-1.0.3-alt3.hg20120223.1.2.noarch.rpm.hasher 2021-09-18 04:20:14.092592305 +0000 @@ -121,3 +121,3 @@ File: /usr/lib/python3/site-packages/flup/pickle/_static/underscore.js 100644 root:root 426e8e61dd81d4c6f9c17f1150ad07ce -File: /usr/lib/python3/site-packages/flup/pickle/environment.pickle 100644 root:root abfc50cc3d24b0b9fe9941c7f53f9a51 +File: /usr/lib/python3/site-packages/flup/pickle/environment.pickle 100644 root:root 2c85863cd6cf671477e1fbaac2cbd782 File: /usr/lib/python3/site-packages/flup/pickle/genindex-A.fpickle 100644 root:root c0b04a2e39eb0628dd649e33846dde9b @@ -161,2 +161,2 @@ File: /usr/lib/python3/site-packages/flup/pickle/searchindex.pickle 100644 root:root 11461556a879347b2c8d8ffa1ab3d7a9 -RPMIdentity: 97e3cc60fac3c8100a6c08cc8f9de8928c95e7f0f1aab8fd7668eb454ae4a83f78161a66d6b04fa3e8363b5270abe88f266d66bfad755c9371284522eb758192 +RPMIdentity: 13aa8bf814e46e56324403fa8161496e7f366c8e97f01d33990291e9fa92e024dacd2b95a32ecb536e8a2b40abdd1f46d7fedc1cac0cc1d84574987f6a59b2bc
%s%s