<86>Sep 29 12:13:26 userdel[921459]: delete user 'rooter' <86>Sep 29 12:13:26 userdel[921459]: removed group 'rooter' owned by 'rooter' <86>Sep 29 12:13:26 userdel[921459]: removed shadow group 'rooter' owned by 'rooter' <86>Sep 29 12:13:26 groupadd[921476]: group added to /etc/group: name=rooter, GID=1262 <86>Sep 29 12:13:26 groupadd[921476]: group added to /etc/gshadow: name=rooter <86>Sep 29 12:13:26 groupadd[921476]: new group: name=rooter, GID=1262 <86>Sep 29 12:13:26 useradd[921487]: new user: name=rooter, UID=1262, GID=1262, home=/root, shell=/bin/bash <86>Sep 29 12:13:26 userdel[921506]: delete user 'builder' <86>Sep 29 12:13:26 userdel[921506]: removed group 'builder' owned by 'builder' <86>Sep 29 12:13:26 userdel[921506]: removed shadow group 'builder' owned by 'builder' <86>Sep 29 12:13:26 groupadd[921537]: group added to /etc/group: name=builder, GID=1263 <86>Sep 29 12:13:26 groupadd[921537]: group added to /etc/gshadow: name=builder <86>Sep 29 12:13:26 groupadd[921537]: new group: name=builder, GID=1263 <86>Sep 29 12:13:26 useradd[921550]: new user: name=builder, UID=1263, GID=1263, home=/usr/src, shell=/bin/bash <13>Sep 29 12:13:34 rpmi: libgdbm-1.8.3-alt10 1454943313 installed <13>Sep 29 12:13:34 rpmi: libexpat-2.4.3-alt1 p9+293696.100.1.1 1643124786 installed <13>Sep 29 12:13:34 rpmi: libp11-kit-0.23.15-alt2 p9+254920.2400.19.1 1601385869 installed <13>Sep 29 12:13:34 rpmi: libtasn1-4.14-alt1 p9+235792.100.2.1 1565425233 installed <13>Sep 29 12:13:34 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Sep 29 12:13:34 rpmi: alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Sep 29 12:13:34 rpmi: ca-certificates-2021.10.06-alt1 p9+289862.100.1.1 1637033643 installed <13>Sep 29 12:13:34 rpmi: ca-trust-0.1.2-alt1 p9+233349.100.1.1 1561655062 installed <13>Sep 29 12:13:34 rpmi: p11-kit-trust-0.23.15-alt2 p9+254920.2400.19.1 1601385869 installed <13>Sep 29 12:13:34 rpmi: libcrypto1.1-1.1.1w-alt0.p9.1 p9+356668.100.1.1 1725304346 installed <13>Sep 29 12:13:34 rpmi: libssl1.1-1.1.1w-alt0.p9.1 p9+356668.100.1.1 1725304346 installed <13>Sep 29 12:13:34 rpmi: python3-3.7.17-alt2 p9+350963.100.1.1 1718376947 installed <13>Sep 29 12:13:34 rpmi: libpython3-3.7.17-alt2 p9+350963.100.1.1 1718376947 installed <13>Sep 29 12:13:35 rpmi: python3-base-3.7.17-alt2 p9+350963.100.1.1 1718376947 installed <13>Sep 29 12:13:35 rpmi: tests-for-installed-python3-pkgs-0.1.13.1-alt2 1535450458 installed <13>Sep 29 12:13:35 rpmi: rpm-build-python3-0.1.13.1-alt2 1535450458 installed <13>Sep 29 12:13:39 rpmi: python3-module-pkg_resources-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed <13>Sep 29 12:13:39 rpmi: python-modules-curses-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed <13>Sep 29 12:13:39 rpmi: libncurses-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686221 installed <13>Sep 29 12:13:39 rpmi: libtinfo-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686221 installed <13>Sep 29 12:13:39 rpmi: libncurses-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686221 installed <13>Sep 29 12:13:39 rpmi: python3-dev-3.7.17-alt2 p9+350963.100.1.1 1718376947 installed <13>Sep 29 12:13:39 rpmi: libverto-0.3.0-alt1_7 sisyphus+225932.100.1.1 1553994917 installed <13>Sep 29 12:13:39 rpmi: libkeyutils-1.6-alt2 sisyphus+226520.100.2.1 1554512088 installed <13>Sep 29 12:13:39 rpmi: libcom_err-1.44.6-alt1 sisyphus+224154.100.1.1 1552091653 installed <86>Sep 29 12:13:39 groupadd[952951]: group added to /etc/group: name=_keytab, GID=499 <86>Sep 29 12:13:39 groupadd[952951]: group added to /etc/gshadow: name=_keytab <86>Sep 29 12:13:39 groupadd[952951]: new group: name=_keytab, GID=499 <13>Sep 29 12:13:39 rpmi: libkrb5-1.17.2-alt5 p9+325691.100.1.1 1690460821 installed <13>Sep 29 12:13:39 rpmi: libtirpc-1.0.3-alt1 1532008015 installed <13>Sep 29 12:13:39 rpmi: libnsl2-1.1.0-alt1_1 1511548748 installed <13>Sep 29 12:13:39 rpmi: python-modules-compiler-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed <13>Sep 29 12:13:39 rpmi: python-modules-email-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed <13>Sep 29 12:13:39 rpmi: python-modules-unittest-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed <13>Sep 29 12:13:39 rpmi: python-modules-encodings-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed <13>Sep 29 12:13:39 rpmi: python-modules-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed <13>Sep 29 12:13:39 rpmi: python-modules-nis-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed <13>Sep 29 12:13:39 rpmi: python-modules-ctypes-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed <13>Sep 29 12:13:39 rpmi: python-modules-multiprocessing-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed <13>Sep 29 12:13:39 rpmi: python-modules-logging-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed <13>Sep 29 12:13:39 rpmi: python-tools-2to3-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed <13>Sep 29 12:13:39 rpmi: python-modules-xml-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed <13>Sep 29 12:13:39 rpmi: python-modules-hotshot-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed <13>Sep 29 12:13:39 rpmi: python-modules-bsddb-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed <13>Sep 29 12:13:39 rpmi: python-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed <13>Sep 29 12:13:39 rpmi: python-modules-distutils-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed <13>Sep 29 12:13:39 rpmi: python-module-pkg_resources-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed <13>Sep 29 12:13:39 rpmi: libnsl2-devel-1.1.0-alt1_1 1511548748 installed <13>Sep 29 12:13:39 rpmi: python-dev-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed <13>Sep 29 12:13:40 rpmi: python-module-setuptools-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed <13>Sep 29 12:13:40 rpmi: python3-module-setuptools-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed Building target platforms: x86_64 Building for target x86_64 Wrote: /usr/src/in/nosrpm/python-module-repoze.obob-0.4-alt3.2.nosrc.rpm (w1.gzdio) Installing python-module-repoze.obob-0.4-alt3.2.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.99497 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python-module-repoze.obob-0.4 + echo 'Source #0 (python-module-repoze.obob-0.4.tar):' Source #0 (python-module-repoze.obob-0.4.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/python-module-repoze.obob-0.4.tar + cd python-module-repoze.obob-0.4 + /bin/chmod -c -Rf u+rwX,go-w . + cp -fR . ../python3 + find ../python3 -type f -name '*.py' -exec 2to3 -w -n '{}' + RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: No changes to ../python3/setup.py RefactoringTool: Refactored ../python3/repoze/obob/tests/test_templates.py RefactoringTool: Refactored ../python3/repoze/obob/tests/test_publisher.py RefactoringTool: No changes to ../python3/repoze/obob/templates/newbob_skel/+package+/__init__.py RefactoringTool: No changes to ../python3/repoze/obob/templates/__init__.py RefactoringTool: Refactored ../python3/repoze/obob/publisher.py --- ../python3/repoze/obob/tests/test_templates.py (original) +++ ../python3/repoze/obob/tests/test_templates.py (refactored) @@ -23,10 +23,10 @@ command = DummyCommand() newbob.run(command, dn, vars) j = os.path.join - self.failUnless(os.path.isdir(j(dn, 'package'))) - self.failUnless(os.path.exists(j(dn, 'setup.py'))) - self.failUnless(os.path.exists(j(dn, 'package', '__init__.py'))) - self.failUnless(os.path.exists(j(dn, 'package', 'tests.py'))) + self.assertTrue(os.path.isdir(j(dn, 'package'))) + self.assertTrue(os.path.exists(j(dn, 'setup.py'))) + self.assertTrue(os.path.exists(j(dn, 'package', '__init__.py'))) + self.assertTrue(os.path.exists(j(dn, 'package', 'tests.py'))) finally: shutil.rmtree(dn) --- ../python3/repoze/obob/tests/test_publisher.py (original) +++ ../python3/repoze/obob/tests/test_publisher.py (refactored) @@ -45,7 +45,7 @@ self.assertEqual(len(called_with), 1) self.assertEqual(called_with[0][0], ()) self.assertEqual(called_with[0][1], {}) - self.failUnless(result is RESULT) + self.assertTrue(result is RESULT) def test_map_result_default_result_is_string(self): helper = self._makeOne() @@ -94,9 +94,9 @@ klass = self._getTargetClass() for plugpoint in _PLUGPOINTS: - from_instance = getattr(obob, plugpoint).im_func - from_class = getattr(klass, plugpoint).im_func - self.failUnless(from_instance is from_class) + from_instance = getattr(obob, plugpoint).__func__ + from_class = getattr(klass, plugpoint).__func__ + self.assertTrue(from_instance is from_class) def test_ctor_overrides(self): @@ -105,13 +105,13 @@ obob = self._makeOne(get_root=_gr, helper_factory=_hf) - self.failUnless(obob.get_root is _gr) - self.failUnless(obob.helper_factory is _hf) + self.assertTrue(obob.get_root is _gr) + self.assertTrue(obob.helper_factory is _hf) def test_get_root_default_empty(self): obob = self._makeOne() environ = object() - self.assertEqual(obob.get_root(environ).keys(), {}.keys()) + self.assertEqual(list(obob.get_root(environ).keys()), list({}.keys())) def test_get_root_default_nonempty(self): def _baz(): @@ -121,7 +121,7 @@ obob = self._makeOne(dispatchable=dispatchable, extras=extras) environ = object() root = obob.get_root(environ) - self.assertEqual(root.keys(), {'baz': 1}.keys()) + self.assertEqual(list(root.keys()), list({'baz': 1}.keys())) self.assertEqual(root['baz'], _baz) self.assertEqual(obob.extras, {'foo': 'bar'}) @@ -153,7 +153,7 @@ self.assertEqual(len(PASSED), 1) self.assertEqual(len(PASSED[0]), 2) - self.failUnless(PASSED[0][0] is environ) + self.assertTrue(PASSED[0][0] is environ) self.assertEqual(PASSED[0][1], EXTRAS) def test___call__default_empty_root(self): --- ../python3/repoze/obob/publisher.py (original) +++ ../python3/repoze/obob/publisher.py (refactored) @@ -76,7 +76,7 @@ @param object result Result of calling published object @return tuple WSGI triple: (status, headers, body_iter) """ - if isinstance(result, basestring): + if isinstance(result, str): result = [result] return '200 OK', [('Content-Type', 'text/html')], result @@ -95,7 +95,7 @@ """ t, v, tb = exc_info try: - raise t, v, tb + raise t(v).with_traceback(tb) finally: del tb @@ -198,7 +198,7 @@ self._dispatchable = dispatchable def keys(self): - return self._dispatchable.keys() + return list(self._dispatchable.keys()) def __getitem__(self, key): return self._dispatchable[key] @@ -208,7 +208,7 @@ '', RefactoringTool: No changes to ../python3/repoze/__init__.py RefactoringTool: Files that were modified: RefactoringTool: ../python3/setup.py RefactoringTool: ../python3/repoze/obob/tests/test_templates.py RefactoringTool: ../python3/repoze/obob/tests/test_publisher.py RefactoringTool: ../python3/repoze/obob/templates/newbob_skel/+package+/__init__.py RefactoringTool: ../python3/repoze/obob/templates/__init__.py RefactoringTool: ../python3/repoze/obob/publisher.py RefactoringTool: ../python3/repoze/__init__.py '