<86>Dec 4 15:26:10 userdel[724155]: delete user 'rooter' <86>Dec 4 15:26:10 groupadd[724339]: group added to /etc/group: name=rooter, GID=672 <86>Dec 4 15:26:10 groupadd[724339]: new group: name=rooter, GID=672 <86>Dec 4 15:26:10 useradd[724509]: new user: name=rooter, UID=672, GID=672, home=/root, shell=/bin/bash <86>Dec 4 15:26:10 userdel[725194]: delete user 'builder' <86>Dec 4 15:26:10 groupadd[725319]: group added to /etc/group: name=builder, GID=673 <86>Dec 4 15:26:10 groupadd[725319]: group added to /etc/gshadow: name=builder <86>Dec 4 15:26:10 groupadd[725319]: new group: name=builder, GID=673 <86>Dec 4 15:26:10 useradd[725354]: new user: name=builder, UID=673, GID=673, home=/usr/src, shell=/bin/bash <13>Dec 4 15:26:14 rpmi: libgdbm-1.8.3-alt10 1454943334 installed <13>Dec 4 15:26:14 rpmi: libexpat-2.2.10-alt1 sisyphus+259966.100.1.1 1602824518 installed <13>Dec 4 15:26:14 rpmi: libp11-kit-0.23.15-alt2 sisyphus+252784.100.2.2 1591274901 installed <13>Dec 4 15:26:14 rpmi: libtasn1-4.16.0-alt1 sisyphus+245480.100.1.1 1580825062 installed <13>Dec 4 15:26:14 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Dec 4 15:26:14 rpmi: alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Dec 4 15:26:14 rpmi: ca-certificates-2020.10.22-alt1 sisyphus+260224.300.2.1 1603549301 installed <13>Dec 4 15:26:14 rpmi: ca-trust-0.1.2-alt1 sisyphus+233348.100.1.1 1561653823 installed <13>Dec 4 15:26:14 rpmi: p11-kit-trust-0.23.15-alt2 sisyphus+252784.100.2.2 1591274901 installed <13>Dec 4 15:26:14 rpmi: libcrypto1.1-1.1.1g-alt1 sisyphus+249982.60.8.1 1587743711 installed <13>Dec 4 15:26:14 rpmi: libssl1.1-1.1.1g-alt1 sisyphus+249982.60.8.1 1587743711 installed <13>Dec 4 15:26:14 rpmi: python3-3.8.6-alt1 sisyphus+259085.100.2.1 1601904174 installed <13>Dec 4 15:26:16 rpmi: python3-base-3.8.6-alt1 sisyphus+259085.100.2.1 1601904174 installed <13>Dec 4 15:26:17 rpmi: libpython3-3.8.6-alt1 sisyphus+259085.100.2.1 1601904174 installed <13>Dec 4 15:26:17 rpmi: tests-for-installed-python3-pkgs-0.1.13.1-alt2 1535450458 installed <13>Dec 4 15:26:17 rpmi: rpm-build-python3-0.1.13.1-alt2 1535450458 installed <13>Dec 4 15:26:25 rpmi: libverto-0.3.0-alt1_7 sisyphus+225932.100.1.1 1553994919 installed <13>Dec 4 15:26:25 rpmi: libtinfo-devel-6.2.20201107-alt1 sisyphus+261749.100.1.1 1605292929 installed <13>Dec 4 15:26:25 rpmi: libncurses-devel-6.2.20201107-alt1 sisyphus+261749.100.1.1 1605292929 installed <13>Dec 4 15:26:25 rpmi: liblmdb-0.9.23-alt1 sisyphus+225277.100.2.1 1553001679 installed <13>Dec 4 15:26:25 rpmi: libkeyutils-1.6.1-alt1 sisyphus+256015.100.1.1 1596820124 installed <13>Dec 4 15:26:25 rpmi: libcom_err-1.45.6.0.24.af1a-alt1 sisyphus+262279.100.1.1 1606088229 installed <86>Dec 4 15:26:25 groupadd[740710]: group added to /etc/group: name=_keytab, GID=499 <86>Dec 4 15:26:25 groupadd[740710]: group added to /etc/gshadow: name=_keytab <86>Dec 4 15:26:25 groupadd[740710]: new group: name=_keytab, GID=499 <13>Dec 4 15:26:25 rpmi: libkrb5-1.18.3-alt1 sisyphus+262109.100.1.1 1605777180 installed <13>Dec 4 15:26:25 rpmi: libtirpc-1.2.6-alt1 sisyphus+250076.100.1.1 1587038270 installed <13>Dec 4 15:26:25 rpmi: libnsl2-1.1.0-alt1_1 1511548749 installed <13>Dec 4 15:26:26 rpmi: python-modules-encodings-2.7.18-alt2 sisyphus+262143.200.4.1 1606132536 installed <13>Dec 4 15:26:26 rpmi: python-modules-compiler-2.7.18-alt2 sisyphus+262143.200.4.1 1606132536 installed <13>Dec 4 15:26:26 rpmi: python-modules-email-2.7.18-alt2 sisyphus+262143.200.4.1 1606132536 installed <13>Dec 4 15:26:26 rpmi: python-modules-unittest-2.7.18-alt2 sisyphus+262143.200.4.1 1606132536 installed <13>Dec 4 15:26:27 rpmi: python-modules-2.7.18-alt2 sisyphus+262143.200.4.1 1606132536 installed <13>Dec 4 15:26:27 rpmi: python-modules-nis-2.7.18-alt2 sisyphus+262143.200.4.1 1606132536 installed <13>Dec 4 15:26:27 rpmi: python-modules-ctypes-2.7.18-alt2 sisyphus+262143.200.4.1 1606132536 installed <13>Dec 4 15:26:27 rpmi: python-modules-multiprocessing-2.7.18-alt2 sisyphus+262143.200.4.1 1606132536 installed <13>Dec 4 15:26:27 rpmi: python-modules-logging-2.7.18-alt2 sisyphus+262143.200.4.1 1606132536 installed <13>Dec 4 15:26:27 rpmi: python-tools-2to3-2.7.18-alt2 sisyphus+262143.200.4.1 1606132536 installed <13>Dec 4 15:26:27 rpmi: python3-dev-3.8.6-alt1 sisyphus+259085.100.2.1 1601904174 installed Building target platforms: i586 Building for target i586 Wrote: /usr/src/in/nosrpm/python3-module-geventutil-0.0.1-alt2.hg20120114.nosrc.rpm <13>Dec 4 15:26:31 rpmi: python3-module-pkg_resources-1:46.1.3-alt2 sisyphus+260458.600.6.1 1603876498 installed <13>Dec 4 15:26:31 rpmi: python3-module-setuptools-1:46.1.3-alt2 sisyphus+260458.600.6.1 1603876498 installed Installing python3-module-geventutil-0.0.1-alt2.hg20120114.src.rpm Building target platforms: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.81278 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python3-module-geventutil-0.0.1 + echo 'Source #0 (python3-module-geventutil-0.0.1.tar):' Source #0 (python3-module-geventutil-0.0.1.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/python3-module-geventutil-0.0.1.tar + cd python3-module-geventutil-0.0.1 + /bin/chmod -c -Rf u+rwX,go-w . + find ./ -type f -name '*.py' -exec 2to3 -w -n '{}' + RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: Refactored ./tests/test_threadpool.py RefactoringTool: No changes to ./setup.py RefactoringTool: Refactored ./geventutil/worker.py RefactoringTool: Files that were modified: RefactoringTool: ./tests/test_threadpool.py RefactoringTool: ./setup.py RefactoringTool: ./geventutil/worker.py --- ./tests/test_threadpool.py (original) +++ ./tests/test_threadpool.py (refactored) @@ -13,7 +13,7 @@ def myException(async_result): try: raise Exception("bob") - except Exception, e: + except Exception as e: async_result.set_exception(e) def my_exception(): @@ -75,8 +75,8 @@ except Cancelled: cancel = cancel + 1 self.assertEqual(failed, 1) - self.assert_(cancel>12) - self.assert_(success>1) + self.assertTrue(cancel>12) + self.assertTrue(success>1) gevent.sleep(0) def test_async_exception(self): @@ -96,7 +96,7 @@ try: waitany([async]) self.assertTrue(False) - except Exception, e: + except Exception as e: self.assertTrue(True) # Test that get, and wait both exit correctly when a timeout @@ -105,7 +105,7 @@ async = self.pool.apply_async(blockSleep, 1) try: async.get(timeout=0.1) - except Timeout, e: + except Timeout as e: self.assertTrue(True) self.assertTrue(not async.ready()) @@ -145,7 +145,7 @@ waitany([wait3, wait1]) self.assertTrue(wait1.ready()) - self.assert_(not wait3.ready()) + self.assertTrue(not wait3.ready()) self.assertEqual(wait1.value, 1) waitany([wait3]) --- ./geventutil/worker.py (original) +++ ./geventutil/worker.py (refactored) @@ -1,4 +1,4 @@ -from __future__ import with_statement + import sys import traceback from time import time @@ -162,7 +162,7 @@ def _run(self): import datetime - print datetime.datetime.now() + print(datetime.datetime.now()) 1/0 def __str__(self): @@ -170,11 +170,11 @@ try: p = DieQuick.spawn() - print 'before join' - p.join() - print 'after join' - except KeyboardInterrupt: - print 'got keyboardinterrupt!' + print('before join') + p.join() + print('after join') + except KeyboardInterrupt: + print('got keyboardinterrupt!') p.kill() class SmallMaxRate(Worker): @@ -184,7 +184,7 @@ def _run(self): import datetime - print datetime.datetime.now() + print(datetime.datetime.now()) 1/0 def __str__(self): @@ -204,7 +204,7 @@ def _run(self): import datetime - print datetime.datetime.now() + print(datetime.datetime.now()) 1/0 def __str__(self): @@ -214,7 +214,7 @@ p = BigPeriod.spawn() p.join() except KeyboardInterrupt: - print 'setting restart_sleep to 1 restart_rate_limit to (1, 1)' + print('setting restart_sleep to 1 restart_rate_limit to (1, 1)') p.set_sleep(1) p.set_max_rate((1, 1)) + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.11861 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python3-module-geventutil-0.0.1 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export FFLAGS + /usr/bin/python3 setup.py build running build running build_py creating build creating build/lib creating build/lib/geventutil copying geventutil/worker.py -> build/lib/geventutil copying geventutil/threadpool.py -> build/lib/geventutil copying geventutil/__init__.py -> build/lib/geventutil + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.12545 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python3-module-geventutil-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python3-module-geventutil-buildroot + cd python3-module-geventutil-0.0.1 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export FFLAGS + /usr/bin/python3 setup.py install --skip-build --root=/usr/src/tmp/python3-module-geventutil-buildroot --force running install running install_lib creating /usr/src/tmp/python3-module-geventutil-buildroot creating /usr/src/tmp/python3-module-geventutil-buildroot/usr creating /usr/src/tmp/python3-module-geventutil-buildroot/usr/lib creating /usr/src/tmp/python3-module-geventutil-buildroot/usr/lib/python3 creating /usr/src/tmp/python3-module-geventutil-buildroot/usr/lib/python3/site-packages creating /usr/src/tmp/python3-module-geventutil-buildroot/usr/lib/python3/site-packages/geventutil copying build/lib/geventutil/__init__.py -> /usr/src/tmp/python3-module-geventutil-buildroot/usr/lib/python3/site-packages/geventutil copying build/lib/geventutil/threadpool.py -> /usr/src/tmp/python3-module-geventutil-buildroot/usr/lib/python3/site-packages/geventutil copying build/lib/geventutil/worker.py -> /usr/src/tmp/python3-module-geventutil-buildroot/usr/lib/python3/site-packages/geventutil byte-compiling /usr/src/tmp/python3-module-geventutil-buildroot/usr/lib/python3/site-packages/geventutil/__init__.py to __init__.cpython-38.pyc byte-compiling /usr/src/tmp/python3-module-geventutil-buildroot/usr/lib/python3/site-packages/geventutil/threadpool.py to threadpool.cpython-38.pyc byte-compiling /usr/src/tmp/python3-module-geventutil-buildroot/usr/lib/python3/site-packages/geventutil/worker.py to worker.cpython-38.pyc running install_egg_info Writing /usr/src/tmp/python3-module-geventutil-buildroot/usr/lib/python3/site-packages/geventutil-0.0.0-py3.8.egg-info + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python3-module-geventutil-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python3-module-geventutil-buildroot (binconfig,pkgconfig,libtool,desktop) Checking contents of files in /usr/src/tmp/python3-module-geventutil-buildroot/ (default) Compressing files in /usr/src/tmp/python3-module-geventutil-buildroot (auto) Adjusting library links in /usr/src/tmp/python3-module-geventutil-buildroot ./usr/lib: Verifying ELF objects in /usr/src/tmp/python3-module-geventutil-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) Bytecompiling python modules in /usr/src/tmp/python3-module-geventutil-buildroot using /usr/bin/python2.7 Bytecompiling python modules with optimization in /usr/src/tmp/python3-module-geventutil-buildroot using /usr/bin/python2.7 -O Bytecompiling python3 modules in /usr/src/tmp/python3-module-geventutil-buildroot using /usr/bin/python3 unlink /usr/src/tmp/python3-module-geventutil-buildroot/usr/lib/python3/site-packages/geventutil/__pycache__/__init__.cpython-38.pyc unlink /usr/src/tmp/python3-module-geventutil-buildroot/usr/lib/python3/site-packages/geventutil/__pycache__/threadpool.cpython-38.pyc unlink /usr/src/tmp/python3-module-geventutil-buildroot/usr/lib/python3/site-packages/geventutil/__pycache__/worker.cpython-38.pyc compile /usr/src/tmp/python3-module-geventutil-buildroot/usr/lib/python3/site-packages/geventutil/__init__.py compile /usr/src/tmp/python3-module-geventutil-buildroot/usr/lib/python3/site-packages/geventutil/threadpool.py compile /usr/src/tmp/python3-module-geventutil-buildroot/usr/lib/python3/site-packages/geventutil/worker.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python3-module-geventutil-buildroot using /usr/bin/python3 -O compile /usr/src/tmp/python3-module-geventutil-buildroot/usr/lib/python3/site-packages/geventutil/__init__.py compile /usr/src/tmp/python3-module-geventutil-buildroot/usr/lib/python3/site-packages/geventutil/threadpool.py compile /usr/src/tmp/python3-module-geventutil-buildroot/usr/lib/python3/site-packages/geventutil/worker.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python3-module-geventutil-buildroot using /usr/bin/python3 -OO compile /usr/src/tmp/python3-module-geventutil-buildroot/usr/lib/python3/site-packages/geventutil/__init__.py compile /usr/src/tmp/python3-module-geventutil-buildroot/usr/lib/python3/site-packages/geventutil/threadpool.py compile /usr/src/tmp/python3-module-geventutil-buildroot/usr/lib/python3/site-packages/geventutil/worker.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/geventutil/__pycache__/threadpool.cpython-38.opt-1.pyc' => './usr/lib/python3/site-packages/geventutil/__pycache__/threadpool.cpython-38.pyc' './usr/lib/python3/site-packages/geventutil/__pycache__/threadpool.cpython-38.opt-2.pyc' => './usr/lib/python3/site-packages/geventutil/__pycache__/threadpool.cpython-38.opt-1.pyc' './usr/lib/python3/site-packages/geventutil/__pycache__/__init__.cpython-38.opt-1.pyc' => './usr/lib/python3/site-packages/geventutil/__pycache__/__init__.cpython-38.pyc' './usr/lib/python3/site-packages/geventutil/__pycache__/__init__.cpython-38.opt-2.pyc' => './usr/lib/python3/site-packages/geventutil/__pycache__/__init__.cpython-38.opt-1.pyc' Hardlinking identical .pyc and .pyo files Processing files: python3-module-geventutil-0.0.1-alt2.hg20120114 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.kiVEL9 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.DoU3R7 find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services) python3.req: /usr/src/tmp/python3-module-geventutil-buildroot/usr/lib/python3/site-packages/geventutil/worker.py: skipping sys python3.req: /usr/src/tmp/python3-module-geventutil-buildroot/usr/lib/python3/site-packages/geventutil/worker.py: skipping time /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-geventutil-buildroot/usr/lib/python3/site-packages/geventutil/worker.py: line=155 IGNORE (for REQ=slight and deep=8) module=doctest /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-geventutil-buildroot/usr/lib/python3/site-packages/geventutil/worker.py: line=164 IGNORE (for REQ=slight and deep=15) module=datetime /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-geventutil-buildroot/usr/lib/python3/site-packages/geventutil/worker.py: line=186 IGNORE (for REQ=slight and deep=15) module=datetime /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-geventutil-buildroot/usr/lib/python3/site-packages/geventutil/worker.py: line=206 IGNORE (for REQ=slight and deep=15) module=datetime Provides: python3(geventutil), python3(geventutil.threadpool), python3(geventutil.worker) Requires: /usr/lib/python3/site-packages, python3(gevent) < 0, python3(traceback) < 0 Wrote: /usr/src/RPM/RPMS/noarch/python3-module-geventutil-0.0.1-alt2.hg20120114.noarch.rpm 3.38user 0.24system 0:11.70elapsed 31%CPU (0avgtext+0avgdata 15536maxresident)k 0inputs+0outputs (0major+110670minor)pagefaults 0swaps 10.61user 3.00system 0:42.02elapsed 32%CPU (0avgtext+0avgdata 109092maxresident)k 0inputs+0outputs (0major+553635minor)pagefaults 0swaps --- python3-module-geventutil-0.0.1-alt2.hg20120114.noarch.rpm.repo 2020-01-16 12:14:19.748732182 +0000 +++ python3-module-geventutil-0.0.1-alt2.hg20120114.noarch.rpm.hasher 2020-12-04 15:26:47.426241273 +0000 @@ -1,14 +1,14 @@ /usr/lib/python3/site-packages/geventutil 40755 -/usr/lib/python3/site-packages/geventutil-0.0.0-py3.7.egg-info 100644 +/usr/lib/python3/site-packages/geventutil-0.0.0-py3.8.egg-info 100644 /usr/lib/python3/site-packages/geventutil/__init__.py 100644 /usr/lib/python3/site-packages/geventutil/__pycache__ 40755 -/usr/lib/python3/site-packages/geventutil/__pycache__/__init__.cpython-37.opt-1.pyc 100644 -/usr/lib/python3/site-packages/geventutil/__pycache__/__init__.cpython-37.opt-2.pyc 100644 -/usr/lib/python3/site-packages/geventutil/__pycache__/__init__.cpython-37.pyc 100644 -/usr/lib/python3/site-packages/geventutil/__pycache__/threadpool.cpython-37.opt-1.pyc 100644 -/usr/lib/python3/site-packages/geventutil/__pycache__/threadpool.cpython-37.opt-2.pyc 100644 -/usr/lib/python3/site-packages/geventutil/__pycache__/threadpool.cpython-37.pyc 100644 -/usr/lib/python3/site-packages/geventutil/__pycache__/worker.cpython-37.opt-1.pyc 100644 -/usr/lib/python3/site-packages/geventutil/__pycache__/worker.cpython-37.opt-2.pyc 100644 -/usr/lib/python3/site-packages/geventutil/__pycache__/worker.cpython-37.pyc 100644 +/usr/lib/python3/site-packages/geventutil/__pycache__/__init__.cpython-38.opt-1.pyc 100644 +/usr/lib/python3/site-packages/geventutil/__pycache__/__init__.cpython-38.opt-2.pyc 100644 +/usr/lib/python3/site-packages/geventutil/__pycache__/__init__.cpython-38.pyc 100644 +/usr/lib/python3/site-packages/geventutil/__pycache__/threadpool.cpython-38.opt-1.pyc 100644 +/usr/lib/python3/site-packages/geventutil/__pycache__/threadpool.cpython-38.opt-2.pyc 100644 +/usr/lib/python3/site-packages/geventutil/__pycache__/threadpool.cpython-38.pyc 100644 +/usr/lib/python3/site-packages/geventutil/__pycache__/worker.cpython-38.opt-1.pyc 100644 +/usr/lib/python3/site-packages/geventutil/__pycache__/worker.cpython-38.opt-2.pyc 100644 +/usr/lib/python3/site-packages/geventutil/__pycache__/worker.cpython-38.pyc 100644 /usr/lib/python3/site-packages/geventutil/threadpool.py 100644