<86>Jul 19 10:35:05 userdel[2592577]: delete user 'rooter' <86>Jul 19 10:35:05 userdel[2592577]: removed group 'rooter' owned by 'rooter' <86>Jul 19 10:35:05 userdel[2592577]: removed shadow group 'rooter' owned by 'rooter' <86>Jul 19 10:35:05 groupadd[2592589]: group added to /etc/group: name=rooter, GID=657 <86>Jul 19 10:35:05 groupadd[2592589]: group added to /etc/gshadow: name=rooter <86>Jul 19 10:35:05 groupadd[2592589]: new group: name=rooter, GID=657 <86>Jul 19 10:35:05 useradd[2592596]: new user: name=rooter, UID=657, GID=657, home=/root, shell=/bin/bash <86>Jul 19 10:35:05 userdel[2592604]: delete user 'builder' <86>Jul 19 10:35:05 userdel[2592604]: removed group 'builder' owned by 'builder' <86>Jul 19 10:35:05 userdel[2592604]: removed shadow group 'builder' owned by 'builder' <86>Jul 19 10:35:05 groupadd[2592609]: group added to /etc/group: name=builder, GID=658 <86>Jul 19 10:35:05 groupadd[2592609]: group added to /etc/gshadow: name=builder <86>Jul 19 10:35:05 groupadd[2592609]: new group: name=builder, GID=658 <86>Jul 19 10:35:05 useradd[2592613]: new user: name=builder, UID=658, GID=658, home=/usr/src, shell=/bin/bash <13>Jul 19 10:35:08 rpmi: libgdbm-1.8.3-alt10 sisyphus+278100.1600.1.1 1626059138 installed <13>Jul 19 10:35:08 rpmi: libexpat-2.2.10-alt1 sisyphus+276608.100.1.2 1625153360 installed <13>Jul 19 10:35:08 rpmi: libp11-kit-0.23.15-alt2 sisyphus+278382.100.1.2 1626190687 installed <13>Jul 19 10:35:08 rpmi: libtasn1-4.17.0-alt1 sisyphus+276722.100.1.1 1625211286 installed <13>Jul 19 10:35:08 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+278157.100.2.1 1626055790 installed <13>Jul 19 10:35:08 rpmi: alternatives-0.5.1-alt1 sisyphus+278157.100.2.1 1626055790 installed <13>Jul 19 10:35:08 rpmi: ca-certificates-2021.06.03-alt1 sisyphus+273509.400.1.1 1622736045 installed <13>Jul 19 10:35:08 rpmi: ca-trust-0.1.2-alt1 sisyphus+233348.100.1.1 1561653823 installed <13>Jul 19 10:35:08 rpmi: p11-kit-trust-0.23.15-alt2 sisyphus+278382.100.1.2 1626190687 installed <13>Jul 19 10:35:09 rpmi: libcrypto1.1-1.1.1k-alt1 sisyphus+279286.100.1.1 1626469643 installed <13>Jul 19 10:35:09 rpmi: libssl1.1-1.1.1k-alt1 sisyphus+279286.100.1.1 1626469643 installed <13>Jul 19 10:35:09 rpmi: python3-3.9.6-alt1 sisyphus+276295.100.1.1 1624964545 installed <13>Jul 19 10:35:10 rpmi: python3-base-3.9.6-alt1 sisyphus+276295.100.1.1 1624964545 installed <13>Jul 19 10:35:10 rpmi: libpython3-3.9.6-alt1 sisyphus+276295.100.1.1 1624964545 installed <13>Jul 19 10:35:10 rpmi: tests-for-installed-python3-pkgs-0.1.17-alt1 sisyphus+271082.100.1.1 1619820927 installed <13>Jul 19 10:35:10 rpmi: rpm-build-python3-0.1.17-alt1 sisyphus+271082.100.1.1 1619820927 installed <13>Jul 19 10:35:13 rpmi: libpython-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed <13>Jul 19 10:35:13 rpmi: python2-base-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed <13>Jul 19 10:35:13 rpmi: python-modules-encodings-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed <13>Jul 19 10:35:13 rpmi: python-modules-compiler-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed <13>Jul 19 10:35:13 rpmi: python-modules-email-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed <13>Jul 19 10:35:14 rpmi: python-modules-unittest-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed <13>Jul 19 10:35:14 rpmi: python-modules-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed <13>Jul 19 10:35:14 rpmi: python-modules-ctypes-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed <13>Jul 19 10:35:14 rpmi: python-modules-multiprocessing-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed <13>Jul 19 10:35:14 rpmi: python-modules-logging-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed <13>Jul 19 10:35:14 rpmi: python-tools-2to3-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed Building target platforms: i586 Building for target i586 Wrote: /usr/src/in/nosrpm/python3-module-hglib-2.6.1-alt1.nosrc.rpm (w1.gzdio) <13>Jul 19 10:35:17 rpmi: python3-module-pkg_resources-1:57.0.0-alt1 sisyphus+272429.100.1.1 1621886170 installed <13>Jul 19 10:35:17 rpmi: libncurses-6.2.20210123-alt1 sisyphus+279621.1300.1.1 1626631090 installed <13>Jul 19 10:35:17 rpmi: libtinfo-devel-6.2.20210123-alt1 sisyphus+279621.1300.1.1 1626631090 installed <13>Jul 19 10:35:17 rpmi: libncurses-devel-6.2.20210123-alt1 sisyphus+279621.1300.1.1 1626631090 installed <13>Jul 19 10:35:17 rpmi: python3-dev-3.9.6-alt1 sisyphus+276295.100.1.1 1624964545 installed <13>Jul 19 10:35:17 rpmi: python3-module-setuptools-1:57.0.0-alt1 sisyphus+272429.100.1.1 1621886170 installed Installing python3-module-hglib-2.6.1-alt1.src.rpm Building target platforms: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.43723 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python-hglib-2.6.1 + echo 'Source #0 (python-hglib-2.6.1.tar.gz):' Source #0 (python-hglib-2.6.1.tar.gz): + /bin/gzip -dc /usr/src/RPM/SOURCES/python-hglib-2.6.1.tar.gz + /bin/tar -xf - + cd python-hglib-2.6.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: No changes to ./tests/with_hg.py RefactoringTool: Refactored ./tests/test-update.py RefactoringTool: Refactored ./tests/test-tags.py RefactoringTool: Refactored ./tests/test-summary.py --- ./tests/test-update.py (original) +++ ./tests/test-update.py (refactored) @@ -12,19 +12,19 @@ def test_basic(self): u, m, r, ur = self.client.update(self.rev0) - self.assertEquals(u, 1) - self.assertEquals(m, 0) - self.assertEquals(r, 0) - self.assertEquals(ur, 0) + self.assertEqual(u, 1) + self.assertEqual(m, 0) + self.assertEqual(r, 0) + self.assertEqual(ur, 0) def test_unresolved(self): self.client.update(self.rev0) self.append('a', 'b') u, m, r, ur = self.client.update() - self.assertEquals(u, 0) - self.assertEquals(m, 0) - self.assertEquals(r, 0) - self.assertEquals(ur, 1) + self.assertEqual(u, 0) + self.assertEqual(m, 0) + self.assertEqual(r, 0) + self.assertEqual(ur, 1) self.assertTrue((b('M'), b('a')) in self.client.status()) def test_merge(self): @@ -38,17 +38,17 @@ f.write(b('a') + old.encode('latin-1')) f.close() u, m, r, ur = self.client.update() - self.assertEquals(u, 0) - self.assertEquals(m, 1) - self.assertEquals(r, 0) - self.assertEquals(ur, 0) - self.assertEquals(self.client.status(), [(b('M'), b('a'))]) + self.assertEqual(u, 0) + self.assertEqual(m, 1) + self.assertEqual(r, 0) + self.assertEqual(ur, 0) + self.assertEqual(self.client.status(), [(b('M'), b('a'))]) def test_tip(self): self.client.update(self.rev0) u, m, r, ur = self.client.update() - self.assertEquals(u, 1) - self.assertEquals(self.client.parents()[0].node, self.node1) + self.assertEqual(u, 1) + self.assertEqual(self.client.parents()[0].node, self.node1) self.client.update(self.rev0) self.append('a', 'b') @@ -56,7 +56,7 @@ self.client.update(self.rev0) self.client.update() - self.assertEquals(self.client.parents()[0].node, node2) + self.assertEqual(self.client.parents()[0].node, node2) def test_check_clean(self): self.assertRaises(ValueError, self.client.update, clean=True, @@ -68,8 +68,8 @@ self.assertRaises(error.CommandError, self.client.update, check=True) u, m, r, ur = self.client.update(clean=True) - self.assertEquals(u, 1) - self.assertEquals(old, open('a').read()) + self.assertEqual(u, 1) + self.assertEqual(old, open('a').read()) def test_basic_plain(self): f = open('.hg/hgrc', 'a') @@ -96,7 +96,7 @@ # Keep the 'changed' version prompt=lambda s, d: 'c\n') u, m, r, ur = self.client.update(rev2, clean=True) - self.assertEquals(u, 2) - self.assertEquals(m, 0) - self.assertEquals(r, 0) - self.assertEquals(ur, 0) + self.assertEqual(u, 2) + self.assertEqual(m, 0) + self.assertEqual(r, 0) + self.assertEqual(ur, 0) --- ./tests/test-tags.py (original) +++ ./tests/test-tags.py (refactored) @@ -15,7 +15,7 @@ self.client = hglib.open() tags = self.client.tags() - self.assertEquals(tags, + self.assertEqual(tags, [(b('tip'), 1, self.client.tip().node[:12], False), (b('my tag'), 0, node[:12], False), (b('local tag'), 0, node[:12], True)]) --- ./tests/test-summary.py (original) +++ ./tests/test-summary.py (refactored) @@ -10,7 +10,7 @@ b('commit') : True, b('update') : 0} - self.assertEquals(self.client.summary(), d) + self.assertEqual(self.client.summary(), d) def test_basic(self): self.append('a', 'a') @@ -23,7 +23,7 @@ if self.client.version >= (3, 5): d[b('phases')] = b('1 draft') - self.assertEquals(self.client.summary(), d) + self.assertEqual(self.client.summary(), d) def test_commit_dirty(self): self.append('a', 'a') @@ -37,RefactoringTool: Refactored ./tests/test-status.py RefactoringTool: Refactored ./tests/test-resolve.py RefactoringTool: No changes to ./tests/test-remove.py RefactoringTool: Refactored ./tests/test-push.py 7 +37,7 @@ if self.client.version >= (3, 5): d[b('phases')] = b('1 draft') - self.assertEquals(self.client.summary(), d) + self.assertEqual(self.client.summary(), d) def test_secret_commit_clean(self): if self.client.version < (2, 1): @@ -62,7 +62,7 @@ if self.client.version >= (3, 5): d[b('phases')] = b('2 draft') - self.assertEquals(self.client.summary(), d) + self.assertEqual(self.client.summary(), d) def test_remote(self): self.append('a', 'a') @@ -77,17 +77,17 @@ b('update') : 0, b('remote') : (0, 0, 0, 0)} - self.assertEquals(other.summary(remote=True), d) + self.assertEqual(other.summary(remote=True), d) self.append('a', 'a') self.client.commit(b('second')) d[b('remote')] = (1, 0, 0, 0) - self.assertEquals(other.summary(remote=True), d) + self.assertEqual(other.summary(remote=True), d) self.client.bookmark(b('bm')) d[b('remote')] = (1, 1, 0, 0) - self.assertEquals(other.summary(remote=True), d) + self.assertEqual(other.summary(remote=True), d) other.bookmark(b('bmother')) d[b('remote')] = (1, 1, 0, 1) @@ -95,7 +95,7 @@ d[b('parent')] = [(0, node[:12], b('tip bmother'), b('first'))] else: d[b('bookmarks')] = b('*bmother') - self.assertEquals(other.summary(remote=True), d) + self.assertEqual(other.summary(remote=True), d) self.append('other/a', 'a') rev, node = other.commit(b('second in other')) @@ -109,7 +109,7 @@ if self.client.version >= (3, 5): d[b('phases')] = b('1 draft') - self.assertEquals(other.summary(remote=True), d) + self.assertEqual(other.summary(remote=True), d) def test_two_parents(self): self.append('a', 'a') @@ -132,4 +132,4 @@ if self.client.version >= (3, 5): d[b('phases')] = b('3 draft') - self.assertEquals(self.client.summary(), d) + self.assertEqual(self.client.summary(), d) --- ./tests/test-status.py (original) +++ ./tests/test-status.py (refactored) @@ -4,7 +4,7 @@ class test_status(common.basetest): def test_empty(self): - self.assertEquals(self.client.status(), []) + self.assertEqual(self.client.status(), []) def test_one_of_each(self): self.append('.hgignore', 'ignored') @@ -40,11 +40,11 @@ self.client.commit(b('first'), addremove=True) self.client.copy(b('source'), b('dest')) l = [(b('A'), b('dest')), (b(' '), b('source'))] - self.assertEquals(self.client.status(copies=True), l) + self.assertEqual(self.client.status(copies=True), l) def test_copy_origin_space(self): self.append('s ource', 'a') self.client.commit(b('first'), addremove=True) self.client.copy(b('s ource'), b('dest')) l = [(b('A'), b('dest')), (b(' '), b('s ource'))] - self.assertEquals(self.client.status(copies=True), l) + self.assertEqual(self.client.status(copies=True), l) --- ./tests/test-resolve.py (original) +++ ./tests/test-resolve.py (refactored) @@ -25,9 +25,9 @@ self.assertRaises(hglib.error.CommandError, self.client.resolve, all=True) - self.assertEquals([(b('U'), b('a')), (b('U'), b('b'))], + self.assertEqual([(b('U'), b('a')), (b('U'), b('b'))], self.client.resolve(listfiles=True)) self.client.resolve(b('a'), mark=True) - self.assertEquals([(b('R'), b('a')), (b('U'), b('b'))], + self.assertEqual([(b('R'), b('a')), (b('U'), b('b'))], self.client.resolve(listfiles=True)) --- ./tests/test-push.py (original) +++ ./tests/test-push.py (refactored) @@ -17,4 +17,4 @@ self.client.commit(b('second')) self.assertTrue(self.client.push(b('other'))) - self.assertEquals(self.client.log(), other.log()) + self.assertEqual(self.clRefactoringTool: Refactored ./tests/test-pull.py RefactoringTool: No changes to ./tests/test-phase.py RefactoringTool: Refactored ./tests/test-paths.py RefactoringTool: Refactored ./tests/test-parents.py RefactoringTool: Refactored ./tests/test-outgoing-incoming.py RefactoringTool: No changes to ./tests/test-move.py RefactoringTool: Refactored ./tests/test-merge.py ient.log(), other.log()) --- ./tests/test-pull.py (original) +++ ./tests/test-pull.py (refactored) @@ -14,7 +14,7 @@ self.client.commit(b('second')) self.assertTrue(other.pull()) - self.assertEquals(self.client.log(), other.log()) + self.assertEqual(self.client.log(), other.log()) def test_unresolved(self): self.append('a', 'a') --- ./tests/test-paths.py (original) +++ ./tests/test-paths.py (refactored) @@ -12,8 +12,8 @@ # hgrc isn't watched for changes yet, have to reopen self.client = hglib.open() paths = self.client.paths() - self.assertEquals(len(paths), 1) - self.assertEquals(paths[b('foo')], + self.assertEqual(len(paths), 1) + self.assertEqual(paths[b('foo')], os.path.abspath('bar').encode('latin-1')) - self.assertEquals(self.client.paths(b('foo')), + self.assertEqual(self.client.paths(b('foo')), os.path.abspath('bar').encode('latin-1')) --- ./tests/test-parents.py (original) +++ ./tests/test-parents.py (refactored) @@ -3,13 +3,13 @@ class test_parents(common.basetest): def test_noparents(self): - self.assertEquals(self.client.parents(), None) + self.assertEqual(self.client.parents(), None) def test_basic(self): self.append('a', 'a') rev, node = self.client.commit(b('first'), addremove=True) - self.assertEquals(node, self.client.parents()[0].node) - self.assertEquals(node, self.client.parents(file=b('a'))[0].node) + self.assertEqual(node, self.client.parents()[0].node) + self.assertEqual(node, self.client.parents(file=b('a'))[0].node) def test_two_parents(self): pass --- ./tests/test-outgoing-incoming.py (original) +++ ./tests/test-outgoing-incoming.py (refactored) @@ -10,8 +10,8 @@ self.client.clone(dest=b('other')) self.other = hglib.open(b('other')) - self.assertEquals(self.other.incoming(), []) - self.assertEquals(self.other.outgoing(), []) + self.assertEqual(self.other.incoming(), []) + self.assertEqual(self.other.outgoing(), []) def test_basic(self): self.append('a', 'a') @@ -22,18 +22,18 @@ self.client.clone(dest=b('other')) other = hglib.open(b('other')) - self.assertEquals(self.client.log(), other.log()) - self.assertEquals(self.client.outgoing(path=b('other')), + self.assertEqual(self.client.log(), other.log()) + self.assertEqual(self.client.outgoing(path=b('other')), other.incoming()) self.append('a', 'a') rev, node = self.client.commit(b('third')) out = self.client.outgoing(path=b('other')) - self.assertEquals(len(out), 1) - self.assertEquals(out[0].node, node) + self.assertEqual(len(out), 1) + self.assertEqual(out[0].node, node) - self.assertEquals(out, other.incoming()) + self.assertEqual(out, other.incoming()) def test_bookmarks(self): self.append('a', 'a') @@ -46,8 +46,8 @@ self.client.bookmark(b('bm1'), 1) - self.assertEquals(other.incoming(bookmarks=True), + self.assertEqual(other.incoming(bookmarks=True), [(b('bm1'), self.client.tip().node[:12])]) - self.assertEquals(self.client.outgoing(path=b('other'), bookmarks=True), + self.assertEqual(self.client.outgoing(path=b('other'), bookmarks=True), [(b('bm1'), self.client.tip().node[:12])]) --- ./tests/test-merge.py (original) +++ ./tests/test-merge.py (refactored) @@ -28,7 +28,7 @@ \ No newline at end of file """) - self.assertEquals(diff, self.client.diff(change=node, nodates=True)) + self.assertEqual(diff, self.client.diff(change=node, nodates=True)) def test_merge_prompt_abort(self): self.client.update(self.node0) @@ -56,7 +56,7 @@ +aa \ No newline at end of file """) - self.assertEquals(diff, self.client.diff(nodates=True))RefactoringTool: Refactored ./tests/test-manifest.py RefactoringTool: Refactored ./tests/test-log.py RefactoringTool: No changes to ./tests/test-init.py RefactoringTool: Refactored ./tests/test-import.py RefactoringTool: No changes to ./tests/test-hidden.py RefactoringTool: No changes to ./tests/test-hglib.py RefactoringTool: Refactored ./tests/test-heads.py RefactoringTool: Refactored ./tests/test-grep.py + self.assertEqual(diff, self.client.diff(nodates=True)) def test_merge_prompt_cb(self): self.client.update(self.node0) @@ -75,4 +75,4 @@ +aa \ No newline at end of file """) - self.assertEquals(diff, self.client.diff(nodates=True)) + self.assertEqual(diff, self.client.diff(nodates=True)) --- ./tests/test-manifest.py (original) +++ ./tests/test-manifest.py (refactored) @@ -22,6 +22,6 @@ self.client.commit(b('first'), addremove=True) - self.assertEquals(list(self.client.manifest(all=True)), files) + self.assertEqual(list(self.client.manifest(all=True)), files) - self.assertEquals(list(self.client.manifest()), manifest) + self.assertEqual(list(self.client.manifest()), manifest) --- ./tests/test-log.py (original) +++ ./tests/test-log.py (refactored) @@ -13,26 +13,26 @@ revs.reverse() self.assertTrue(len(revs) == 2) - self.assertEquals(revs[1].node, node1) + self.assertEqual(revs[1].node, node1) - self.assertEquals(revs[0], self.client.log(b('0'))[0]) - self.assertEquals(self.client.log(), self.client.log(files=[b('a')])) + self.assertEqual(revs[0], self.client.log(b('0'))[0]) + self.assertEqual(self.client.log(), self.client.log(files=[b('a')])) - self.assertEquals(self.client.log(), self.client.log(hidden=True)) + self.assertEqual(self.client.log(), self.client.log(hidden=True)) def test_dash_in_filename(self): self.append('-a', '-a') self.client.commit(b('first'), addremove=True) revs = self.client.log(files=[b('-a')]) self.assertTrue(len(revs) == 1) - self.assertEquals(revs[0].rev, b('0')) + self.assertEqual(revs[0].rev, b('0')) def test_empty_short_option(self): self.append('foobar', 'foobar') self.client.commit(b('first'), addremove=True) revs = self.client.log(keyword=b(''), files=[b('foobar')]) self.assertTrue(len(revs) == 1) - self.assertEquals(revs[0].rev, b('0')) + self.assertEqual(revs[0].rev, b('0')) # def test_errors(self): # self.assertRaisesRegexp(CommandError, 'abort: unknown revision', --- ./tests/test-import.py (original) +++ ./tests/test-import.py (refactored) @@ -20,7 +20,7 @@ class test_import(common.basetest): def test_basic_cstringio(self): self.client.import_(BytesIO(patch)) - self.assertEquals(self.client.cat([b('a')]), b('1\n')) + self.assertEqual(self.client.cat([b('a')]), b('1\n')) def test_basic_file(self): f = open('patch', 'wb') @@ -29,10 +29,10 @@ # --no-commit self.client.import_([b('patch')], nocommit=True) - self.assertEquals(open('a').read(), '1\n') + self.assertEqual(open('a').read(), '1\n') self.client.update(clean=True) os.remove('a') self.client.import_([b('patch')]) - self.assertEquals(self.client.cat([b('a')]), b('1\n')) + self.assertEqual(self.client.cat([b('a')]), b('1\n')) --- ./tests/test-heads.py (original) +++ ./tests/test-heads.py (refactored) @@ -3,15 +3,15 @@ class test_heads(common.basetest): def test_empty(self): - self.assertEquals(self.client.heads(), []) + self.assertEqual(self.client.heads(), []) def test_basic(self): self.append('a', 'a') rev, node0 = self.client.commit(b('first'), addremove=True) - self.assertEquals(self.client.heads(), [self.client.tip()]) + self.assertEqual(self.client.heads(), [self.client.tip()]) self.client.branch(b('foo')) self.append('a', 'a') rev, node1 = self.client.commit(b('second')) - self.assertEquals(self.client.heads(node0, topological=True), []) + self.assertEqual(self.client.heads(node0, topological=True), []) --- ./tests/test-grep.py (original) +++ ./tests/test-grep.py (refactored) @@ -8,14 +8,14 @@ self.client.commit(b('first'), addremove=True) # no match - self.assertEquals(list(self.clienRefactoringTool: No changes to ./tests/test-forget.py RefactoringTool: Refactored ./tests/test-encoding.py RefactoringTool: Refactored ./tests/test-diff.py RefactoringTool: Refactored ./tests/test-copy.py t.grep(b('c'))), []) + self.assertEqual(list(self.client.grep(b('c'))), []) - self.assertEquals(list(self.client.grep(b('a'))), + self.assertEqual(list(self.client.grep(b('a'))), [(b('a'), b('0'), b('a')), (b('b'), b('0'), b('ab'))]) - self.assertEquals(list(self.client.grep(b('a'), b('a'))), + self.assertEqual(list(self.client.grep(b('a'), b('a'))), [(b('a'), b('0'), b('a'))]) - self.assertEquals(list(self.client.grep(b('b'))), + self.assertEqual(list(self.client.grep(b('b'))), [(b('b'), b('0'), b('ab'))]) def test_options(self): @@ -23,22 +23,22 @@ self.append('b', 'ab\n') rev, node = self.client.commit(b('first'), addremove=True) - self.assertEquals([(b('a'), b('0'), b('+'), b('a')), + self.assertEqual([(b('a'), b('0'), b('+'), b('a')), (b('b'), b('0'), b('+'), b('ab'))], list(self.client.grep(b('a'), all=True))) - self.assertEquals([(b('a'), b('0')), (b('b'), b('0'))], + self.assertEqual([(b('a'), b('0')), (b('b'), b('0'))], list(self.client.grep(b('a'), fileswithmatches=True))) - self.assertEquals([(b('a'), b('0'), b('1'), b('a')), + self.assertEqual([(b('a'), b('0'), b('1'), b('a')), (b('b'), b('0'), b('1'), b('ab'))], list(self.client.grep(b('a'), line=True))) - self.assertEquals([(b('a'), b('0'), b('test'), b('a')), + self.assertEqual([(b('a'), b('0'), b('test'), b('a')), (b('b'), b('0'), b('test'), b('ab'))], list(self.client.grep(b('a'), user=True))) - self.assertEquals([(b('a'), b('0'), b('1'), b('+'), b('test')), + self.assertEqual([(b('a'), b('0'), b('1'), b('+'), b('test')), (b('b'), b('0'), b('1'), b('+'), b('test'))], list(self.client.grep(b('a'), all=True, user=True, line=True, --- ./tests/test-encoding.py (original) +++ ./tests/test-encoding.py (refactored) @@ -5,4 +5,4 @@ class test_encoding(common.basetest): def test_basic(self): self.client = hglib.open(encoding='utf-8') - self.assertEquals(self.client.encoding, b('utf-8')) + self.assertEqual(self.client.encoding, b('utf-8')) --- ./tests/test-diff.py (original) +++ ./tests/test-diff.py (refactored) @@ -11,8 +11,8 @@ @@ -0,0 +1,1 @@ +a """) - self.assertEquals(diff1, self.client.diff(nodates=True)) - self.assertEquals(diff1, self.client.diff([b('a')], nodates=True)) + self.assertEqual(diff1, self.client.diff(nodates=True)) + self.assertEqual(diff1, self.client.diff([b('a')], nodates=True)) rev0, node0 = self.client.commit(b('first')) diff2 = b("""diff -r 000000000000 -r """) + node0[:12] + b(""" a --- /dev/null @@ -20,7 +20,7 @@ @@ -0,0 +1,1 @@ +a """) - self.assertEquals(diff2, self.client.diff(change=rev0, nodates=True)) + self.assertEqual(diff2, self.client.diff(change=rev0, nodates=True)) self.append('a', 'a\n') rev1, node1 = self.client.commit(b('second')) diff3 = b("""diff -r """) + node0[:12] + b(""" a @@ -30,7 +30,7 @@ a +a """) - self.assertEquals(diff3, self.client.diff(revs=[rev0], nodates=True)) + self.assertEqual(diff3, self.client.diff(revs=[rev0], nodates=True)) diff4 = b("""diff -r """) + node0[:12] + b(" -r ") + node1[:12] + b( """ a --- a/a @@ -39,7 +39,7 @@ a +a """) - self.assertEquals(diff4, self.client.diff(revs=[rev0, rev1], + self.assertEqual(diff4, self.client.diff(revs=[rev0, rev1], nodates=True)) def test_basic_plain(self): --- ./tests/test-copy.py (original) +++ ./tests/test-copy.py (refactored) @@ -8,10 +8,10 @@ self.client.commit(b('first'), addremove=TRefactoringTool: Refactored ./tests/test-context.py RefactoringTool: No changes to ./tests/test-config.py RefactoringTool: Refactored ./tests/test-commit.py rue) self.assertTrue(self.client.copy(b('a'), b('b'))) - self.assertEquals(self.client.status(), [(b('A'), b('b'))]) + self.assertEqual(self.client.status(), [(b('A'), b('b'))]) self.append('c', 'a') self.assertTrue(self.client.copy(b('a'), b('c'), after=True)) - self.assertEquals(self.client.status(), + self.assertEqual(self.client.status(), [(b('A'), b('b')), (b('A'), b('c'))]) # hg returns 0 even if there were warnings --- ./tests/test-context.py (original) +++ ./tests/test-context.py (refactored) @@ -21,44 +21,44 @@ ctx = self.client[node0] - self.assertEquals(ctx.description(), b('first')) - self.assertEquals(str(ctx), node0[:12].decode('latin-1')) - self.assertEquals(ctx.node(), node0) - self.assertEquals(int(ctx), rev0) - self.assertEquals(ctx.rev(), rev0) - self.assertEquals(ctx.branch(), b('default')) + self.assertEqual(ctx.description(), b('first')) + self.assertEqual(str(ctx), node0[:12].decode('latin-1')) + self.assertEqual(ctx.node(), node0) + self.assertEqual(int(ctx), rev0) + self.assertEqual(ctx.rev(), rev0) + self.assertEqual(ctx.branch(), b('default')) self.assertTrue(ctx) self.assertTrue(b('a') in ctx and b('b') in ctx) self.assertFalse(b('c') in ctx) - self.assertEquals(list(ctx), [b('a'), b('b')]) - self.assertEquals(ctx.files(), [b('a'), b('b')]) + self.assertEqual(list(ctx), [b('a'), b('b')]) + self.assertEqual(ctx.files(), [b('a'), b('b')]) - self.assertEquals(ctx.modified(), []) - self.assertEquals(ctx.added(), [b('a'), b('b')]) - self.assertEquals(ctx.removed(), []) - self.assertEquals(ctx.ignored(), []) - self.assertEquals(ctx.clean(), []) + self.assertEqual(ctx.modified(), []) + self.assertEqual(ctx.added(), [b('a'), b('b')]) + self.assertEqual(ctx.removed(), []) + self.assertEqual(ctx.ignored(), []) + self.assertEqual(ctx.clean(), []) man = {b('a') : b('047b75c6d7a3ef6a2243bd0e99f94f6ea6683597'), b('b') : b('62452855512f5b81522aa3895892760bb8da9f3f')} - self.assertEquals(ctx.manifest(), man) + self.assertEqual(ctx.manifest(), man) - self.assertEquals([int(c) for c in ctx.parents()], [-1]) - self.assertEquals(int(ctx.p1()), -1) - self.assertEquals(int(ctx.p2()), -1) + self.assertEqual([int(c) for c in ctx.parents()], [-1]) + self.assertEqual(int(ctx.p1()), -1) + self.assertEqual(int(ctx.p2()), -1) - self.assertEquals([int(c) for c in ctx.children()], [1]) - self.assertEquals([int(c) for c in ctx.descendants()], [0, 1]) - self.assertEquals([int(c) for c in ctx.ancestors()], [0]) + self.assertEqual([int(c) for c in ctx.children()], [1]) + self.assertEqual([int(c) for c in ctx.descendants()], [0, 1]) + self.assertEqual([int(c) for c in ctx.ancestors()], [0]) self.client.bookmark(b('bookmark'), inactive=True, rev=node0) - self.assertEquals(ctx.bookmarks(), [b('bookmark')]) + self.assertEqual(ctx.bookmarks(), [b('bookmark')]) self.client.tag(b('tag'), rev=node0) # tags are read on construction - self.assertEquals(self.client[node0].tags(), [b('tag')]) + self.assertEqual(self.client[node0].tags(), [b('tag')]) def test_construction(self): self.append('a', 'a') @@ -67,11 +67,11 @@ # from client.revision ctx = context.changectx(self.client, tip) - self.assertEquals(ctx.node(), tip.node) + self.assertEqual(ctx.node(), tip.node) # from revset ctx = context.changectx(self.client, b('all()')) - self.assertEquals(ctx.node(), tip.node) + self.assertEqual(ctx.node(), tip.node) def test_in_keyword(self): """ --- ./tests/test-commit.py (original) +++ ./tests/test-commit.py (refactored) @@ -8,7 +8,7 @@ rev, RefactoringTool: Refactored ./tests/test-clone.py RefactoringTool: No changes to ./tests/test-bundle.py RefactoringTool: Refactored ./tests/test-branches.py RefactoringTool: Refactored ./tests/test-branch.py node = self.client.commit(b('first'), addremove=True, user=b('foo')) rev = self.client.log(node)[0] - self.assertEquals(rev.author, b('foo')) + self.assertEqual(rev.author, b('foo')) def test_no_user(self): self.append('a', 'a') @@ -24,10 +24,10 @@ revclose = self.client.commit(b('closing foo'), closebranch=True) rev0, rev1, revclose = self.client.log([node0, node1, revclose[1]]) - self.assertEquals(self.client.branches(), + self.assertEqual(self.client.branches(), [(rev0.branch, int(rev0.rev), rev0.node[:12])]) - self.assertEquals(self.client.branches(closed=True), + self.assertEqual(self.client.branches(closed=True), [(revclose.branch, int(revclose.rev), revclose.node[:12]), (rev0.branch, int(rev0.rev), rev0.node[:12])]) @@ -44,7 +44,7 @@ b('first'), addremove=True, date=now.isoformat(' ').encode('latin-1')) - self.assertEquals(now, self.client.tip().date) + self.assertEqual(now, self.client.tip().date) def test_amend(self): self.append('a', 'a') @@ -53,12 +53,12 @@ b('first'), addremove=True, date=now.isoformat(' ').encode('latin-1')) - self.assertEquals(now, self.client.tip().date) + self.assertEqual(now, self.client.tip().date) self.append('a', 'a') rev1, node1 = self.client.commit(amend=True) - self.assertEquals(now, self.client.tip().date) - self.assertNotEquals(node0, node1) + self.assertEqual(now, self.client.tip().date) + self.assertNotEqual(node0, node1) self.assertEqual(1, len(self.client.log())) def test_nul_injection(self): --- ./tests/test-clone.py (original) +++ ./tests/test-clone.py (refactored) @@ -10,7 +10,7 @@ cloned = hglib.clone(b('.'), b('cloned')) self.assertRaises(ValueError, cloned.log) cloned.open() - self.assertEquals(self.client.log(), cloned.log()) + self.assertEqual(self.client.log(), cloned.log()) def test_clone_uncompressed(self): hglib.clone(b('.'), b('cloned'), uncompressed=True) --- ./tests/test-branches.py (original) +++ ./tests/test-branches.py (refactored) @@ -4,7 +4,7 @@ class test_branches(common.basetest): def test_empty(self): - self.assertEquals(self.client.branches(), []) + self.assertEqual(self.client.branches(), []) def test_basic(self): self.append('a', 'a') @@ -19,7 +19,7 @@ r = self.client.log(r)[0] expected.append((r.branch, int(r.rev), r.node[:12])) - self.assertEquals(branches, expected) + self.assertEqual(branches, expected) def test_active_closed(self): pass --- ./tests/test-branch.py (original) +++ ./tests/test-branch.py (refactored) @@ -4,17 +4,17 @@ class test_branch(common.basetest): def test_empty(self): - self.assertEquals(self.client.branch(), b('default')) + self.assertEqual(self.client.branch(), b('default')) def test_basic(self): - self.assertEquals(self.client.branch(b('foo')), b('foo')) + self.assertEqual(self.client.branch(b('foo')), b('foo')) self.append('a', 'a') rev, node = self.client.commit(b('first'), addremove=True) rev = self.client.log(node)[0] - self.assertEquals(rev.branch, b('foo')) - self.assertEquals(self.client.branches(), + self.assertEqual(rev.branch, b('foo')) + self.assertEqual(self.client.branches(), [(rev.branch, int(rev.rev), rev.node[:12])]) def test_reset_with_name(self): @@ -22,7 +22,7 @@ def test_reset(self): self.client.branch(b('foo')) - self.assertEquals(self.client.branch(clean=True), b('default')) + self.assertEqual(self.client.branch(clean=True), b('default')) def test_exists(self): self.append('a'RefactoringTool: Refactored ./tests/test-bookmarks.py RefactoringTool: Refactored ./tests/test-annotate.py RefactoringTool: No changes to ./tests/common.py RefactoringTool: No changes to ./tests/__init__.py RefactoringTool: No changes to ./test.py RefactoringTool: No changes to ./setup.py RefactoringTool: Refactored ./hglib/util.py RefactoringTool: No changes to ./hglib/templates.py RefactoringTool: No changes to ./hglib/merge.py RefactoringTool: Refactored ./hglib/context.py RefactoringTool: No changes to ./hglib/client.py RefactoringTool: No changes to ./hglib/__init__.py RefactoringTool: Refactored ./examples/stats.py , 'a') @@ -42,5 +42,5 @@ self.assertRaises(hglib.error.CommandError, self.client.branch, b('default')) - self.assertEquals(self.client.branch(b('default'), force=True), + self.assertEqual(self.client.branch(b('default'), force=True), b('default')) --- ./tests/test-bookmarks.py (original) +++ ./tests/test-bookmarks.py (refactored) @@ -3,7 +3,7 @@ class test_bookmarks(common.basetest): def test_empty(self): - self.assertEquals(self.client.bookmarks(), ([], -1)) + self.assertEqual(self.client.bookmarks(), ([], -1)) def test_basic(self): self.append('a', 'a') @@ -12,11 +12,11 @@ rev1, node1 = self.client.commit(b('second')) self.client.bookmark(b('zero'), rev0) - self.assertEquals(self.client.bookmarks(), + self.assertEqual(self.client.bookmarks(), ([(b('zero'), rev0, node0[:12])], -1)) self.client.bookmark(b('one'), rev1) - self.assertEquals(self.client.bookmarks()[0], + self.assertEqual(self.client.bookmarks()[0], [(b('one'), rev1, node1[:12]), (b('zero'), rev0, node0[:12])]) --- ./tests/test-annotate.py (original) +++ ./tests/test-annotate.py (refactored) @@ -8,9 +8,9 @@ self.append('a', 'a\n') rev, node1 = self.client.commit(b('second')) - self.assertEquals(list(self.client.annotate(b('a'))), + self.assertEqual(list(self.client.annotate(b('a'))), [(b('0'), b('a')), (b('1'), b('a'))]) - self.assertEquals(list( + self.assertEqual(list( self.client.annotate( b('a'), user=True, file=True, number=True, changeset=True, line=True, verbose=True)), @@ -22,11 +22,11 @@ rev, node0 = self.client.commit(b('first'), addremove=True) self.append('b', 'b\n') rev, node1 = self.client.commit(b('second'), addremove=True) - self.assertEquals(list(self.client.annotate([b('a'), b('b')])), + self.assertEqual(list(self.client.annotate([b('a'), b('b')])), [(b('0'), b('a')), (b('1'), b('b'))]) def test_two_colons(self): self.append('a', 'a: b\n') self.client.commit(b('first'), addremove=True) - self.assertEquals(list(self.client.annotate(b('a'))), + self.assertEqual(list(self.client.annotate(b('a'))), [(b('0'), b('a: b'))]) --- ./hglib/util.py (original) +++ ./hglib/util.py (refactored) @@ -3,7 +3,7 @@ try: from io import BytesIO except ImportError: - from cStringIO import StringIO as BytesIO + from io import StringIO as BytesIO if sys.version_info[0] > 2: izip = zip @@ -13,8 +13,8 @@ """Encode the string as bytes.""" return s.encode('latin-1') else: - from itertools import izip - integertypes = (long, int) + + integertypes = (int, int) bytes = str # Defined in Python 2.6/2.7, but to the same value. def b(s): @@ -28,7 +28,7 @@ def grouper(n, iterable): ''' list(grouper(2, range(4))) -> [(0, 1), (2, 3)] ''' args = [iter(iterable)] * n - return izip(*args) + return zip(*args) def eatlines(s, n): """ @@ -121,7 +121,7 @@ True """ cmd = [name] - for arg, val in kwargs.items(): + for arg, val in list(kwargs.items()): if val is None: continue @@ -187,7 +187,7 @@ raise error.CommandError(self.args, ret, out, err) return out - def __nonzero__(self): + def __bool__(self): """ Returns True if the return code was 0, False otherwise """ return self.ret == 0 --- ./hglib/context.py (original) +++ ./hglib/context.py (refactored) @@ -76,7 +76,7 @@ def __ne__(self, other): return not (self == other) - def __nonzero__(self): + def __bool__(self): return self._rev != -1 def __bool__(self): --- ./examples/stats.py (original) +++ ./examples/stRefactoringTool: Files that were modified: RefactoringTool: ./tests/with_hg.py RefactoringTool: ./tests/test-update.py RefactoringTool: ./tests/test-tags.py RefactoringTool: ./tests/test-summary.py RefactoringTool: ./tests/test-status.py RefactoringTool: ./tests/test-resolve.py RefactoringTool: ./tests/test-remove.py RefactoringTool: ./tests/test-push.py RefactoringTool: ./tests/test-pull.py RefactoringTool: ./tests/test-phase.py RefactoringTool: ./tests/test-paths.py RefactoringTool: ./tests/test-parents.py RefactoringTool: ./tests/test-outgoing-incoming.py RefactoringTool: ./tests/test-move.py RefactoringTool: ./tests/test-merge.py RefactoringTool: ./tests/test-manifest.py RefactoringTool: ./tests/test-log.py RefactoringTool: ./tests/test-init.py RefactoringTool: ./tests/test-import.py RefactoringTool: ./tests/test-hidden.py RefactoringTool: ./tests/test-hglib.py RefactoringTool: ./tests/test-heads.py RefactoringTool: ./tests/test-grep.py RefactoringTool: ./tests/test-forget.py RefactoringTool: ./tests/test-encoding.py RefactoringTool: ./tests/test-diff.py RefactoringTool: ./tests/test-copy.py RefactoringTool: ./tests/test-context.py RefactoringTool: ./tests/test-config.py RefactoringTool: ./tests/test-commit.py RefactoringTool: ./tests/test-clone.py RefactoringTool: ./tests/test-bundle.py RefactoringTool: ./tests/test-branches.py RefactoringTool: ./tests/test-branch.py RefactoringTool: ./tests/test-bookmarks.py RefactoringTool: ./tests/test-annotate.py RefactoringTool: ./tests/common.py RefactoringTool: ./tests/__init__.py RefactoringTool: ./test.py RefactoringTool: ./setup.py RefactoringTool: ./hglib/util.py RefactoringTool: ./hglib/templates.py RefactoringTool: ./hglib/merge.py RefactoringTool: ./hglib/context.py RefactoringTool: ./hglib/client.py RefactoringTool: ./hglib/__init__.py RefactoringTool: ./examples/stats.py ats.py (refactored) @@ -26,10 +26,10 @@ for e in client.log(onlymerges=True): merges += 1 -print "%d revisions" % revs -print "%d merges" % merges -print "%d files" % files -print "%d heads" % heads -print "%d branches" % branches -print "%d tags" % tags -print "%d authors" % len(authors) +print("%d revisions" % revs) +print("%d merges" % merges) +print("%d files" % files) +print("%d heads" % heads) +print("%d branches" % branches) +print("%d tags" % tags) +print("%d authors" % len(authors)) ++ find ./ -name '*.py' + sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python3|' ./tests/with_hg.py ./tests/test-update.py ./tests/test-tags.py ./tests/test-summary.py ./tests/test-status.py ./tests/test-resolve.py ./tests/test-remove.py ./tests/test-push.py ./tests/test-pull.py ./tests/test-phase.py ./tests/test-paths.py ./tests/test-parents.py ./tests/test-outgoing-incoming.py ./tests/test-move.py ./tests/test-merge.py ./tests/test-manifest.py ./tests/test-log.py ./tests/test-init.py ./tests/test-import.py ./tests/test-hidden.py ./tests/test-hglib.py ./tests/test-heads.py ./tests/test-grep.py ./tests/test-forget.py ./tests/test-encoding.py ./tests/test-diff.py ./tests/test-copy.py ./tests/test-context.py ./tests/test-config.py ./tests/test-commit.py ./tests/test-clone.py ./tests/test-bundle.py ./tests/test-branches.py ./tests/test-branch.py ./tests/test-bookmarks.py ./tests/test-annotate.py ./tests/common.py ./tests/__init__.py ./test.py ./setup.py ./hglib/util.py ./hglib/templates.py ./hglib/merge.py ./hglib/error.py ./hglib/context.py ./hglib/client.py ./hglib/__init__.py ./examples/stats.py + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.75647 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-hglib-2.6.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 --debug running build running build_py creating build creating build/lib creating build/lib/hglib copying hglib/__init__.py -> build/lib/hglib copying hglib/client.py -> build/lib/hglib copying hglib/context.py -> build/lib/hglib copying hglib/error.py -> build/lib/hglib copying hglib/merge.py -> build/lib/hglib copying hglib/templates.py -> build/lib/hglib copying hglib/util.py -> build/lib/hglib + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.72774 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python3-module-hglib-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python3-module-hglib-buildroot + PATH=/usr/libexec/rpm-build:/usr/src/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games + cd python-hglib-2.6.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-hglib-buildroot --force running install running install_lib creating /usr/src/tmp/python3-module-hglib-buildroot creating /usr/src/tmp/python3-module-hglib-buildroot/usr creating /usr/src/tmp/python3-module-hglib-buildroot/usr/lib creating /usr/src/tmp/python3-module-hglib-buildroot/usr/lib/python3 creating /usr/src/tmp/python3-module-hglib-buildroot/usr/lib/python3/site-packages creating /usr/src/tmp/python3-module-hglib-buildroot/usr/lib/python3/site-packages/hglib copying build/lib/hglib/util.py -> /usr/src/tmp/python3-module-hglib-buildroot/usr/lib/python3/site-packages/hglib copying build/lib/hglib/templates.py -> /usr/src/tmp/python3-module-hglib-buildroot/usr/lib/python3/site-packages/hglib copying build/lib/hglib/merge.py -> /usr/src/tmp/python3-module-hglib-buildroot/usr/lib/python3/site-packages/hglib copying build/lib/hglib/error.py -> /usr/src/tmp/python3-module-hglib-buildroot/usr/lib/python3/site-packages/hglib copying build/lib/hglib/context.py -> /usr/src/tmp/python3-module-hglib-buildroot/usr/lib/python3/site-packages/hglib copying build/lib/hglib/client.py -> /usr/src/tmp/python3-module-hglib-buildroot/usr/lib/python3/site-packages/hglib copying build/lib/hglib/__init__.py -> /usr/src/tmp/python3-module-hglib-buildroot/usr/lib/python3/site-packages/hglib byte-compiling /usr/src/tmp/python3-module-hglib-buildroot/usr/lib/python3/site-packages/hglib/util.py to util.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-hglib-buildroot/usr/lib/python3/site-packages/hglib/templates.py to templates.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-hglib-buildroot/usr/lib/python3/site-packages/hglib/merge.py to merge.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-hglib-buildroot/usr/lib/python3/site-packages/hglib/error.py to error.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-hglib-buildroot/usr/lib/python3/site-packages/hglib/context.py to context.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-hglib-buildroot/usr/lib/python3/site-packages/hglib/client.py to client.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-hglib-buildroot/usr/lib/python3/site-packages/hglib/__init__.py to __init__.cpython-39.pyc running install_egg_info Writing /usr/src/tmp/python3-module-hglib-buildroot/usr/lib/python3/site-packages/python_hglib-2.6.1-py3.9.egg-info + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python3-module-hglib-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python3-module-hglib-buildroot (binconfig,pkgconfig,libtool,desktop,gnuconfig) Checking contents of files in /usr/src/tmp/python3-module-hglib-buildroot/ (default) Compressing files in /usr/src/tmp/python3-module-hglib-buildroot (auto) Adjusting library links in /usr/src/tmp/python3-module-hglib-buildroot ./usr/lib: (from :0) Verifying ELF objects in /usr/src/tmp/python3-module-hglib-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-hglib-buildroot using /usr/bin/python3 unlink /usr/src/tmp/python3-module-hglib-buildroot/usr/lib/python3/site-packages/hglib/__pycache__/__init__.cpython-39.pyc unlink /usr/src/tmp/python3-module-hglib-buildroot/usr/lib/python3/site-packages/hglib/__pycache__/client.cpython-39.pyc unlink /usr/src/tmp/python3-module-hglib-buildroot/usr/lib/python3/site-packages/hglib/__pycache__/context.cpython-39.pyc unlink /usr/src/tmp/python3-module-hglib-buildroot/usr/lib/python3/site-packages/hglib/__pycache__/error.cpython-39.pyc unlink /usr/src/tmp/python3-module-hglib-buildroot/usr/lib/python3/site-packages/hglib/__pycache__/merge.cpython-39.pyc unlink /usr/src/tmp/python3-module-hglib-buildroot/usr/lib/python3/site-packages/hglib/__pycache__/templates.cpython-39.pyc unlink /usr/src/tmp/python3-module-hglib-buildroot/usr/lib/python3/site-packages/hglib/__pycache__/util.cpython-39.pyc compile /usr/src/tmp/python3-module-hglib-buildroot/usr/lib/python3/site-packages/hglib/__init__.py compile /usr/src/tmp/python3-module-hglib-buildroot/usr/lib/python3/site-packages/hglib/client.py compile /usr/src/tmp/python3-module-hglib-buildroot/usr/lib/python3/site-packages/hglib/context.py compile /usr/src/tmp/python3-module-hglib-buildroot/usr/lib/python3/site-packages/hglib/error.py compile /usr/src/tmp/python3-module-hglib-buildroot/usr/lib/python3/site-packages/hglib/merge.py compile /usr/src/tmp/python3-module-hglib-buildroot/usr/lib/python3/site-packages/hglib/templates.py compile /usr/src/tmp/python3-module-hglib-buildroot/usr/lib/python3/site-packages/hglib/util.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python3-module-hglib-buildroot using /usr/bin/python3 -O compile /usr/src/tmp/python3-module-hglib-buildroot/usr/lib/python3/site-packages/hglib/__init__.py compile /usr/src/tmp/python3-module-hglib-buildroot/usr/lib/python3/site-packages/hglib/client.py compile /usr/src/tmp/python3-module-hglib-buildroot/usr/lib/python3/site-packages/hglib/context.py compile /usr/src/tmp/python3-module-hglib-buildroot/usr/lib/python3/site-packages/hglib/error.py compile /usr/src/tmp/python3-module-hglib-buildroot/usr/lib/python3/site-packages/hglib/merge.py compile /usr/src/tmp/python3-module-hglib-buildroot/usr/lib/python3/site-packages/hglib/templates.py compile /usr/src/tmp/python3-module-hglib-buildroot/usr/lib/python3/site-packages/hglib/util.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python3-module-hglib-buildroot using /usr/bin/python3 -OO compile /usr/src/tmp/python3-module-hglib-buildroot/usr/lib/python3/site-packages/hglib/__init__.py compile /usr/src/tmp/python3-module-hglib-buildroot/usr/lib/python3/site-packages/hglib/client.py compile /usr/src/tmp/python3-module-hglib-buildroot/usr/lib/python3/site-packages/hglib/context.py compile /usr/src/tmp/python3-module-hglib-buildroot/usr/lib/python3/site-packages/hglib/error.py compile /usr/src/tmp/python3-module-hglib-buildroot/usr/lib/python3/site-packages/hglib/merge.py compile /usr/src/tmp/python3-module-hglib-buildroot/usr/lib/python3/site-packages/hglib/templates.py compile /usr/src/tmp/python3-module-hglib-buildroot/usr/lib/python3/site-packages/hglib/util.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/hglib/__pycache__/__init__.cpython-39.opt-1.pyc' => './usr/lib/python3/site-packages/hglib/__pycache__/__init__.cpython-39.pyc' './usr/lib/python3/site-packages/hglib/__pycache__/context.cpython-39.opt-1.pyc' => './usr/lib/python3/site-packages/hglib/__pycache__/context.cpython-39.pyc' './usr/lib/python3/site-packages/hglib/__pycache__/error.cpython-39.opt-1.pyc' => './usr/lib/python3/site-packages/hglib/__pycache__/error.cpython-39.pyc' './usr/lib/python3/site-packages/hglib/__pycache__/error.cpython-39.opt-2.pyc' => './usr/lib/python3/site-packages/hglib/__pycache__/error.cpython-39.opt-1.pyc' './usr/lib/python3/site-packages/hglib/__pycache__/merge.cpython-39.opt-1.pyc' => './usr/lib/python3/site-packages/hglib/__pycache__/merge.cpython-39.pyc' './usr/lib/python3/site-packages/hglib/__pycache__/templates.cpython-39.opt-1.pyc' => './usr/lib/python3/site-packages/hglib/__pycache__/templates.cpython-39.pyc' './usr/lib/python3/site-packages/hglib/__pycache__/templates.cpython-39.opt-2.pyc' => './usr/lib/python3/site-packages/hglib/__pycache__/templates.cpython-39.opt-1.pyc' './usr/lib/python3/site-packages/hglib/__pycache__/util.cpython-39.opt-1.pyc' => './usr/lib/python3/site-packages/hglib/__pycache__/util.cpython-39.pyc' Executing(%check): /bin/sh -e /usr/src/tmp/rpm-tmp.41418 Check is turned off by --disable check Processing files: python3-module-hglib-2.6.1-alt1 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.41418 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-hglib-2.6.1 + DOCDIR=/usr/src/tmp/python3-module-hglib-buildroot/usr/share/doc/python3-module-hglib-2.6.1 + export DOCDIR + rm -rf /usr/src/tmp/python3-module-hglib-buildroot/usr/share/doc/python3-module-hglib-2.6.1 + /bin/mkdir -p /usr/src/tmp/python3-module-hglib-buildroot/usr/share/doc/python3-module-hglib-2.6.1 + cp -prL README examples /usr/src/tmp/python3-module-hglib-buildroot/usr/share/doc/python3-module-hglib-2.6.1 + chmod -R go-w /usr/src/tmp/python3-module-hglib-buildroot/usr/share/doc/python3-module-hglib-2.6.1 + chmod -R a+rX /usr/src/tmp/python3-module-hglib-buildroot/usr/share/doc/python3-module-hglib-2.6.1 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.bAF652 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.VlMRK5 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-hglib-buildroot/usr/lib/python3/site-packages/hglib/util.py: skipping sys /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-hglib-buildroot/usr/lib/python3/site-packages/hglib/util.py: line=4 IGNORE (for REQ=slight and deep=8) module=io /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-hglib-buildroot/usr/lib/python3/site-packages/hglib/util.py: line=6 IGNORE (for REQ=slight and deep=8) module=io Provides: python3(hglib), python3(hglib.client), python3(hglib.context), python3(hglib.error), python3(hglib.merge), python3(hglib.templates), python3(hglib.util) Requires: /usr/lib/python3/site-packages, python3(datetime) < 0, python3(os) < 0, python3(re) < 0, python3(struct) < 0, python3(subprocess) < 0 Wrote: /usr/src/RPM/RPMS/noarch/python3-module-hglib-2.6.1-alt1.noarch.rpm (w2.lzdio) 15.64user 0.99system 0:18.28elapsed 90%CPU (0avgtext+0avgdata 24048maxresident)k 0inputs+0outputs (0major+144619minor)pagefaults 0swaps 27.01user 8.48system 0:35.97elapsed 98%CPU (0avgtext+0avgdata 103044maxresident)k 0inputs+0outputs (0major+582337minor)pagefaults 0swaps --- python3-module-hglib-2.6.1-alt1.noarch.rpm.repo 2019-11-05 13:01:56.000000000 +0000 +++ python3-module-hglib-2.6.1-alt1.noarch.rpm.hasher 2021-07-19 10:35:37.824422639 +0000 @@ -3,23 +3,23 @@ /usr/lib/python3/site-packages/hglib/__pycache__ 40755 root:root -/usr/lib/python3/site-packages/hglib/__pycache__/__init__.cpython-37.opt-1.pyc 100644 root:root -/usr/lib/python3/site-packages/hglib/__pycache__/__init__.cpython-37.opt-2.pyc 100644 root:root -/usr/lib/python3/site-packages/hglib/__pycache__/__init__.cpython-37.pyc 100644 root:root -/usr/lib/python3/site-packages/hglib/__pycache__/client.cpython-37.opt-1.pyc 100644 root:root -/usr/lib/python3/site-packages/hglib/__pycache__/client.cpython-37.opt-2.pyc 100644 root:root -/usr/lib/python3/site-packages/hglib/__pycache__/client.cpython-37.pyc 100644 root:root -/usr/lib/python3/site-packages/hglib/__pycache__/context.cpython-37.opt-1.pyc 100644 root:root -/usr/lib/python3/site-packages/hglib/__pycache__/context.cpython-37.opt-2.pyc 100644 root:root -/usr/lib/python3/site-packages/hglib/__pycache__/context.cpython-37.pyc 100644 root:root -/usr/lib/python3/site-packages/hglib/__pycache__/error.cpython-37.opt-1.pyc 100644 root:root -/usr/lib/python3/site-packages/hglib/__pycache__/error.cpython-37.opt-2.pyc 100644 root:root -/usr/lib/python3/site-packages/hglib/__pycache__/error.cpython-37.pyc 100644 root:root -/usr/lib/python3/site-packages/hglib/__pycache__/merge.cpython-37.opt-1.pyc 100644 root:root -/usr/lib/python3/site-packages/hglib/__pycache__/merge.cpython-37.opt-2.pyc 100644 root:root -/usr/lib/python3/site-packages/hglib/__pycache__/merge.cpython-37.pyc 100644 root:root -/usr/lib/python3/site-packages/hglib/__pycache__/templates.cpython-37.opt-1.pyc 100644 root:root -/usr/lib/python3/site-packages/hglib/__pycache__/templates.cpython-37.opt-2.pyc 100644 root:root -/usr/lib/python3/site-packages/hglib/__pycache__/templates.cpython-37.pyc 100644 root:root -/usr/lib/python3/site-packages/hglib/__pycache__/util.cpython-37.opt-1.pyc 100644 root:root -/usr/lib/python3/site-packages/hglib/__pycache__/util.cpython-37.opt-2.pyc 100644 root:root -/usr/lib/python3/site-packages/hglib/__pycache__/util.cpython-37.pyc 100644 root:root +/usr/lib/python3/site-packages/hglib/__pycache__/__init__.cpython-39.opt-1.pyc 100644 root:root +/usr/lib/python3/site-packages/hglib/__pycache__/__init__.cpython-39.opt-2.pyc 100644 root:root +/usr/lib/python3/site-packages/hglib/__pycache__/__init__.cpython-39.pyc 100644 root:root +/usr/lib/python3/site-packages/hglib/__pycache__/client.cpython-39.opt-1.pyc 100644 root:root +/usr/lib/python3/site-packages/hglib/__pycache__/client.cpython-39.opt-2.pyc 100644 root:root +/usr/lib/python3/site-packages/hglib/__pycache__/client.cpython-39.pyc 100644 root:root +/usr/lib/python3/site-packages/hglib/__pycache__/context.cpython-39.opt-1.pyc 100644 root:root +/usr/lib/python3/site-packages/hglib/__pycache__/context.cpython-39.opt-2.pyc 100644 root:root +/usr/lib/python3/site-packages/hglib/__pycache__/context.cpython-39.pyc 100644 root:root +/usr/lib/python3/site-packages/hglib/__pycache__/error.cpython-39.opt-1.pyc 100644 root:root +/usr/lib/python3/site-packages/hglib/__pycache__/error.cpython-39.opt-2.pyc 100644 root:root +/usr/lib/python3/site-packages/hglib/__pycache__/error.cpython-39.pyc 100644 root:root +/usr/lib/python3/site-packages/hglib/__pycache__/merge.cpython-39.opt-1.pyc 100644 root:root +/usr/lib/python3/site-packages/hglib/__pycache__/merge.cpython-39.opt-2.pyc 100644 root:root +/usr/lib/python3/site-packages/hglib/__pycache__/merge.cpython-39.pyc 100644 root:root +/usr/lib/python3/site-packages/hglib/__pycache__/templates.cpython-39.opt-1.pyc 100644 root:root +/usr/lib/python3/site-packages/hglib/__pycache__/templates.cpython-39.opt-2.pyc 100644 root:root +/usr/lib/python3/site-packages/hglib/__pycache__/templates.cpython-39.pyc 100644 root:root +/usr/lib/python3/site-packages/hglib/__pycache__/util.cpython-39.opt-1.pyc 100644 root:root +/usr/lib/python3/site-packages/hglib/__pycache__/util.cpython-39.opt-2.pyc 100644 root:root +/usr/lib/python3/site-packages/hglib/__pycache__/util.cpython-39.pyc 100644 root:root /usr/lib/python3/site-packages/hglib/client.py 100644 root:root @@ -30,3 +30,3 @@ /usr/lib/python3/site-packages/hglib/util.py 100644 root:root -/usr/lib/python3/site-packages/python_hglib-2.6.1-py3.7.egg-info 100644 root:root +/usr/lib/python3/site-packages/python_hglib-2.6.1-py3.9.egg-info 100644 root:root /usr/share/doc/python3-module-hglib-2.6.1 40755 root:root @@ -53,23 +53,23 @@ File: /usr/lib/python3/site-packages/hglib/__pycache__ 40755 root:root -File: /usr/lib/python3/site-packages/hglib/__pycache__/__init__.cpython-37.opt-1.pyc 100644 root:root def7c82a31f6cb0dd63211f079d69643 -File: /usr/lib/python3/site-packages/hglib/__pycache__/__init__.cpython-37.opt-2.pyc 100644 root:root 12585f0649c8a8c7eae7b338651170b5 -File: /usr/lib/python3/site-packages/hglib/__pycache__/__init__.cpython-37.pyc 100644 root:root def7c82a31f6cb0dd63211f079d69643 -File: /usr/lib/python3/site-packages/hglib/__pycache__/client.cpython-37.opt-1.pyc 100644 root:root 92adc32bb2a1e0926a61fd7a4090c7e4 -File: /usr/lib/python3/site-packages/hglib/__pycache__/client.cpython-37.opt-2.pyc 100644 root:root 31dcf2c32d1abdd669c3f998440f426f -File: /usr/lib/python3/site-packages/hglib/__pycache__/client.cpython-37.pyc 100644 root:root 8cabb6e37e0a7e8885bf5679b4769a7e -File: /usr/lib/python3/site-packages/hglib/__pycache__/context.cpython-37.opt-1.pyc 100644 root:root c9853dafb3f25872ae6c061f52b203da -File: /usr/lib/python3/site-packages/hglib/__pycache__/context.cpython-37.opt-2.pyc 100644 root:root 7f6de8cea7d51aa971dd2ab5db7131cc -File: /usr/lib/python3/site-packages/hglib/__pycache__/context.cpython-37.pyc 100644 root:root c9853dafb3f25872ae6c061f52b203da -File: /usr/lib/python3/site-packages/hglib/__pycache__/error.cpython-37.opt-1.pyc 100644 root:root a080dcb3f42f864ddf15f6e3b84db746 -File: /usr/lib/python3/site-packages/hglib/__pycache__/error.cpython-37.opt-2.pyc 100644 root:root a080dcb3f42f864ddf15f6e3b84db746 -File: /usr/lib/python3/site-packages/hglib/__pycache__/error.cpython-37.pyc 100644 root:root a080dcb3f42f864ddf15f6e3b84db746 -File: /usr/lib/python3/site-packages/hglib/__pycache__/merge.cpython-37.opt-1.pyc 100644 root:root feba5daa3324cb5b9d5ef3332cb06bbe -File: /usr/lib/python3/site-packages/hglib/__pycache__/merge.cpython-37.opt-2.pyc 100644 root:root c3e28b12d8b843954767348c5a96e5a7 -File: /usr/lib/python3/site-packages/hglib/__pycache__/merge.cpython-37.pyc 100644 root:root feba5daa3324cb5b9d5ef3332cb06bbe -File: /usr/lib/python3/site-packages/hglib/__pycache__/templates.cpython-37.opt-1.pyc 100644 root:root 3e88b781eba5f3e72559aca0ba3e9e3a -File: /usr/lib/python3/site-packages/hglib/__pycache__/templates.cpython-37.opt-2.pyc 100644 root:root 3e88b781eba5f3e72559aca0ba3e9e3a -File: /usr/lib/python3/site-packages/hglib/__pycache__/templates.cpython-37.pyc 100644 root:root 3e88b781eba5f3e72559aca0ba3e9e3a -File: /usr/lib/python3/site-packages/hglib/__pycache__/util.cpython-37.opt-1.pyc 100644 root:root 0416a04a8420093d46cb288673f553ca -File: /usr/lib/python3/site-packages/hglib/__pycache__/util.cpython-37.opt-2.pyc 100644 root:root 20ec566f1d25a5c9a8ff9a5c5139c0a8 -File: /usr/lib/python3/site-packages/hglib/__pycache__/util.cpython-37.pyc 100644 root:root 0416a04a8420093d46cb288673f553ca +File: /usr/lib/python3/site-packages/hglib/__pycache__/__init__.cpython-39.opt-1.pyc 100644 root:root 6e6c913afe6dc33b4f9943f4f273c890 +File: /usr/lib/python3/site-packages/hglib/__pycache__/__init__.cpython-39.opt-2.pyc 100644 root:root 0397c5b634fb7897a52743d2e60a18b7 +File: /usr/lib/python3/site-packages/hglib/__pycache__/__init__.cpython-39.pyc 100644 root:root 6e6c913afe6dc33b4f9943f4f273c890 +File: /usr/lib/python3/site-packages/hglib/__pycache__/client.cpython-39.opt-1.pyc 100644 root:root 1d3c644e016f283709afc02f62fa7727 +File: /usr/lib/python3/site-packages/hglib/__pycache__/client.cpython-39.opt-2.pyc 100644 root:root ab76f71db3ee24b2cfeef52cac8d498a +File: /usr/lib/python3/site-packages/hglib/__pycache__/client.cpython-39.pyc 100644 root:root 65e1e5c25872e476152221a0d44776e7 +File: /usr/lib/python3/site-packages/hglib/__pycache__/context.cpython-39.opt-1.pyc 100644 root:root 0bbebef3a56767e77f17ff1a594f65ff +File: /usr/lib/python3/site-packages/hglib/__pycache__/context.cpython-39.opt-2.pyc 100644 root:root c407c1f75518c4365373fd3aa347c3b1 +File: /usr/lib/python3/site-packages/hglib/__pycache__/context.cpython-39.pyc 100644 root:root 0bbebef3a56767e77f17ff1a594f65ff +File: /usr/lib/python3/site-packages/hglib/__pycache__/error.cpython-39.opt-1.pyc 100644 root:root 61e8ecf191e0f13266a004a77359af70 +File: /usr/lib/python3/site-packages/hglib/__pycache__/error.cpython-39.opt-2.pyc 100644 root:root 61e8ecf191e0f13266a004a77359af70 +File: /usr/lib/python3/site-packages/hglib/__pycache__/error.cpython-39.pyc 100644 root:root 61e8ecf191e0f13266a004a77359af70 +File: /usr/lib/python3/site-packages/hglib/__pycache__/merge.cpython-39.opt-1.pyc 100644 root:root da65d52675346d20fe5461ae45eeaa0f +File: /usr/lib/python3/site-packages/hglib/__pycache__/merge.cpython-39.opt-2.pyc 100644 root:root fb90af1cb727d86f8ee44cf23a0f6f64 +File: /usr/lib/python3/site-packages/hglib/__pycache__/merge.cpython-39.pyc 100644 root:root da65d52675346d20fe5461ae45eeaa0f +File: /usr/lib/python3/site-packages/hglib/__pycache__/templates.cpython-39.opt-1.pyc 100644 root:root a9fb4b77746a934578b5e6e4111daa16 +File: /usr/lib/python3/site-packages/hglib/__pycache__/templates.cpython-39.opt-2.pyc 100644 root:root a9fb4b77746a934578b5e6e4111daa16 +File: /usr/lib/python3/site-packages/hglib/__pycache__/templates.cpython-39.pyc 100644 root:root a9fb4b77746a934578b5e6e4111daa16 +File: /usr/lib/python3/site-packages/hglib/__pycache__/util.cpython-39.opt-1.pyc 100644 root:root de937c8b10fd2b97179e1217442277e2 +File: /usr/lib/python3/site-packages/hglib/__pycache__/util.cpython-39.opt-2.pyc 100644 root:root 7715cb48289e2669b2f96021f51d05b5 +File: /usr/lib/python3/site-packages/hglib/__pycache__/util.cpython-39.pyc 100644 root:root de937c8b10fd2b97179e1217442277e2 File: /usr/lib/python3/site-packages/hglib/client.py 100644 root:root 12cd116debd5be948ded130139dee9fa @@ -80,3 +80,3 @@ File: /usr/lib/python3/site-packages/hglib/util.py 100644 root:root 9e62b82d4f89ac0f29555ccfdf9b425d -File: /usr/lib/python3/site-packages/python_hglib-2.6.1-py3.7.egg-info 100644 root:root fcc031301d449d4bc89804a6b35ff5d9 +File: /usr/lib/python3/site-packages/python_hglib-2.6.1-py3.9.egg-info 100644 root:root fcc031301d449d4bc89804a6b35ff5d9 File: /usr/share/doc/python3-module-hglib-2.6.1 40755 root:root @@ -85,2 +85,2 @@ File: /usr/share/doc/python3-module-hglib-2.6.1/examples/stats.py 100644 root:root e01c374c179c6189e4ae3447d95ce52d -RPMIdentity: dcdb7c114b0e2dc8e6ced0025ca592a0 +RPMIdentity: b924a308a59adf83ace334d5993b8e5f