<86>Sep 14 10:27:37 userdel[2028696]: delete user 'rooter' <86>Sep 14 10:27:37 userdel[2028696]: removed group 'rooter' owned by 'rooter' <86>Sep 14 10:27:37 userdel[2028696]: removed shadow group 'rooter' owned by 'rooter' <86>Sep 14 10:27:37 groupadd[2028710]: group added to /etc/group: name=rooter, GID=654 <86>Sep 14 10:27:37 groupadd[2028710]: group added to /etc/gshadow: name=rooter <86>Sep 14 10:27:37 groupadd[2028710]: new group: name=rooter, GID=654 <86>Sep 14 10:27:37 useradd[2028719]: new user: name=rooter, UID=654, GID=654, home=/root, shell=/bin/bash <86>Sep 14 10:27:37 userdel[2028736]: delete user 'builder' <86>Sep 14 10:27:37 userdel[2028736]: removed group 'builder' owned by 'builder' <86>Sep 14 10:27:37 userdel[2028736]: removed shadow group 'builder' owned by 'builder' <86>Sep 14 10:27:37 groupadd[2028748]: group added to /etc/group: name=builder, GID=655 <86>Sep 14 10:27:37 groupadd[2028748]: group added to /etc/gshadow: name=builder <86>Sep 14 10:27:37 groupadd[2028748]: new group: name=builder, GID=655 <86>Sep 14 10:27:37 useradd[2028761]: new user: name=builder, UID=655, GID=655, home=/usr/src, shell=/bin/bash <13>Sep 14 10:27:39 rpmi: rpm-build-compat-2.2.8-alt1 sisyphus+282789.100.1.1 1629027282 installed <13>Sep 14 10:27:39 rpmi: libgdbm-1.8.3-alt10 sisyphus+278100.1600.1.1 1626059138 installed <13>Sep 14 10:27:39 rpmi: libexpat-2.2.10-alt1 sisyphus+276608.100.1.2 1625153360 installed <13>Sep 14 10:27:39 rpmi: libp11-kit-0.23.15-alt2 sisyphus+278382.100.1.2 1626190687 installed <13>Sep 14 10:27:39 rpmi: libtasn1-4.17.0-alt1 sisyphus+276722.100.1.1 1625211286 installed <13>Sep 14 10:27:39 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+278157.100.2.1 1626055790 installed <13>Sep 14 10:27:39 rpmi: alternatives-0.5.1-alt1 sisyphus+278157.100.2.1 1626055790 installed <13>Sep 14 10:27:39 rpmi: ca-certificates-2021.06.03-alt1 sisyphus+273509.400.1.1 1622736045 installed <13>Sep 14 10:27:39 rpmi: ca-trust-0.1.2-alt1 sisyphus+233348.100.1.1 1561653823 installed <13>Sep 14 10:27:39 rpmi: p11-kit-trust-0.23.15-alt2 sisyphus+278382.100.1.2 1626190687 installed <13>Sep 14 10:27:39 rpmi: libcrypto1.1-1.1.1l-alt1 sisyphus+283685.100.1.1 1629816097 installed <13>Sep 14 10:27:39 rpmi: libssl1.1-1.1.1l-alt1 sisyphus+283685.100.1.1 1629816097 installed <13>Sep 14 10:27:39 rpmi: python3-3.9.6-alt2 sisyphus+283178.100.2.1 1629243244 installed <13>Sep 14 10:27:40 rpmi: python3-base-3.9.6-alt2 sisyphus+283178.100.2.1 1629243244 installed <13>Sep 14 10:27:40 rpmi: libpython3-3.9.6-alt2 sisyphus+283178.100.2.1 1629243244 installed <13>Sep 14 10:27:40 rpmi: tests-for-installed-python3-pkgs-0.1.17-alt1 sisyphus+271082.100.1.1 1619820927 installed <13>Sep 14 10:27:40 rpmi: rpm-build-python3-0.1.17-alt1 sisyphus+271082.100.1.1 1619820927 installed <13>Sep 14 10:27:40 rpmi: rpm-build-intro-2.2.8-alt1 sisyphus+282789.100.1.1 1629027282 installed <13>Sep 14 10:27:43 rpmi: libtcl-8.6.11-alt3 sisyphus+284233.40.3.1 1630366292 installed <13>Sep 14 10:27:43 rpmi: tcl-8.6.11-alt3 sisyphus+284233.40.3.1 1630366292 installed <13>Sep 14 10:27:43 rpmi: python3-modules-curses-3.9.6-alt2 sisyphus+283178.100.2.1 1629243244 installed <13>Sep 14 10:27:43 rpmi: python3-module-pkg_resources-1:57.4.0-alt1 sisyphus+280768.100.2.1 1627367207 installed <13>Sep 14 10:27:43 rpmi: libncurses-6.2.20210123-alt2 sisyphus+283886.200.2.1 1630022624 installed <13>Sep 14 10:27:43 rpmi: libtinfo-devel-6.2.20210123-alt2 sisyphus+283886.200.2.1 1630022624 installed <13>Sep 14 10:27:43 rpmi: libncurses-devel-6.2.20210123-alt2 sisyphus+283886.200.2.1 1630022624 installed <13>Sep 14 10:27:43 rpmi: python3-dev-3.9.6-alt2 sisyphus+283178.100.2.1 1629243244 installed <13>Sep 14 10:27:43 rpmi: libpng16-1.6.37-alt1 sisyphus+275734.100.2.1 1624788812 installed <13>Sep 14 10:27:43 rpmi: libbrotlicommon-1.0.9-alt2 sisyphus+278430.100.1.2 1626213212 installed <13>Sep 14 10:27:43 rpmi: libbrotlidec-1.0.9-alt2 sisyphus+278430.100.1.2 1626213212 installed <13>Sep 14 10:27:43 rpmi: libgraphite2-1.3.14-alt2.1 sisyphus+279571.100.1.2 1626605157 installed <13>Sep 14 10:27:43 rpmi: libharfbuzz-2.8.2-alt1 sisyphus+276374.40.4.1 1628747521 installed <13>Sep 14 10:27:43 rpmi: libfreetype-2.11.0-alt1 sisyphus+281294.100.1.1 1627488674 installed <13>Sep 14 10:27:43 rpmi: fontconfig-2.13.1-alt2 sisyphus+283256.100.1.1 1629274963 installed Updating fonts cache: <29>Sep 14 10:27:44 fontconfig: Updating fonts cache: succeeded [ DONE ] <13>Sep 14 10:27:44 rpmi: libXdmcp-1.1.3-alt1 sisyphus+278816.100.1.1 1626219233 installed <13>Sep 14 10:27:44 rpmi: libXau-1.0.9-alt1 sisyphus+278247.100.1.1 1626080738 installed <13>Sep 14 10:27:44 rpmi: libxcb-1.14-alt1 sisyphus+277968.100.1.3 1625952333 installed <13>Sep 14 10:27:44 rpmi: libX11-locales-3:1.7.2-alt1 sisyphus+279629.100.1.1 1626637383 installed <13>Sep 14 10:27:44 rpmi: libX11-3:1.7.2-alt1 sisyphus+279629.100.1.1 1626637391 installed <13>Sep 14 10:27:44 rpmi: libXrender-0.9.10-alt1 sisyphus+278480.100.1.2 1626227741 installed <13>Sep 14 10:27:44 rpmi: libXft-2.3.4-alt1 sisyphus+284644.500.1.1 1630910448 installed <13>Sep 14 10:27:44 rpmi: libtk-8.6.11.1-alt2 sisyphus+284049.200.1.1 1630096283 installed <13>Sep 14 10:27:44 rpmi: tk-8.6.11.1-alt2 sisyphus+284049.200.1.1 1630096283 installed <13>Sep 14 10:27:44 rpmi: tcl-tix-8.4.3-alt4 sisyphus+277292.300.2.1 1625442551 installed <13>Sep 14 10:27:44 rpmi: python3-modules-tkinter-3.9.6-alt2 sisyphus+283178.100.2.1 1629243244 installed <13>Sep 14 10:27:44 rpmi: python3-tools-3.9.6-alt2 sisyphus+283178.100.2.1 1629243244 installed <13>Sep 14 10:27:44 rpmi: python3-module-setuptools-1:57.4.0-alt1 sisyphus+280768.100.2.1 1627367207 installed Building target platforms: i586 Building for target i586 Wrote: /usr/src/in/nosrpm/python3-module-repoze.urispace-0.3.2-alt4.nosrc.rpm (w1.gzdio) Installing python3-module-repoze.urispace-0.3.2-alt4.src.rpm Building target platforms: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.37309 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python3-module-repoze.urispace-0.3.2 + echo 'Source #0 (python3-module-repoze.urispace-0.3.2.tar):' Source #0 (python3-module-repoze.urispace-0.3.2.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/python3-module-repoze.urispace-0.3.2.tar + cd python3-module-repoze.urispace-0.3.2 + /bin/chmod -c -Rf u+rwX,go-w . + find . -type f -name '*.py' -exec python3-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 ./setup.py RefactoringTool: Refactored ./repoze/urispace/tests/test_selectors.py RefactoringTool: Refactored ./repoze/urispace/tests/test_predicates.py RefactoringTool: Refactored ./repoze/urispace/tests/test_parser.py --- ./repoze/urispace/tests/test_selectors.py (original) +++ ./repoze/urispace/tests/test_selectors.py (refactored) @@ -46,7 +46,7 @@ children = one.listChildren() self.assertEqual(len(children), 1) - self.failUnless(children[0] is two) + self.assertTrue(children[0] is two) def test_addChild_IURISpaceElement(self): one = self._makeOne() @@ -56,7 +56,7 @@ children = one.listChildren() self.assertEqual(len(children), 1) - self.failUnless(children[0] is two) + self.assertTrue(children[0] is two) def test_addChild_not_IURISpaceElement(self): one = self._makeOne() @@ -84,7 +84,7 @@ commands = one.collect(info) self.assertEqual(len(commands), 1) - self.failUnless(commands[0] is command) + self.assertTrue(commands[0] is command) class FalseSelectorTests(unittest.TestCase, @@ -156,7 +156,7 @@ commands = one.collect(info) self.assertEqual(len(commands), 1) - self.failUnless(commands[0] is command) + self.assertTrue(commands[0] is command) def test_collect_nested_hit(self): one = self._makeOne(DummyPredicate(True, ('index.html',))) @@ -171,8 +171,8 @@ commands = one.collect(info) self.assertEqual(len(commands), 2) - self.failUnless(commands[0] is command) - self.failUnless(commands[1] is command2) + self.assertTrue(commands[0] is command) + self.assertTrue(commands[1] is command2) class DummyPredicate: --- ./repoze/urispace/tests/test_predicates.py (original) +++ ./repoze/urispace/tests/test_predicates.py (refactored) @@ -11,7 +11,7 @@ def assertMiss(self, pattern, info): pp = self._makeOne(pattern) hit, new_info = pp(info) - self.failIf(hit) + self.assertFalse(hit) self.assertEqual(new_info, None) def assertHit(self, pattern, info, expected_info=_MARKER): @@ -19,7 +19,7 @@ expected_info = info pp = self._makeOne(pattern) hit, new_info = pp(info) - self.failUnless(hit) + self.assertTrue(hit) self.assertEqual(new_info, expected_info) @@ -133,55 +133,55 @@ def test_match_empty_nonempty_miss(self): ep = self._makeOne('') - self.failIf(ep('foo')) + self.assertFalse(ep('foo')) def test_match_empty_empty_hit(self): ep = self._makeOne('') - self.failUnless(ep('')) + self.assertTrue(ep('')) def test_match_noempty_empty_miss(self): ep = self._makeOne('foo') - self.failIf(ep('')) + self.assertFalse(ep('')) def test_match_nonempty_nonempty_miss(self): ep = self._makeOne('foo') - self.failIf(ep('bar')) + self.assertFalse(ep('bar')) def test_match_nonempty_nonempty_hit(self): ep = self._makeOne('foo') - self.failUnless(ep('foo')) + self.assertTrue(ep('foo')) def test_match_wildcard_any_empty_hit(self): ep = self._makeOne('*') - self.failUnless(ep('')) + self.assertTrue(ep('')) def test_match_wildcard_any_nonempty_path_hit(self): ep = self._makeOne('*') - self.failUnless(ep('foo')) + self.assertTrue(ep('foo')) def test_match_wildcard_prefix_miss(self): ep = self._makeOne('*.html') - self.failIf(ep('foohtml')) + self.assertFalse(ep('foohtml')) def test_match_wildcard_prefix_hit(self): ep = self._makeOne('*.html') - self.failUnless(ep('foo.html')) + self.assertTrue(ep('foo.html')) def test_match_wildcard_middle_miss(self): ep = self._makeOne('foo*.html') - self.failIf(ep('foohtml')) + self.assertFalse(ep('foohtml')) def test_match_wildcard_middle_pattern_hit(self): ep = self._makeOne('foo*.html') - self.failUnless(ep('foo.html')) + self.assertTrue(ep('foo.html')) def test_match_wildcard_suffix_miss(self): ep = self._makeOne('foo*') - self.failIf(ep('barfoo')) + self.assertFalse(ep('barfoo')) def test_match_wildcard_suffix_pattern_hit(self): ep = self._makeOne('foo*') - self.failUnless(ep('foo.html')) + self.assertTrue(ep('foo.html')) class PathFirstPredicateTests(unittest.TestCase, _PredicateTestBase): --- ./repoze/urispace/tests/test_parser.py (original) +++ ./repoze/urispace/tests/test_parser.py (refactored) @@ -8,7 +8,7 @@ source = self._makeElement('simple', attrs) source.text = 'Simple' # XXX need RDF bag derived = self._callFUT(source) - self.failUnless(isinstance(derived, UnionOperator)) + self.assertTrue(isinstance(derived, UnionOperator)) self.assertEqual(derived.key, 'simple') self.assertEqual(derived.value, 'Simple') @@ -18,7 +18,7 @@ source = self._makeElement('simple', attrs) source.text = 'Simple' # XXX need RDF bag derived = self._callFUT(source) - self.failUnless(isinstance(derived, IntersectionOperator)) + self.assertTrue(isinstance(derived, IntersectionOperator)) self.assertEqual(derived.key, 'simple') self.assertEqual(derived.value, 'Simple') @@ -28,7 +28,7 @@ source = self._makeElement('simple', attrs) source.text = 'Simple' # XXX need RDF bag derived = self._callFUT(source) - self.failUnless(isinstance(derived, RevIntersectionOperator)) + self.assertTrue(isinstance(derived, RevIntersectionOperator)) self.assertEqual(derived.key, 'simple') self.assertEqual(derived.value, 'Simple') @@ -38,7 +38,7 @@ source = self._makeElement('simple', attrs) source.text = 'Simple' # XXX need RDF bag derived = self._callFUT(source) - self.failUnless(isinstance(derived, DifferenceOperator)) + self.assertTrue(isinstance(derived, DifferenceOperator)) self.assertEqual(derived.key, 'simple') self.assertEqual(derived.value, 'Simple') @@ -48,7 +48,7 @@ source = self._makeElement('simple', attrs) source.text = 'Simple' # XXX need RDF bag derived = self._callFUT(source) - self.failUnless(isinstance(derived, RevDifferenceOperator)) + self.assertTrue(isinstance(derived, RevDifferenceOperator)) self.assertEqual(derived.key, 'simple') self.assertEqual(derived.value, 'Simple') @@ -70,7 +70,7 @@ def _makeNSAttrs(self, ns, attrs=None, **kw): if attrs is None: attrs = {} - for k, v in kw.items(): + for k, v in list(kw.items()): qname = self._makeQName(k, ns) attrs[qname] = v return attrs @@ -92,7 +92,7 @@ source = self._makeElement('simple', {}) source.text = 'Simple' derived = self._callFUT(source) - self.failUnless(isinstance(derived, ReplaceOperator)) + self.assertTrue(isinstance(derived, ReplaceOperator)) self.assertEqual(derived.key, 'simple') self.assertEqual(derived.value, 'Simple') @@ -101,7 +101,7 @@ attrs = self._makeURISpaceAttrs(op='clear') source = self._makeElement('simple', attrs) derived = self._callFUT(source) - self.failUnless(isinstance(derived, ClearOperator)) + self.assertTrue(isinstance(derived, ClearOperator)) self.assertEqual(derived.key, 'simple') self.assertEqual(derived.value, None) @@ -111,7 +111,7 @@ source = self._makeElement('simple', attrs) source.text = 'Simple' derived = self._callFUT(source) - self.failUnless(isinstance(derived, ReplaceOperator)) + self.assertTrue(isinstance(derived, ReplaceOperator)) self.assertEqual(derived.key, 'simple') self.assertEqual(derived.value, 'Simple') @@ -121,7 +121,7 @@ source = self._makeElement('simple', attrs) source.text = 'Simple' derived = self._callFUT(source) - self.failUnless(isinstance(derived, PrependOperator)) + self.assertTrue(isinstance(derived, PrependOperator)) self.assertEqual(derived.key, 'simple') self.assertEqual(derived.value, 'Simple') @@ -131,7 +131,7 @@ source = self._makeElement('simple', attrs) source.text = 'Simple' derived = self._callFUT(source) - self.failUnless(isinstance(derived, AppendOperator)) + self.assertTrue(isinstance(derived, AppendOperator)) self.assertEqual(derived.key, 'simple') self.assertEqual(derived.value, 'Simple') @@ -140,14 +140,14 @@ qname = self._makeExtensionQName('true') source = self._makeElement(qname, {}) derived = self._callFUT(source) - self.failUnless(isinstance(derived, TrueSelector)) + self.assertTrue(isinstance(derived, TrueSelector)) def test_false_selector_tag(self): from repoze.urispace.selectors import FalseSelector qname = self._makeExtensionQName('false') source = self._makeElement(qname, {}) derived = self._callFUT(source) - self.failUnless(isinstance(derived, FalseSelector)) + self.assertTrue(isinstance(derived, FalseSelector)) def test_scheme_selector_tag_no_match_attr_raises(self): qname = self._makeURISpaceQName('scheme') @@ -161,8 +161,8 @@ attrs = self._makeURISpaceAttrs(match='http') source = self._makeElement(qname, attrs) derived = self._callFUT(source) - self.failUnless(isinstance(derived, PredicateSelector)) - self.failUnless(isinstance(derived.predicate, SchemePredicate)) + self.assertTrue(isinstance(derived, PredicateSelector)) + self.assertTrue(isinstance(derived.predicate, SchemePredicate)) self.assertEqual(derived.predicate.pattern, 'http') def test_nethost_selector_tag_no_match_attr_raises(self): @@ -177,8 +177,8 @@ attrs = self._makeURISpaceAttrs(match='www.example.com') source = self._makeElement(qname, attrs) derived = self._callFUT(source) - self.failUnless(isinstance(derived, PredicateSelector)) - self.failUnless(isinstance(derived.predicate, NethostPredicate)) + self.assertTrue(isinstance(derived, PredicateSelector)) + self.assertTrue(isinstance(derived.predicate, NethostPredicate)) self.assertEqual(derived.predicate.pattern, 'www.example.com') def test_path_selector_tag_no_match_attr_raises(self): @@ -193,8 +193,8 @@ attrs = self._makeURISpaceAttrs(match='index.html') source = self._makeElement(qname, attrs) derived = self._callFUT(source) - self.failUnless(isinstance(derived, PredicateSelector)) - self.failUnless(isinstance(derived.predicate, PathFirstPredicate)) + self.assertTrue(isinstance(derived, PredicateSelector)) + self.assertTrue(isinstance(derived.predicate, PathFirstPredicate)) self.assertEqual(derived.predicate.pattern.pattern, 'index.html') def test_pathlast_selector_tag_no_match_attr_raises(self): @@ -209,8 +209,8 @@ attrs = self._makeURISpaceAttrs(match='index.html') source = self._makeElement(qname, attrs) derived = self._callFUT(source) - self.failUnless(isinstance(derived, PredicateSelector)) - self.failUnless(isinstance(derived.predicate, PathLastPredicate)) + self.assertTrue(isinstance(derived, PredicateSelector)) + self.assertTrue(isinstance(derived.predicate, PathLastPredicate)) self.assertEqual(derived.predicate.pattern.pattern, 'index.html') def test_pathany_selector_tag_no_match_attr_raises(self): @@ -225,8 +225,8 @@ attrs = self._makeURISpaceAttrs(match='foobar') source = self._makeElement(qname, attrs) derived = self._callFUT(source) - self.failUnless(isinstance(derived, PredicateSelector)) - self.failUnless(isinstance(derived.predicate, PathAnyPredicate)) + self.assertTrue(isinstance(derived, PredicateSelector)) + self.assertTrue(isinstance(derived.predicate, PathAnyPredicate)) self.assertEqual(derived.predicate.pattern.pattern, 'foobar') def test_query_selector_tag_no_match_attr_raises(self): @@ -241,8 +241,8 @@ attrs = self._makeURISpaceAttrs(match='foo') source = self._makeElement(qname, attrs) derived = self._callFUT(source) - self.failUnless(isinstance(derived, PredicateSelector)) - self.failUnless(isinstance(derived.predicate, QueryKeyPredicate)) + self.assertTrue(isinstance(derived, PredicateSelector)) + self.assertTrue(isinstance(derived.predicate, QueryKeyPredicate)) self.assertEqual(derived.predicate.pattern, 'foo') def test_query_selector_tag_w_match_attr_and_value(self): @@ -252,8 +252,8 @@ attrs = self._makeURISpaceAttrs(match='foo=bar') source = self._makeElement(qname, attrs) derived = self._callFUT(source) - self.failUnless(isinstance(derived, PredicateSelector)) - self.failUnless(isinstance(derived.predicate, QueryValuePredicate)) + self.assertTrue(isinstance(derived, PredicateSelector)) + self.assertTrue(isinstance(derived.predicate, QueryValuePredicate)) self.assertEqual(derived.predicate.pattern, 'foo=bar') @@ -302,7 +302,7 @@ from repoze.urispace.selectors import TrueSelector tree = self._parse(EMPTY_TREE) urispace = self._callFUT(tree) - self.failUnless(isinstance(urispace, TrueSelector)) + self.assertTrue(isinstance(urispace, TrueSelector)) self.assertEqual(len(urispace.listChildren()), 0) def test_simple_tree(self): @@ -310,11 +310,11 @@ self._setFactory(self._makeElement) tree = self._parse(SIMPLE_TREE) urispace = self._callFUT(tree) - self.failUnless(isinstance(urispace, TrueSelector)) + self.assertTrue(isinstance(urispace, TrueSelector)) children = urispace.listChildren() self.assertEqual(len(children), 1) child = children[0] - self.failUnless(isinstance(child, DummyOperator)) + self.assertTrue(isinstance(child, DummyOperator)) self.assertEqual(child.node.tag, 'simple') self.assertEqual(child.node.text, 'Simple') @@ -327,24 +327,24 @@ urispace = self._callFUT(tree) - self.failUnless(isinstance(urispace, TrueSelector)) + self.assertTrue(isinstance(urispace, TrueSelector)) children = urispace.listChildren() self.assertEqual(len(children), 2) operator = children[0] - self.failUnless(isinstance(operator, DummyOperator)) + self.assertTrue(isinstance(operator, DummyOperator)) self.assertEqual(operator.node.tag, 'simple') self.assertEqual(operator.node.text, 'Simple') selector = children[1] - self.failUnless(isinstance(selector, DummySelector)) + self.assertTrue(isinstance(selector, DummySelector)) self.assertEqual(selector.node.tag, '{%s}path' % URISPACE_NS) grands = selector.listChildren() self.assertEqual(len(grands), 1) grand = grands[0] - self.failUnless(isinstance(grand, DummyOperator)) + self.assertTrue(isinstance(grand, DummyOperator)) self.assertEqual(grand.node.tag, 'simple') self.assertEqual(grand.node.text, 'Overridden') @@ -357,41 +357,41 @@ urispace = self._callFUT(tree) - self.failUnless(isinstance(urispace, TrueSelector)) + self.assertTrue(isinstance(urispace, TrueSelector)) children = urispace.listChildren() self.assertEqual(len(children), 2) operator = children[0] - self.failUnless(isinstance(operator, DummyOperator)) + self.assertTrue(isinstance(operator, DummyOperator)) self.assertEqual(operator.node.tag, 'simple') self.assertEqual(operator.node.text, 'Simple') selector = children[1] - self.failUnless(isinstance(selector, DummySelector)) + self.assertTrue(isinstance(selector, DummySelector)) self.assertEqual(selector.node.tag, '{%s}path' % URISPACE_NS) grands = selector.listChildren() RefactoringTool: Refactored ./repoze/urispace/tests/test_operators.py RefactoringTool: Refactored ./repoze/urispace/tests/test_middleware.py RefactoringTool: No changes to ./repoze/urispace/selectors.py RefactoringTool: Refactored ./repoze/urispace/scripts/uri_test.py RefactoringTool: No changes to ./repoze/urispace/predicates.py RefactoringTool: No changes to ./repoze/urispace/parser.py RefactoringTool: Refactored ./repoze/urispace/operators.py RefactoringTool: Refactored ./repoze/urispace/middleware.py RefactoringTool: Refactored ./repoze/urispace/interfaces.py RefactoringTool: No changes to ./repoze/__init__.py RefactoringTool: Refactored ./ez_setup.py self.assertEqual(len(grands), 2) nested = grands[0] - self.failUnless(isinstance(nested, DummySelector)) + self.assertTrue(isinstance(nested, DummySelector)) self.assertEqual(nested.node.tag, '{%s}scheme' % URISPACE_NS) greats = nested.listChildren() self.assertEqual(len(greats), 2) great = greats[0] - self.failUnless(isinstance(great, DummyOperator)) + self.assertTrue(isinstance(great, DummyOperator)) self.assertEqual(great.node.tag, 'simple') self.assertEqual(great.node.text, 'Re-overridden') another = greats[1] - self.failUnless(isinstance(another, DummyOperator)) + self.assertTrue(isinstance(another, DummyOperator)) self.assertEqual(another.node.tag, 'another') self.assertEqual(another.node.text, 'Value') grand = grands[1] - self.failUnless(isinstance(grand, DummyOperator)) + self.assertTrue(isinstance(grand, DummyOperator)) self.assertEqual(grand.node.tag, 'simple') self.assertEqual(grand.node.text, 'Overridden') --- ./repoze/urispace/tests/test_operators.py (original) +++ ./repoze/urispace/tests/test_operators.py (refactored) @@ -337,7 +337,7 @@ def test__listify_w_unicode(self): seqop = self._makeOne() - self.assertEqual(seqop._listify(u'abc'), [u'abc']) + self.assertEqual(seqop._listify('abc'), ['abc']) def test__listify_w_tuple(self): seqop = self._makeOne() --- ./repoze/urispace/tests/test_middleware.py (original) +++ ./repoze/urispace/tests/test_middleware.py (refactored) @@ -52,7 +52,7 @@ return filename def _makeStream(self, text): - from StringIO import StringIO + from io import StringIO return StringIO(text) class Test_getAssertions(unittest.TestCase): @@ -181,7 +181,7 @@ mw = self._makeOne(application, stream) - self.failUnless(mw.application is application) + self.assertTrue(mw.application is application) verifyObject(IURISpaceElement, mw.urispace) def test_ctor_w_filename(self): @@ -192,7 +192,7 @@ mw = self._makeOne(application, filename) - self.failUnless(mw.application is application) + self.assertTrue(mw.application is application) verifyObject(IURISpaceElement, mw.urispace) def test___call___w_empty_urispace(self): @@ -264,7 +264,7 @@ global_config = {} stream = self._makeStream(_EMPTY_URISPACE) mw = self._callFUT(app, global_config, stream=stream) - self.failUnless(mw.application is app) + self.assertTrue(mw.application is app) verifyObject(IURISpaceElement, mw.urispace) def test_w_only_filename(self): @@ -274,7 +274,7 @@ global_config = {} filename = self._makeFile(_EMPTY_URISPACE) mw = self._callFUT(app, global_config, filename=filename) - self.failUnless(mw.application is app) + self.assertTrue(mw.application is app) verifyObject(IURISpaceElement, mw.urispace) --- ./repoze/urispace/scripts/uri_test.py (original) +++ ./repoze/urispace/scripts/uri_test.py (refactored) @@ -9,14 +9,14 @@ """ from cgi import parse_qs import sys -from urlparse import urlsplit +from urllib.parse import urlsplit def usage(message='', rc=1): - print __doc__ + print(__doc__) if message: - print '' - print message - print '' + print('') + print(message) + print('') sys.exit(rc) def parseURISpace(filename): @@ -46,10 +46,10 @@ assertions = {} for operator in operators: operator.apply(assertions) - print '-' * 78 - print 'URI:', uri - print '-' * 78 + print('-' * 78) + print('URI:', uri) + print('-' * 78) for key, value in sorted(assertions.items()): - print '%s = %s' % (key, value) - print + print('%s = %s' % (key, value)) + print() --- ./repoze/urispace/operators.py (original) +++ ./repoze/urispace/operators.py (refactored) @@ -113,7 +113,7 @@ def _listify(self, x): if x is None: return [] - if isinstance(x, basestring): + if isinstance(x, str): x = [x] if not isinstance(x, list): x = list(x) --- ./repoze/urispace/middleware.py (original) +++ ./repoze/urispace/middleware.py (refactored) @@ -18,7 +18,7 @@ nethost = '%s:%s' % (nethost, port) path = '%s/%s' % (environ['SCRIPT_NAME'], environ['PATH_INFO']) - path = filter(None, path.split('/')) + path = [_f for _f in path.split('/') if _f] query = parse_qs(environ['QUERY_STRING'], keep_blank_values=1) --- ./repoze/urispace/interfaces.py (original) +++ ./repoze/urispace/interfaces.py (refactored) @@ -10,8 +10,8 @@ o Command pattern """ - key = Attribute(u"To what key does the operation pertain?") - value = Attribute(u"What value is used in this operation?") + key = Attribute("To what key does the operation pertain?") + value = Attribute("What value is used in this operation?") def apply(assertions): """ Perform the given operation on a set of assertions. --- ./ez_setup.py (original) +++ ./ez_setup.py (refactored) @@ -57,10 +57,10 @@ from md5 import md5 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 @@ -91,14 +91,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 @@ -117,7 +117,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) @@ -143,7 +143,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()) @@ -204,10 +204,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 @@ -226,8 +226,8 @@ from setuptools.command.easy_install import main main(argv) else: - print "Setuptools version",version,"or greater has been installed." - print '(Run "ez_setup.py -U setuptools" to reinstall or upgrade.)' RefactoringTool: No changes to ./docs/conf.py RefactoringTool: Files that were modified: RefactoringTool: ./setup.py RefactoringTool: ./repoze/urispace/tests/test_selectors.py RefactoringTool: ./repoze/urispace/tests/test_predicates.py RefactoringTool: ./repoze/urispace/tests/test_parser.py RefactoringTool: ./repoze/urispace/tests/test_operators.py RefactoringTool: ./repoze/urispace/tests/test_middleware.py RefactoringTool: ./repoze/urispace/selectors.py RefactoringTool: ./repoze/urispace/scripts/uri_test.py RefactoringTool: ./repoze/urispace/predicates.py RefactoringTool: ./repoze/urispace/parser.py RefactoringTool: ./repoze/urispace/operators.py RefactoringTool: ./repoze/urispace/middleware.py RefactoringTool: ./repoze/urispace/interfaces.py RefactoringTool: ./repoze/__init__.py RefactoringTool: ./ez_setup.py RefactoringTool: ./docs/conf.py + 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""" @@ -241,7 +241,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) @@ -251,7 +251,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):] + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.66309 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python3-module-repoze.urispace-0.3.2 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -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/repoze copying repoze/__init__.py -> build/lib/repoze creating build/lib/repoze/urispace copying repoze/urispace/selectors.py -> build/lib/repoze/urispace copying repoze/urispace/predicates.py -> build/lib/repoze/urispace copying repoze/urispace/parser.py -> build/lib/repoze/urispace copying repoze/urispace/operators.py -> build/lib/repoze/urispace copying repoze/urispace/middleware.py -> build/lib/repoze/urispace copying repoze/urispace/interfaces.py -> build/lib/repoze/urispace copying repoze/urispace/__init__.py -> build/lib/repoze/urispace creating build/lib/repoze/urispace/tests copying repoze/urispace/tests/test_selectors.py -> build/lib/repoze/urispace/tests copying repoze/urispace/tests/test_predicates.py -> build/lib/repoze/urispace/tests copying repoze/urispace/tests/test_parser.py -> build/lib/repoze/urispace/tests copying repoze/urispace/tests/test_operators.py -> build/lib/repoze/urispace/tests copying repoze/urispace/tests/test_middleware.py -> build/lib/repoze/urispace/tests copying repoze/urispace/tests/__init__.py -> build/lib/repoze/urispace/tests creating build/lib/repoze/urispace/scripts copying repoze/urispace/scripts/uri_test.py -> build/lib/repoze/urispace/scripts copying repoze/urispace/scripts/__init__.py -> build/lib/repoze/urispace/scripts running egg_info writing repoze.urispace.egg-info/PKG-INFO writing dependency_links to repoze.urispace.egg-info/dependency_links.txt writing entry points to repoze.urispace.egg-info/entry_points.txt writing namespace_packages to repoze.urispace.egg-info/namespace_packages.txt writing requirements to repoze.urispace.egg-info/requires.txt writing top-level names to repoze.urispace.egg-info/top_level.txt reading manifest file 'repoze.urispace.egg-info/SOURCES.txt' adding license file 'LICENSE.txt' writing manifest file 'repoze.urispace.egg-info/SOURCES.txt' + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.49791 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python3-module-repoze.urispace-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python3-module-repoze.urispace-buildroot + PATH=/usr/libexec/rpm-build:/usr/src/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games + cd python3-module-repoze.urispace-0.3.2 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export FFLAGS + /usr/bin/python3 setup.py install --skip-build --root=/usr/src/tmp/python3-module-repoze.urispace-buildroot --force running install running install_lib Skipping installation of /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/__init__.py (namespace package) copying repoze/urispace/__init__.py -> /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace copying repoze/urispace/interfaces.py -> /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace copying repoze/urispace/middleware.py -> /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace copying repoze/urispace/operators.py -> /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace copying repoze/urispace/parser.py -> /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace copying repoze/urispace/predicates.py -> /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace copying repoze/urispace/selectors.py -> /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace copying repoze/urispace/scripts/__init__.py -> /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/scripts copying repoze/urispace/scripts/uri_test.py -> /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/scripts copying repoze/urispace/tests/__init__.py -> /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/tests copying repoze/urispace/tests/test_middleware.py -> /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/tests copying repoze/urispace/tests/test_operators.py -> /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/tests copying repoze/urispace/tests/test_parser.py -> /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/tests copying repoze/urispace/tests/test_predicates.py -> /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/tests copying repoze/urispace/tests/test_selectors.py -> /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/tests byte-compiling /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/__init__.py to __init__.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/interfaces.py to interfaces.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/middleware.py to middleware.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/operators.py to operators.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/parser.py to parser.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/predicates.py to predicates.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/selectors.py to selectors.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/scripts/__init__.py to __init__.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/scripts/uri_test.py to uri_test.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/tests/__init__.py to __init__.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/tests/test_middleware.py to test_middleware.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/tests/test_operators.py to test_operators.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/tests/test_parser.py to test_parser.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/tests/test_predicates.py to test_predicates.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/tests/test_selectors.py to test_selectors.cpython-39.pyc running install_egg_info running egg_info writing repoze.urispace.egg-info/PKG-INFO writing dependency_links to repoze.urispace.egg-info/dependency_links.txt writing entry points to repoze.urispace.egg-info/entry_points.txt writing namespace_packages to repoze.urispace.egg-info/namespace_packages.txt writing requirements to repoze.urispace.egg-info/requires.txt writing top-level names to repoze.urispace.egg-info/top_level.txt reading manifest file 'repoze.urispace.egg-info/SOURCES.txt' adding license file 'LICENSE.txt' writing manifest file 'repoze.urispace.egg-info/SOURCES.txt' Copying repoze.urispace.egg-info to /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze.urispace-0.3.2-py3.9.egg-info Installing /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze.urispace-0.3.2-py3.9-nspkg.pth running install_scripts Installing uri_test script to /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/bin + for i in /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/ /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/ + find /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/ -name tests -type d -print0 + xargs -0 rm -rfv removed '/usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/tests/__pycache__/test_selectors.cpython-39.pyc' removed '/usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/tests/__pycache__/test_predicates.cpython-39.pyc' removed '/usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/tests/__pycache__/test_parser.cpython-39.pyc' removed '/usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/tests/__pycache__/test_operators.cpython-39.pyc' removed '/usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/tests/__pycache__/test_middleware.cpython-39.pyc' removed '/usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/tests/__pycache__/__init__.cpython-39.pyc' removed directory '/usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/tests/__pycache__' removed '/usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/tests/test_selectors.py' removed '/usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/tests/test_predicates.py' removed '/usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/tests/test_parser.py' removed '/usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/tests/test_operators.py' removed '/usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/tests/test_middleware.py' removed '/usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/tests/__init__.py' removed directory '/usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/tests' + find /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/ -name test -type d -print0 + xargs -0 rm -rfv + for i in /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/ /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/ + find /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/ -name tests -type d -print0 + xargs -0 rm -rfv + find /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/ -name test -type d -print0 + xargs -0 rm -rfv + pushd /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/bin ~/tmp/python3-module-repoze.urispace-buildroot/usr/bin ~/RPM/BUILD/python3-module-repoze.urispace-0.3.2 ++ ls + for i in $(ls) + mv uri_test uri_test.py3 + popd ~/RPM/BUILD/python3-module-repoze.urispace-0.3.2 + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python3-module-repoze.urispace-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python3-module-repoze.urispace-buildroot (binconfig,pkgconfig,libtool,desktop,gnuconfig) Checking contents of files in /usr/src/tmp/python3-module-repoze.urispace-buildroot/ (default) Compressing files in /usr/src/tmp/python3-module-repoze.urispace-buildroot (auto) Adjusting library links in /usr/src/tmp/python3-module-repoze.urispace-buildroot ./usr/lib: (from :0) Verifying ELF objects in /usr/src/tmp/python3-module-repoze.urispace-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-repoze.urispace-buildroot using /usr/bin/python3 unlink /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/__pycache__/__init__.cpython-39.pyc unlink /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/__pycache__/interfaces.cpython-39.pyc unlink /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/__pycache__/middleware.cpython-39.pyc unlink /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/__pycache__/operators.cpython-39.pyc unlink /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/__pycache__/parser.cpython-39.pyc unlink /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/__pycache__/predicates.cpython-39.pyc unlink /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/__pycache__/selectors.cpython-39.pyc unlink /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/scripts/__pycache__/__init__.cpython-39.pyc unlink /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/scripts/__pycache__/uri_test.cpython-39.pyc compile /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/scripts/__init__.py compile /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/scripts/uri_test.py compile /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/__init__.py compile /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/interfaces.py compile /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/middleware.py compile /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/operators.py compile /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/parser.py compile /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/predicates.py compile /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/selectors.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python3-module-repoze.urispace-buildroot using /usr/bin/python3 -O compile /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/scripts/__init__.py compile /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/scripts/uri_test.py compile /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/__init__.py compile /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/interfaces.py compile /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/middleware.py compile /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/operators.py compile /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/parser.py compile /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/predicates.py compile /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/selectors.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python3-module-repoze.urispace-buildroot using /usr/bin/python3 -OO compile /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/scripts/__init__.py compile /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/scripts/uri_test.py compile /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/__init__.py compile /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/interfaces.py compile /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/middleware.py compile /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/operators.py compile /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/parser.py compile /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/predicates.py compile /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/selectors.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/repoze/urispace/__pycache__/__init__.cpython-39.opt-1.pyc' => './usr/lib/python3/site-packages/repoze/urispace/__pycache__/__init__.cpython-39.pyc' './usr/lib/python3/site-packages/repoze/urispace/__pycache__/__init__.cpython-39.opt-2.pyc' => './usr/lib/python3/site-packages/repoze/urispace/__pycache__/__init__.cpython-39.opt-1.pyc' './usr/lib/python3/site-packages/repoze/urispace/__pycache__/interfaces.cpython-39.opt-1.pyc' => './usr/lib/python3/site-packages/repoze/urispace/__pycache__/interfaces.cpython-39.pyc' './usr/lib/python3/site-packages/repoze/urispace/__pycache__/middleware.cpython-39.opt-1.pyc' => './usr/lib/python3/site-packages/repoze/urispace/__pycache__/middleware.cpython-39.pyc' './usr/lib/python3/site-packages/repoze/urispace/__pycache__/middleware.cpython-39.opt-2.pyc' => './usr/lib/python3/site-packages/repoze/urispace/__pycache__/middleware.cpython-39.opt-1.pyc' './usr/lib/python3/site-packages/repoze/urispace/__pycache__/operators.cpython-39.opt-1.pyc' => './usr/lib/python3/site-packages/repoze/urispace/__pycache__/operators.cpython-39.pyc' './usr/lib/python3/site-packages/repoze/urispace/__pycache__/parser.cpython-39.opt-1.pyc' => './usr/lib/python3/site-packages/repoze/urispace/__pycache__/parser.cpython-39.pyc' './usr/lib/python3/site-packages/repoze/urispace/__pycache__/predicates.cpython-39.opt-1.pyc' => './usr/lib/python3/site-packages/repoze/urispace/__pycache__/predicates.cpython-39.pyc' './usr/lib/python3/site-packages/repoze/urispace/__pycache__/selectors.cpython-39.opt-1.pyc' => './usr/lib/python3/site-packages/repoze/urispace/__pycache__/selectors.cpython-39.pyc' './usr/lib/python3/site-packages/repoze/urispace/scripts/__pycache__/__init__.cpython-39.opt-1.pyc' => './usr/lib/python3/site-packages/repoze/urispace/scripts/__pycache__/__init__.cpython-39.pyc' './usr/lib/python3/site-packages/repoze/urispace/scripts/__pycache__/__init__.cpython-39.opt-2.pyc' => './usr/lib/python3/site-packages/repoze/urispace/scripts/__pycache__/__init__.cpython-39.opt-1.pyc' './usr/lib/python3/site-packages/repoze/urispace/scripts/__pycache__/uri_test.cpython-39.opt-1.pyc' => './usr/lib/python3/site-packages/repoze/urispace/scripts/__pycache__/uri_test.cpython-39.pyc' Processing files: python3-module-repoze.urispace-0.3.2-alt4 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.49791 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python3-module-repoze.urispace-0.3.2 + DOCDIR=/usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/share/doc/python3-module-repoze.urispace-0.3.2 + export DOCDIR + rm -rf /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/share/doc/python3-module-repoze.urispace-0.3.2 + /bin/mkdir -p /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/share/doc/python3-module-repoze.urispace-0.3.2 + cp -prL CHANGES.txt COPYRIGHT.txt LICENSE.txt README.txt TODO.txt docs/index.rst docs/parser.rst docs/examples /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/share/doc/python3-module-repoze.urispace-0.3.2 + chmod -R go-w /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/share/doc/python3-module-repoze.urispace-0.3.2 + chmod -R a+rX /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/share/doc/python3-module-repoze.urispace-0.3.2 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.cbLZdy 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.dPK3Fx 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-repoze.urispace-buildroot/usr/bin/uri_test.py3: skipping sys /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/bin/uri_test.py3: line=10 IGNORE (for REQ=slight and deep=8) module=importlib.metadata /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/bin/uri_test.py3: line=13 IGNORE (for REQ=slight and deep=12) module=importlib_metadata /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/bin/uri_test.py3: line=15 IGNORE (for REQ=slight and deep=12) module=pkg_resources /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/parser.py: line=52 IGNORE (for REQ=slight and deep=8) module=repoze.urispace.selectors /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/parser.py: line=56 IGNORE (for REQ=slight and deep=8) module=repoze.urispace.selectors /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/parser.py: line=60 IGNORE (for REQ=slight and deep=8) module=repoze.urispace.predicates /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/parser.py: line=61 IGNORE (for REQ=slight and deep=8) module=repoze.urispace.selectors /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/parser.py: line=66 IGNORE (for REQ=slight and deep=8) module=repoze.urispace.predicates /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/parser.py: line=67 IGNORE (for REQ=slight and deep=8) module=repoze.urispace.selectors /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/parser.py: line=72 IGNORE (for REQ=slight and deep=8) module=repoze.urispace.predicates /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/parser.py: line=73 IGNORE (for REQ=slight and deep=8) module=repoze.urispace.selectors /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/parser.py: line=78 IGNORE (for REQ=slight and deep=8) module=repoze.urispace.predicates /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/parser.py: line=79 IGNORE (for REQ=slight and deep=8) module=repoze.urispace.selectors /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/parser.py: line=84 IGNORE (for REQ=slight and deep=8) module=repoze.urispace.predicates /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/parser.py: line=85 IGNORE (for REQ=slight and deep=8) module=repoze.urispace.selectors /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/parser.py: line=90 IGNORE (for REQ=slight and deep=8) module=repoze.urispace.predicates /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/parser.py: line=91 IGNORE (for REQ=slight and deep=8) module=repoze.urispace.predicates /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/parser.py: line=92 IGNORE (for REQ=slight and deep=8) module=repoze.urispace.selectors /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/parser.py: line=116 IGNORE (for REQ=slight and deep=8) module=repoze.urispace.operators /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/parser.py: line=120 IGNORE (for REQ=slight and deep=8) module=repoze.urispace.operators /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/parser.py: line=124 IGNORE (for REQ=slight and deep=8) module=repoze.urispace.operators /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/parser.py: line=128 IGNORE (for REQ=slight and deep=8) module=repoze.urispace.operators /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/parser.py: line=132 IGNORE (for REQ=slight and deep=8) module=repoze.urispace.operators /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/parser.py: line=136 IGNORE (for REQ=slight and deep=8) module=repoze.urispace.operators /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/parser.py: line=140 IGNORE (for REQ=slight and deep=8) module=repoze.urispace.operators /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/parser.py: line=144 IGNORE (for REQ=slight and deep=8) module=repoze.urispace.operators /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/parser.py: line=148 IGNORE (for REQ=slight and deep=8) module=repoze.urispace.operators python3.req: /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/scripts/uri_test.py: skipping sys /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/scripts/uri_test.py: line=23 IGNORE (for REQ=slight and deep=8) module=elementtree.ElementTree /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-repoze.urispace-buildroot/usr/lib/python3/site-packages/repoze/urispace/scripts/uri_test.py: line=24 IGNORE (for REQ=slight and deep=8) module=repoze.urispace.parser Provides: python3(repoze.urispace), python3(repoze.urispace.interfaces), python3(repoze.urispace.middleware), python3(repoze.urispace.operators), python3(repoze.urispace.parser), python3(repoze.urispace.predicates), python3(repoze.urispace.scripts), python3(repoze.urispace.scripts.uri_test), python3(repoze.urispace.selectors) Requires: python3(repoze) < 0, python3(paste) < 0, python3(zope.interface) < 0, python3(elementtree) < 0, /usr/bin/python3, /usr/lib/python3/site-packages, python3(cgi) < 0, python3(elementtree.ElementTree) < 0, python3(re) < 0, python3(urllib.parse) < 0 Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.sEUyoy Wrote: /usr/src/RPM/RPMS/i586/python3-module-repoze.urispace-0.3.2-alt4.i586.rpm (w2.lzdio) 4.08user 0.47system 0:06.67elapsed 68%CPU (0avgtext+0avgdata 19496maxresident)k 0inputs+0outputs (0major+121209minor)pagefaults 0swaps 11.02user 3.79system 0:17.90elapsed 82%CPU (0avgtext+0avgdata 101332maxresident)k 0inputs+0outputs (0major+495619minor)pagefaults 0swaps