<86>Sep 3 08:00:01 userdel[3271275]: delete user 'rooter' <86>Sep 3 08:00:01 userdel[3271275]: removed group 'rooter' owned by 'rooter' <86>Sep 3 08:00:01 groupadd[3271285]: group added to /etc/group: name=rooter, GID=675 <86>Sep 3 08:00:01 groupadd[3271285]: group added to /etc/gshadow: name=rooter <86>Sep 3 08:00:01 groupadd[3271285]: new group: name=rooter, GID=675 <86>Sep 3 08:00:01 useradd[3271294]: new user: name=rooter, UID=675, GID=675, home=/root, shell=/bin/bash <86>Sep 3 08:00:01 userdel[3271310]: delete user 'builder' <86>Sep 3 08:00:01 userdel[3271310]: removed group 'builder' owned by 'builder' <86>Sep 3 08:00:01 userdel[3271310]: removed shadow group 'builder' owned by 'builder' <86>Sep 3 08:00:01 groupadd[3271318]: group added to /etc/group: name=builder, GID=676 <86>Sep 3 08:00:01 groupadd[3271318]: group added to /etc/gshadow: name=builder <86>Sep 3 08:00:01 groupadd[3271318]: new group: name=builder, GID=676 <86>Sep 3 08:00:01 useradd[3271323]: new user: name=builder, UID=676, GID=676, home=/usr/src, shell=/bin/bash <13>Sep 3 08:00:03 rpmi: libgdbm-1.8.3-alt10 1454943334 installed <13>Sep 3 08:00:03 rpmi: libexpat-2.2.9-alt1 sisyphus+252464.200.2.1 1590958865 installed <13>Sep 3 08:00:03 rpmi: libp11-kit-0.23.15-alt2 sisyphus+252784.100.2.2 1591274901 installed <13>Sep 3 08:00:03 rpmi: libtasn1-4.16.0-alt1 sisyphus+245480.100.1.1 1580825062 installed <13>Sep 3 08:00:03 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Sep 3 08:00:03 rpmi: alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Sep 3 08:00:03 rpmi: ca-certificates-2020.06.29-alt1 sisyphus+254237.300.1.1 1593450881 installed <13>Sep 3 08:00:03 rpmi: ca-trust-0.1.2-alt1 sisyphus+233348.100.1.1 1561653823 installed <13>Sep 3 08:00:03 rpmi: p11-kit-trust-0.23.15-alt2 sisyphus+252784.100.2.2 1591274901 installed <13>Sep 3 08:00:03 rpmi: libcrypto1.1-1.1.1g-alt1 sisyphus+249982.60.8.1 1587743711 installed <13>Sep 3 08:00:03 rpmi: libssl1.1-1.1.1g-alt1 sisyphus+249982.60.8.1 1587743711 installed <13>Sep 3 08:00:03 rpmi: python3-3.8.5-alt1 sisyphus+244405.100.3.1 1595544514 installed <13>Sep 3 08:00:04 rpmi: python3-base-3.8.5-alt1 sisyphus+244405.100.3.1 1595544514 installed <13>Sep 3 08:00:04 rpmi: libpython3-3.8.5-alt1 sisyphus+244405.100.3.1 1595544514 installed <13>Sep 3 08:00:04 rpmi: tests-for-installed-python3-pkgs-0.1.13.1-alt2 1535450458 installed <13>Sep 3 08:00:04 rpmi: rpm-build-python3-0.1.13.1-alt2 1535450458 installed <13>Sep 3 08:00:05 rpmi: libverto-0.3.0-alt1_7 sisyphus+225932.100.1.1 1553994919 installed <13>Sep 3 08:00:05 rpmi: libtinfo-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686226 installed <13>Sep 3 08:00:06 rpmi: libncurses-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686226 installed <13>Sep 3 08:00:06 rpmi: liblmdb-0.9.23-alt1 sisyphus+225277.100.2.1 1553001679 installed <13>Sep 3 08:00:06 rpmi: libkeyutils-1.6.1-alt1 sisyphus+256015.100.1.1 1596820124 installed <13>Sep 3 08:00:06 rpmi: libcom_err-1.44.6-alt1 sisyphus+224154.100.1.1 1552091678 installed <86>Sep 3 08:00:06 groupadd[3280273]: group added to /etc/group: name=_keytab, GID=499 <86>Sep 3 08:00:06 groupadd[3280273]: group added to /etc/gshadow: name=_keytab <86>Sep 3 08:00:06 groupadd[3280273]: new group: name=_keytab, GID=499 <13>Sep 3 08:00:06 rpmi: libkrb5-1.18.2-alt2 sisyphus+254565.100.4.1 1594375666 installed <13>Sep 3 08:00:06 rpmi: libtirpc-1.2.6-alt1 sisyphus+250076.100.1.1 1587038270 installed <13>Sep 3 08:00:06 rpmi: libnsl2-1.1.0-alt1_1 1511548749 installed <13>Sep 3 08:00:06 rpmi: python-modules-encodings-2.7.18-alt1 sisyphus+255741.100.1.1 1596450480 installed <13>Sep 3 08:00:06 rpmi: python-modules-compiler-2.7.18-alt1 sisyphus+255741.100.1.1 1596450480 installed <13>Sep 3 08:00:06 rpmi: python-modules-email-2.7.18-alt1 sisyphus+255741.100.1.1 1596450480 installed <13>Sep 3 08:00:06 rpmi: python-modules-unittest-2.7.18-alt1 sisyphus+255741.100.1.1 1596450480 installed <13>Sep 3 08:00:06 rpmi: python-modules-2.7.18-alt1 sisyphus+255741.100.1.1 1596450480 installed <13>Sep 3 08:00:06 rpmi: python-modules-nis-2.7.18-alt1 sisyphus+255741.100.1.1 1596450480 installed <13>Sep 3 08:00:06 rpmi: python-modules-ctypes-2.7.18-alt1 sisyphus+255741.100.1.1 1596450480 installed <13>Sep 3 08:00:06 rpmi: python-modules-multiprocessing-2.7.18-alt1 sisyphus+255741.100.1.1 1596450480 installed <13>Sep 3 08:00:06 rpmi: python-modules-logging-2.7.18-alt1 sisyphus+255741.100.1.1 1596450480 installed <13>Sep 3 08:00:06 rpmi: python-tools-2to3-2.7.18-alt1 sisyphus+255741.100.1.1 1596450480 installed <13>Sep 3 08:00:06 rpmi: python3-dev-3.8.5-alt1 sisyphus+244405.100.3.1 1595544514 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>Sep 3 08:00:08 rpmi: python3-module-pkg_resources-1:46.1.3-alt1 sisyphus+250566.200.3.1 1587973342 installed <13>Sep 3 08:00:08 rpmi: python3-module-setuptools-1:46.1.3-alt1 sisyphus+250566.200.3.1 1587973342 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.37653 + 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.39816 + 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.39816 + 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.5bNEsK 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.4jvemI 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.17user 0.33system 0:05.04elapsed 69%CPU (0avgtext+0avgdata 15576maxresident)k 0inputs+0outputs (0major+109610minor)pagefaults 0swaps 9.71user 3.64system 0:14.64elapsed 91%CPU (0avgtext+0avgdata 110432maxresident)k 376inputs+0outputs (0major+549931minor)pagefaults 0swaps --- python3-module-geventutil-0.0.1-alt2.hg20120114.noarch.rpm.repo 2020-01-16 12:14:19.000000000 +0000 +++ python3-module-geventutil-0.0.1-alt2.hg20120114.noarch.rpm.hasher 2020-09-03 08:00:14.144117305 +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