<86>Aug 1 09:50:26 userdel[955666]: delete user 'rooter' <86>Aug 1 09:50:26 userdel[955666]: removed group 'rooter' owned by 'rooter' <86>Aug 1 09:50:26 userdel[955666]: removed shadow group 'rooter' owned by 'rooter' <86>Aug 1 09:50:26 groupadd[955685]: group added to /etc/group: name=rooter, GID=633 <86>Aug 1 09:50:26 groupadd[955685]: group added to /etc/gshadow: name=rooter <86>Aug 1 09:50:26 groupadd[955685]: new group: name=rooter, GID=633 <86>Aug 1 09:50:26 useradd[955702]: new user: name=rooter, UID=633, GID=633, home=/root, shell=/bin/bash <86>Aug 1 09:50:26 userdel[955730]: delete user 'builder' <86>Aug 1 09:50:26 userdel[955730]: removed group 'builder' owned by 'builder' <86>Aug 1 09:50:26 userdel[955730]: removed shadow group 'builder' owned by 'builder' <86>Aug 1 09:50:26 groupadd[955745]: group added to /etc/group: name=builder, GID=634 <86>Aug 1 09:50:26 groupadd[955745]: group added to /etc/gshadow: name=builder <86>Aug 1 09:50:26 groupadd[955745]: new group: name=builder, GID=634 <86>Aug 1 09:50:26 useradd[955766]: new user: name=builder, UID=634, GID=634, home=/usr/src, shell=/bin/bash <13>Aug 1 09:50:28 rpmi: libgdbm-1.8.3-alt10 1454943334 installed <13>Aug 1 09:50:28 rpmi: libexpat-2.2.10-alt1 p9+261554.100.1.1 1605103337 installed <13>Aug 1 09:50:28 rpmi: libp11-kit-0.23.15-alt2 p9+254920.2400.19.1 1601385903 installed <13>Aug 1 09:50:28 rpmi: libtasn1-4.14-alt1 p9+235792.100.2.1 1565425233 installed <13>Aug 1 09:50:28 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Aug 1 09:50:28 rpmi: alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Aug 1 09:50:28 rpmi: ca-certificates-2020.06.29-alt1 p9+258899.100.3.1 1601998604 installed <13>Aug 1 09:50:28 rpmi: ca-trust-0.1.2-alt1 p9+233349.100.1.1 1561655062 installed <13>Aug 1 09:50:28 rpmi: p11-kit-trust-0.23.15-alt2 p9+254920.2400.19.1 1601385903 installed <13>Aug 1 09:50:28 rpmi: libcrypto1.1-1.1.1k-alt1 p9+268376.100.3.1 1616721011 installed <13>Aug 1 09:50:28 rpmi: libssl1.1-1.1.1k-alt1 p9+268376.100.3.1 1616721011 installed <13>Aug 1 09:50:28 rpmi: python3-3.7.4-alt3 p9+249932.100.2.1 1587127349 installed <13>Aug 1 09:50:28 rpmi: libpython3-3.7.4-alt3 p9+249932.100.2.1 1587127349 installed <13>Aug 1 09:50:29 rpmi: python3-base-3.7.4-alt3 p9+249932.100.2.1 1587127349 installed <13>Aug 1 09:50:29 rpmi: tests-for-installed-python3-pkgs-0.1.13.1-alt2 1535450458 installed <13>Aug 1 09:50:29 rpmi: rpm-build-python3-0.1.13.1-alt2 1535450458 installed <13>Aug 1 09:50:31 rpmi: python3-module-pkg_resources-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed <13>Aug 1 09:50:31 rpmi: python3-module-six-1.12.0-alt1 sisyphus+219665.100.2.1 1548148570 installed <13>Aug 1 09:50:31 rpmi: libcom_err-1.44.6-alt1 sisyphus+224154.100.1.1 1552091678 installed <13>Aug 1 09:50:32 rpmi: python3-module-ntlm-1.1.0-alt1.2 sisyphus+228512.100.1.1 1556654575 installed <13>Aug 1 09:50:32 rpmi: python3-module-snowballstemmer-1.2.0-alt2.1 1457859319 installed <13>Aug 1 09:50:32 rpmi: python3-module-pyparsing-2.2.0-alt1 1534411950 installed <13>Aug 1 09:50:32 rpmi: python3-module-packaging-16.8-alt1.qa1 sisyphus+228363.1100.2.2 1556671459 installed <13>Aug 1 09:50:32 rpmi: python3-module-markupsafe-1.1.1-alt1 p9+254838.60.14.1 1602882139 installed <13>Aug 1 09:50:32 rpmi: python3-module-jinja2-2.11.2-alt1 p9+254838.40.14.1 1602882082 installed <13>Aug 1 09:50:32 rpmi: python3-module-imagesize-1.1.0-alt1 sisyphus+229015.100.2.1 1557233756 installed <13>Aug 1 09:50:32 rpmi: python3-module-pytz-1:2016.10-alt1 1484291011 installed <13>Aug 1 09:50:32 rpmi: python3-module-babel-1:2.6.0-alt1 sisyphus+228351.2400.6.2 1556652168 installed <13>Aug 1 09:50:32 rpmi: python3-module-ndg-0.4.2-alt1.qa1 sisyphus+227504.1300.1.2 1555853234 installed <13>Aug 1 09:50:32 rpmi: python3-module-idna-2.8-alt1 sisyphus+227494.400.1.3 1555838720 installed <13>Aug 1 09:50:32 rpmi: python3-module-chardet-3.0.4-alt1 sisyphus+227476.1700.1.2 1555756717 installed <13>Aug 1 09:50:32 rpmi: python3-module-webencodings-0.5.1-alt1.1 1517943573 installed <13>Aug 1 09:50:32 rpmi: python3-module-genshi-0.7-alt2 sisyphus+229363.100.1.1 1557847335 installed <13>Aug 1 09:50:32 rpmi: python3-module-asn1crypto-0.24.0-alt1 sisyphus+227473.1300.1.2 1555756512 installed <13>Aug 1 09:50:32 rpmi: python3-module-pycparser-2.19-alt1 sisyphus+228366.1000.2.3 1556706938 installed <13>Aug 1 09:50:32 rpmi: python3-module-cffi-1.12.3-alt1 sisyphus+229040.200.3.1 1557316452 installed <13>Aug 1 09:50:32 rpmi: python3-module-cryptography-2.6.1-alt1 sisyphus+225625.24400.91.1 1555298600 installed <13>Aug 1 09:50:32 rpmi: python3-module-OpenSSL-18.0.0-alt1 1532996168 installed <13>Aug 1 09:50:32 rpmi: python3-module-ndg-httpsclient-0.4.2-alt1.qa1 sisyphus+227504.1300.1.2 1555853234 installed <13>Aug 1 09:50:32 rpmi: python3-module-urllib3-2:1.25.6-alt1 p9+250567.200.5.1 1590420860 installed <13>Aug 1 09:50:32 rpmi: python3-module-requests-2.23.0-alt1 p9+250567.500.5.1 1590420921 installed <13>Aug 1 09:50:32 rpmi: python-sphinx-objects.inv-1:2.3.8.20190514-alt1 p9+229421.100.1.1 1557927689 installed <13>Aug 1 09:50:32 rpmi: python-modules-curses-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 09:50:32 rpmi: libverto-0.3.0-alt1_7 sisyphus+225932.100.1.1 1553994919 installed <13>Aug 1 09:50:32 rpmi: libkeyutils-1.6-alt2 sisyphus+226520.100.2.1 1554512089 installed <86>Aug 1 09:50:32 groupadd[980204]: group added to /etc/group: name=_keytab, GID=499 <86>Aug 1 09:50:32 groupadd[980204]: group added to /etc/gshadow: name=_keytab <86>Aug 1 09:50:32 groupadd[980204]: new group: name=_keytab, GID=499 <13>Aug 1 09:50:33 rpmi: libkrb5-1.17.2-alt2 p9+280683.100.2.1 1627489307 installed <13>Aug 1 09:50:33 rpmi: libtirpc-1.0.3-alt1 1532008017 installed <13>Aug 1 09:50:33 rpmi: libnsl2-1.1.0-alt1_1 1511548749 installed <13>Aug 1 09:50:33 rpmi: python-modules-compiler-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 09:50:33 rpmi: python-modules-email-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 09:50:33 rpmi: python-modules-unittest-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 09:50:33 rpmi: python-modules-encodings-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 09:50:33 rpmi: python-modules-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 09:50:33 rpmi: python-modules-nis-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 09:50:33 rpmi: python-modules-xml-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 09:50:33 rpmi: python-modules-hotshot-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 09:50:33 rpmi: python-modules-bsddb-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 09:50:33 rpmi: python-modules-ctypes-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 09:50:33 rpmi: python-modules-multiprocessing-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 09:50:33 rpmi: python-modules-logging-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 09:50:33 rpmi: python-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 09:50:33 rpmi: python-strict-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed <13>Aug 1 09:50:33 rpmi: python-module-egenix-mx-base-3.2.8-alt1 1405907333 installed <13>Aug 1 09:50:33 rpmi: python-modules-distutils-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 09:50:33 rpmi: python-module-pkg_resources-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed <13>Aug 1 09:50:33 rpmi: python-module-six-1.12.0-alt1 sisyphus+219665.100.2.1 1548148570 installed <13>Aug 1 09:50:33 rpmi: python-module-kerberos-1.3.0-alt2 sisyphus+225625.10500.91.1 1555288073 installed <13>Aug 1 09:50:33 rpmi: libgpg-error-1.36-alt1 p9+261942.140.4.1 1606237675 installed <13>Aug 1 09:50:33 rpmi: libgcrypt20-1.8.5-alt3 p9+261942.200.4.1 1606237923 installed <13>Aug 1 09:50:33 rpmi: libxslt-1.1.34-alt1.p9.1 p9+261811.300.3.1 1605513919 installed <13>Aug 1 09:50:33 rpmi: python3-module-cssselect-0.9.1-alt1.2 sisyphus+227479.1100.1.2 1555757152 installed <13>Aug 1 09:50:33 rpmi: python3-module-html5lib-1:0.999999999-alt4.qa1 sisyphus+227493.600.1.3 1555835341 installed <13>Aug 1 09:50:34 rpmi: python3-module-lxml-4.4.2-alt1 p9+244111.100.1.1 1578758819 installed <13>Aug 1 09:50:34 rpmi: python3-module-docutils-0.14-alt2 1535729778 installed <13>Aug 1 09:50:34 rpmi: python3-module-alabaster-0.7.6-alt3 sisyphus+228351.700.4.1 1556637370 installed <13>Aug 1 09:50:34 rpmi: python3-module-sphinxcontrib-applehelp-1.0.1-alt1 sisyphus+228217.100.1.1 1556282506 installed <13>Aug 1 09:50:34 rpmi: python3-module-sphinxcontrib-devhelp-1.0.1-alt1 sisyphus+228218.100.1.1 1556283262 installed <13>Aug 1 09:50:34 rpmi: python3-module-sphinxcontrib-htmlhelp-1.0.2-alt1 sisyphus+228401.100.1.1 1556572721 installed <13>Aug 1 09:50:34 rpmi: python3-module-sphinxcontrib-jsmath-1.0.1-alt1 p9+247680.64.15.1 1585326575 installed <13>Aug 1 09:50:34 rpmi: python3-module-sphinxcontrib-qthelp-1.0.2-alt1 sisyphus+228215.100.1.1 1556282300 installed <13>Aug 1 09:50:34 rpmi: python3-module-sphinxcontrib-serializinghtml-1.1.3-alt1 sisyphus+228216.100.1.1 1556282403 installed <13>Aug 1 09:50:34 rpmi: python3-module-sphinx-1:2.2.0-alt2.1.p9 p9+247680.14.15.1 1585326533 installed <13>Aug 1 09:50:34 rpmi: python3-module-Pygments-2.6.1-alt2 p9+263160.600.6.1 1607946197 installed <13>Aug 1 09:50:34 rpmi: python3-module-logilab-common-1.4.1-alt3 sisyphus+227501.100.1.2 1555851170 installed <13>Aug 1 09:50:34 rpmi: python-module-logilab-common-1.4.1-alt3 sisyphus+227501.100.1.2 1555851170 installed Building target platforms: i586 Building for target i586 Wrote: /usr/src/in/nosrpm/python-module-logilab-constraint-0.5.0-alt2.hg20130911.1.2.nosrc.rpm (w1.gzdio) <13>Aug 1 09:50:36 rpmi: python-tools-2to3-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 09:50:36 rpmi: libtinfo-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686226 installed <13>Aug 1 09:50:36 rpmi: libncurses-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686226 installed <13>Aug 1 09:50:37 rpmi: python3-dev-3.7.4-alt3 p9+249932.100.2.1 1587127349 installed <13>Aug 1 09:50:37 rpmi: libnsl2-devel-1.1.0-alt1_1 1511548749 installed <13>Aug 1 09:50:37 rpmi: python-dev-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Aug 1 09:50:37 rpmi: python-module-setuptools-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed <13>Aug 1 09:50:37 rpmi: python3-module-setuptools-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed Installing python-module-logilab-constraint-0.5.0-alt2.hg20130911.1.2.src.rpm Building target platforms: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.72042 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python-module-logilab-constraint-0.5.0 + echo 'Source #0 (constraint-0.5.0.tar.gz):' Source #0 (constraint-0.5.0.tar.gz): + /bin/tar -xf - + /bin/gzip -dc /usr/src/RPM/SOURCES/constraint-0.5.0.tar.gz + cd python-module-logilab-constraint-0.5.0 + /bin/chmod -c -Rf u+rwX,go-w . + touch test/__init__.py + rm -rf ../python3 + cp -a . ../python3 + touch ../python3/test/__init__.py + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.43920 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-logilab-constraint-0.5.0 + 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/python setup.py build running build running build_py creating build creating build/lib creating build/lib/logilab creating build/lib/logilab/constraint copying ./propagation.py -> build/lib/logilab/constraint copying ./interfaces.py -> build/lib/logilab/constraint copying ./fi.py -> build/lib/logilab/constraint copying ./fd.py -> build/lib/logilab/constraint copying ./distributors.py -> build/lib/logilab/constraint copying ./__pkginfo__.py -> build/lib/logilab/constraint copying ./__init__.py -> build/lib/logilab/constraint creating build/lib/logilab/constraint/test copying ./test/__init__.py -> build/lib/logilab/constraint/test copying ./test/test_validation.py -> build/lib/logilab/constraint/test copying ./test/test_propagation.py -> build/lib/logilab/constraint/test copying ./test/test_fi.py -> build/lib/logilab/constraint/test copying ./test/test_domains.py -> build/lib/logilab/constraint/test copying ./test/test_distributors.py -> build/lib/logilab/constraint/test copying ./test/test_constraints.py -> build/lib/logilab/constraint/test copying ./test/__profile__.py -> build/lib/logilab/constraint/test + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-logilab-constraint-0.5.0 + cp setup.py setup.py.bak + find -type f -name '*.py' -exec 2to3 -w -n '{}' + RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: Refactored ./test/test_validation.py RefactoringTool: Refactored ./test/test_propagation.py RefactoringTool: Refactored ./test/test_fi.py --- ./test/test_validation.py (original) +++ ./test/test_validation.py (refactored) @@ -24,7 +24,7 @@ from logilab.constraint.distributors import EnumeratorDistributor import os, sys -from cStringIO import StringIO +from io import StringIO class Queens8_TC(TestCase): --- ./test/test_propagation.py (original) +++ ./test/test_propagation.py (refactored) @@ -29,7 +29,7 @@ self.domains = {} self.variables = list('abcdef') for v in self.variables: - self.domains[v] = fd.FiniteDomain(range(6)) + self.domains[v] = fd.FiniteDomain(list(range(6))) self.repo = Repository(self.variables, self.domains) @@ -42,7 +42,7 @@ try: try: self.repo.vcg_draw('toto.vcg') - except IOError, exc: + except IOError as exc: self.fail('This test cannot run in the testing environment' 'because I cannot write the file.\n' 'The error message was: \n%s' % exc) @@ -63,7 +63,7 @@ def testConsistencyNoConstraint(self): self.repo.consistency() - for v, dom in self.repo.getDomains().items(): + for v, dom in list(self.repo.getDomains().items()): self.assertEqual(dom.size(),6) def testConsistency(self): @@ -74,7 +74,7 @@ '%s < %s'%(v1, v2))) self.repo.consistency() - for v, dom in self.repo.getDomains().items(): + for v, dom in list(self.repo.getDomains().items()): self.assertEqual(dom.size(),1) def testInconsistency(self): @@ -96,7 +96,7 @@ self.domains = {} self.variables = list('abcdef') for v in self.variables: - self.domains[v] = fd.FiniteDomain(range(6)) + self.domains[v] = fd.FiniteDomain(list(range(6))) self.repo = Repository(self.variables, self.domains) for v1 in self.variables: @@ -137,7 +137,7 @@ self.domains = {} self.variables = list('abc') for v in self.variables: - self.domains[v] = fd.FiniteDomain(range(6)) + self.domains[v] = fd.FiniteDomain(list(range(6))) self.repo = Repository(self.variables, self.domains) for v1 in self.variables: --- ./test/test_fi.py (original) +++ ./test/test_fi.py (refactored) @@ -72,12 +72,12 @@ self.assertEqual(self.dom3.size(), 12) def test_overlap(self): - self.failUnless(self.dom1.overlap(self.dom2)) - self.failUnless(self.dom1.overlap(FiniteIntervalDomain(-5, 5, 1))) - self.failUnless(self.dom1.overlap(FiniteIntervalDomain( 5, 15, 1))) - self.failUnless(self.dom1.overlap(FiniteIntervalDomain(-5, 15, 1))) - self.failIf(self.dom1.overlap(FiniteIntervalDomain(-15, 0, 1))) - self.failIf(self.dom1.overlap(FiniteIntervalDomain(10, 25, 1))) + self.assertTrue(self.dom1.overlap(self.dom2)) + self.assertTrue(self.dom1.overlap(FiniteIntervalDomain(-5, 5, 1))) + self.assertTrue(self.dom1.overlap(FiniteIntervalDomain( 5, 15, 1))) + self.assertTrue(self.dom1.overlap(FiniteIntervalDomain(-5, 15, 1))) + self.assertFalse(self.dom1.overlap(FiniteIntervalDomain(-15, 0, 1))) + self.assertFalse(self.dom1.overlap(FiniteIntervalDomain(10, 25, 1))) def test_SetLow(self): self.dom1.setLowestMin(2) @@ -458,10 +458,10 @@ 'v2': d2, } dom1, dom2 = self.d.distribute(domains) - self.failUnless(dom1['v2'] == dom2['v2']) - self.failUnless(dom1['v2'] == d2) - self.failIf(dom1['v1'] == d1) - self.failIf(dom2['v1'] == d1) + self.assertTrue(dom1['v2'] == dom2['v2']) + self.assertTrue(dom1['v2'] == d2) + self.assertFalse(dom1['v1'] == d1) + self.assertFalse(dom2['v1'] == d1) self.assertEqual(dom1['v1']._max_length, d1._min_length) self.assertEqual(dom2["v1"]._min_length, d1._min_length+d1._resolution) self.assertEqual(RefactoringTool: Refactored ./test/test_domains.py RefactoringTool: Refactored ./test/test_distributors.py RefactoringTool: Refactored ./test/test_constraints.py d1.size(), dom1['v1'].size() + dom2['v1'].size()) @@ -473,10 +473,10 @@ 'v2': d2, } dom1, dom2 = self.d.distribute(domains) - self.failUnless(dom1['v2'] == dom2['v2']) - self.failUnless(dom1['v2'] == d2) - self.failIf(dom1['v1'] == d1) - self.failIf(dom2['v1'] == d1) + self.assertTrue(dom1['v2'] == dom2['v2']) + self.assertTrue(dom1['v2'] == d2) + self.assertFalse(dom1['v1'] == d1) + self.assertFalse(dom2['v1'] == d1) self.assertEqual(dom1['v1'].size(), 1) self.assertEqual(dom1["v1"].highestMax, d1._min_length + d1.lowestMin) self.assertEqual(dom2["v1"].lowestMin, d1._resolution + d1.lowestMin) --- ./test/test_domains.py (original) +++ ./test/test_domains.py (refactored) @@ -65,7 +65,7 @@ class SuiteDomainTC(AbstractDomainTC): def setUp(self): - self.values = range(3) + self.values = list(range(3)) self.domain = fd.FiniteDomain(self.values) @@ -75,7 +75,7 @@ all_cases = [] for name in dir(module): obj = getattr(module, name) - if type(obj) in (types.ClassType, types.TypeType) and \ + if type(obj) in (type, type) and \ issubclass(obj, TestCase) and \ not name.startswith('Abstract'): all_cases.append(obj) @@ -83,7 +83,7 @@ return all_cases def suite(cases = None): - import test_domains + from . import test_domains cases = cases or get_all_cases(test_domains) loader = unittest.defaultTestLoader loader.testMethodPrefix = 'test' --- ./test/test_distributors.py (original) +++ ./test/test_distributors.py (refactored) @@ -20,6 +20,7 @@ import unittest from logilab.common.testlib import TestCase, TestSuite from logilab.constraint import distributors,fd +from functools import reduce class AbstractDistributorTC(TestCase): @@ -129,7 +130,7 @@ all_cases = [] for name in dir(module): obj = getattr(module, name) - if type(obj) in (types.ClassType, types.TypeType) and \ + if type(obj) in (type, type) and \ issubclass(obj, TestCase) and \ not name.startswith('Abstract'): all_cases.append(obj) @@ -137,7 +138,7 @@ return all_cases def suite(cases = None): - import test_distributors + from . import test_distributors cases = cases or get_all_cases(test_distributors) loader = unittest.defaultTestLoader loader.testMethodPrefix = 'test' --- ./test/test_constraints.py (original) +++ ./test/test_constraints.py (refactored) @@ -40,8 +40,8 @@ def testRelevance(self): """tests that relevant variables are relevant""" for v in self.relevant_variables: - self.assert_(self.constraint.isVariableRelevant(v)) - self.failIf(self.constraint.isVariableRelevant(self.irrelevant_variable)) + self.assertTrue(self.constraint.isVariableRelevant(v)) + self.assertFalse(self.constraint.isVariableRelevant(self.irrelevant_variable)) def testNarrowing(self): @@ -52,7 +52,7 @@ def testEntailment(self): """tests that narrowing is performed correctly""" entailed = self.constraint.narrow(self.entailed_domains) - self.assert_(entailed) + self.assertTrue(entailed) class AllDistinctTC(AbstractConstraintTC): def setUp(self): @@ -71,9 +71,9 @@ vx = self.domains['x'].getValues() vy = self.domains['y'].getValues() vz = self.domains['z'].getValues() - self.assert_( 1 in vx and 2 in vx) - self.assert_( 1 in vy and 3 in vy) - self.assert_( 1 in vz and 4 in vz) + self.assertTrue( 1 in vx and 2 in vx) + self.assertTrue( 1 in vy and 3 in vy) + self.assertTrue( 1 in vz and 4 in vz) def testNarrowing2(self): domains = {'x':fd.FiniteDomain((1,2)), @@ -83,10 +83,10 @@ vx = domains['x'].getValues() vy = domains['y'].getValues() vz = domains['z'].getValues() - self.assert_(entailed) - self.assert_(2 in vx) - self.assert_(1 in vy) - self.assert_(4 in vz) + self.assertTrue(entailed) + self.assertTrue(2 in vx) + self.assertTrue(1 in vy) + self.assertTrue(4 in vz) def testNarrowing3(self): domains = {'x':fd.FiniteDomain((1,)), @@ -96,10 +96,10 @@ vx = domains['x'].getValues() vy = domains['y'].getValues() vz = domains['z'].getValues() - self.assert_(not entailed) - self.assert_(1 in vx, str(vx)) - self.assert_(2 in vy, str(vy)) - self.assert_(4 in vz and 3 in vz, str(vz)) + self.assertTrue(not entailed) + self.assertTrue(1 in vx, str(vx)) + self.assertTrue(2 in vy, str(vy)) + self.assertTrue(4 in vz and 3 in vz, str(vz)) def testNarrowing4(self): domains = {'x':fd.FiniteDomain((1,)), @@ -108,14 +108,14 @@ 't':fd.FiniteDomain((2,5,4)), 'u':fd.FiniteDomain((1,2,4)), } - constraint = fd.AllDistinct(domains.keys()) + constraint = fd.AllDistinct(list(domains.keys())) entailed = constraint.narrow(domains) vx = domains['x'].getValues() vy = domains['y'].getValues() vz = domains['z'].getValues() vt = domains['t'].getValues() vu = domains['u'].getValues() - self.failUnless(entailed) + self.assertTrue(entailed) self.assertEqual([1], vx) self.assertEqual([2], vy) self.assertEqual([3], vz) @@ -163,7 +163,7 @@ self.irrelevant_variable = 'tagada' self.constraint = fd.make_expression(self.relevant_variables, 'x==2') - self.domains = {'x':fd.FiniteDomain(range(4))} + self.domains = {'x':fd.FiniteDomain(list(range(4)))} self.entailed_domains = {'x':fd.FiniteDomain([2])} def narrowingAssertions(self): v = list(self.domains['x'].getValues()) @@ -176,8 +176,8 @@ self.irrelevant_variable = 'tagada' self.constraint = fd.make_expression(self.relevant_variables, 'x+y==2') - self.domains = {'x':fd.FiniteDomain(range(4)), - 'y':fd.FiniteDomain(range(2))} + self.domains = {'x':fd.FiniteDomain(list(range(4))), + 'y':fd.FiniteDomain(list(range(2)))} self.entailed_domains = {'x':fd.FiniteDomain([2]), 'y':fd.FiniteDomain([0])} def narrowingAssertions(self): @@ -194,9 +194,9 @@ self.irrelevant_variable = 'tagada' self.constraint = fd.make_expression(self.relevant_variables, 'x+y==2 and z>1') - self.domains = {'x':fd.FiniteDomain(range(4)), - 'y':fd.FiniteDomain(range(3)), - 'z':fd.FiniteDomain(range(4))} + self.domains = {'x':fd.FiniteDomain(list(range(4))), + 'y':fd.FiniteDomain(list(range(3))), + 'z':fd.FiniteDomain(list(range(4)))} self.entailed_domains = {'x':fd.FiniteDomain([2]), 'y':fd.FiniteDomain([0]), 'z':fd.FiniteDomain([2,3]),} @@ -247,7 +247,7 @@ class EqualsConstrTC(AbstractBasicConstraintTC): def setUp(self): self.constraint = fd.Equals('x',1) - self.domains = {'x':fd.FiniteDomain(range(3))} + self.domains = {'x':fd.FiniteDomain(list(range(3)))} def narrowingAssertions(self): v = list(self.domains['x'].getValues()) @@ -257,7 +257,7 @@ class NotEqualsConstrTC(AbstractBasicConstraintTC): def setUp(self): self.constraint = fd.NotEquals('x',1) - self.domains = {'x':fd.FiniteDomain(range(3))} + self.domains = {'x':fd.FiniteDomain(list(range(3)))} def narrowingAssertions(self): v = list(self.domains['x'].getValues()) @@ -267,7 +267,7 @@ class LesserThanConstrTC(AbstractBasicConstraintTC): def setRefactoringTool: Refactored ./test/__profile__.py RefactoringTool: Refactored ./setup.py RefactoringTool: Refactored ./propagation.py Up(self): self.constraint = fd.LesserThan('x',1) - self.domains = {'x':fd.FiniteDomain(range(3))} + self.domains = {'x':fd.FiniteDomain(list(range(3)))} def narrowingAssertions(self): v = list(self.domains['x'].getValues()) @@ -277,7 +277,7 @@ class LesserOrEqualConstrTC(AbstractBasicConstraintTC): def setUp(self): self.constraint = fd.LesserOrEqual('x',1) - self.domains = {'x':fd.FiniteDomain(range(3))} + self.domains = {'x':fd.FiniteDomain(list(range(3)))} def narrowingAssertions(self): v = list(self.domains['x'].getValues()) @@ -287,7 +287,7 @@ class GreaterThanConstrTC(AbstractBasicConstraintTC): def setUp(self): self.constraint = fd.GreaterThan('x',1) - self.domains = {'x':fd.FiniteDomain(range(3))} + self.domains = {'x':fd.FiniteDomain(list(range(3)))} def narrowingAssertions(self): v = list(self.domains['x'].getValues()) @@ -297,7 +297,7 @@ class GreaterOrEqualConstrTC(AbstractBasicConstraintTC): def setUp(self): self.constraint = fd.GreaterOrEqual('x',1) - self.domains = {'x':fd.FiniteDomain(range(3))} + self.domains = {'x':fd.FiniteDomain(list(range(3)))} def narrowingAssertions(self): v = list(self.domains['x'].getValues()) @@ -311,7 +311,7 @@ all_cases = [] for name in dir(module): obj = getattr(module, name) - if type(obj) in (types.ClassType, types.TypeType) and \ + if type(obj) in (type, type) and \ issubclass(obj, TestCase) and \ not name.startswith('Abstract'): all_cases.append(obj) @@ -319,7 +319,7 @@ return all_cases def suite(cases = None): - import test_constraints + from . import test_constraints cases = cases or get_all_cases(test_constraints) loader = unittest.defaultTestLoader loader.testMethodPrefix = 'test' --- ./test/__profile__.py (original) +++ ./test/__profile__.py (refactored) @@ -40,7 +40,7 @@ {'q1':q1,'q2':q2})) r = Repository(variables,domains,constraints) s = Solver().solve(r,verbose) - print 'Number of solutions:',len(s) + print('Number of solutions:',len(s)) if __name__ == '__main__': import profile --- ./setup.py (original) +++ ./setup.py (refactored) @@ -41,39 +41,39 @@ # import required features -from __pkginfo__ import modname, version, license, short_desc, long_desc, \ +from .__pkginfo__ import modname, version, license, short_desc, long_desc, \ web, author, author_email # import optional features try: - from __pkginfo__ import distname + from .__pkginfo__ import distname except ImportError: distname = modname try: - from __pkginfo__ import classifiers + from .__pkginfo__ import classifiers except ImportError: classifiers = [] try: - from __pkginfo__ import scripts + from .__pkginfo__ import scripts except ImportError: scripts = [] try: - from __pkginfo__ import data_files + from .__pkginfo__ import data_files except ImportError: data_files = None try: - from __pkginfo__ import subpackage_of + from .__pkginfo__ import subpackage_of except ImportError: subpackage_of = None try: - from __pkginfo__ import include_dirs + from .__pkginfo__ import include_dirs except ImportError: include_dirs = [] try: - from __pkginfo__ import ext_modules + from .__pkginfo__ import ext_modules except ImportError: ext_modules = None try: - from __pkginfo__ import install_requires + from .__pkginfo__ import install_requires except ImportError: install_requires = None @@ -133,7 +133,7 @@ continue src = '%s/%s' % (directory, filename) dest = to_dir + src[len(from_dir):] - print >> sys.stderr, src, '->', dest + print(src, '->', dest, file=sys.stderr) if os.path.isdir(src): if not exists(dest): os.mkdir(dest) --- ./propagatiRefactoringTool: No changes to ./interfaces.py RefactoringTool: Refactored ./fi.py RefactoringTool: Refactored ./fd.py on.py (original) +++ ./propagation.py (refactored) @@ -16,15 +16,16 @@ # You should have received a copy of the GNU Lesser General Public License along # with logilab-constraint. If not, see . """The code of the constraint propagation algorithms""" -from __future__ import generators + from operator import mul as MUL from time import strftime from logilab.constraint.interfaces import DomainInterface, ConstraintInterface +from functools import reduce def _default_printer(*msgs): for msg in msgs[:-1]: - print msg, - print msgs[-1] + print(msg, end=' ') + print(msgs[-1]) def quiet_printer(*args): pass @@ -43,7 +44,7 @@ self._printer = printer for i, var in enumerate(variables): - if type(var) == type(u''): + if type(var) == type(''): variables[i] = var.encode() self._variables = variables # list of variable names @@ -53,7 +54,7 @@ self._variableListeners = {} for var in self._variables: self._variableListeners[var] = [] - assert self._domains.has_key(var) + assert var in self._domains for constr in constraints or (): self.addConstraint(constr) @@ -99,7 +100,7 @@ i = 0 for constraint in self._constraints: key = constraint.type - if not type_colors.has_key(key): + if key not in type_colors: type_colors[key] = color_index color_index += 1 affected_vars = constraint.affectedVariables() @@ -118,7 +119,7 @@ printer.edge(var1, n_id, arrowstyle='none', color=EDGE_ATTRS['color'][type_colors[key]]) # self._printer( legend) - for node_type, color in type_colors.items(): + for node_type, color in list(type_colors.items()): printer.node(node_type, shape='box', color=EDGE_ATTRS['color'][color]) printer.close_graph() @@ -224,7 +225,7 @@ if constraint in _affected_constraints: del _affected_constraints[constraint] - for domain in self._domains.itervalues(): + for domain in self._domains.values(): if domain.size() != 1: return 0 return 1 @@ -248,7 +249,7 @@ self.max_depth = 0 self.distrib_cnt = 0 try: - return self._solve(repository).next() + return next(self._solve(repository)) except StopIteration: return @@ -293,13 +294,13 @@ repository.display_vars() try: foundSolution = repository.consistency(verbose, custom_printer=self.printer) - except ConsistencyFailure, exc: + except ConsistencyFailure as exc: if verbose: self.printer( strftime('%H:%M:%S'), exc) else: if foundSolution: solution = {} - for variable, domain in repository.getDomains().items(): + for variable, domain in list(repository.getDomains().items()): solution[variable] = domain.getValues()[0] if verbose: self.printer( strftime('%H:%M:%S'), '### Found Solution', solution) --- ./fi.py (original) +++ ./fi.py (refactored) @@ -20,7 +20,7 @@ """ -from __future__ import generators, division + from logilab.constraint.distributors import AbstractDistributor @@ -201,7 +201,7 @@ def _distribute(self, dom1, dom2): variable = self.findSmallestDomain(dom1) if self.verbose: - print 'Distributing domain for variable', variable + print('Distributing domain for variable', variable) splitted = dom1[variable] cpy1 = splitted.copy() cpy2 = splitted.copy() --- ./fd.py (original) +++ ./fd.py (refactored) @@ -27,7 +27,7 @@ The Expression and BinaryExpression classes can be constructed using the make_expression factory fuRefactoringTool: Refactored ./examples/sudoku.py RefactoringTool: Refactored ./examples/rooks.py WARNING: couldn't encode ./examples/rooks.py's diff for your terminal RefactoringTool: Refactored ./examples/queens3.py WARNING: couldn't encode ./examples/queens3.py's diff for your terminal RefactoringTool: Refactored ./examples/queens2.py nction. """ -from __future__ import generators + import operator @@ -193,19 +193,19 @@ result_cache = self._init_result_cache() for kwargs in self._assign_values(domains): if maybe_entailed: - for var, val in kwargs.iteritems(): + for var, val in kwargs.items(): if val not in result_cache[var]: break else: continue if ffunc(**kwargs): - for var, val in kwargs.items(): + for var, val in list(kwargs.items()): result_cache[var][val] = 1 else: maybe_entailed = 0 try: - for var, keep in result_cache.iteritems(): + for var, keep in result_cache.items(): domain = domains[var] domain.removeValues([val for val in domain if val not in keep]) @@ -272,7 +272,7 @@ raise ConsistencyFailure('Inconsistency while applying %s' % \ repr(self)) except Exception: - print self, kwargs + print(self, kwargs) raise return maybe_entailed @@ -283,7 +283,7 @@ # encode unicode vars = [] for var in variables: - if type(var) == type(u''): + if type(var) == type(''): vars.append(var.encode()) else: vars.append(var) --- ./examples/sudoku.py (original) +++ ./examples/sudoku.py (refactored) @@ -96,8 +96,8 @@ def display_solution(d): for i in range(9): for j in range(9): - print d['v%02d_%02d'%(i,j)], - print + print(d['v%02d_%02d'%(i,j)], end=' ') + print() if __name__ == '__main__': import sys, getopt @@ -113,4 +113,4 @@ if display: display_solution(sol) else: - print sol + print(sol) --- ./examples/rooks.py (original) +++ ./examples/rooks.py (refactored) @@ -22,7 +22,7 @@ the smallest domain in at most N subdomains.""" -from __future__ import generators + from logilab.constraint import * from logilab.constraint.distributors import * @@ -34,7 +34,7 @@ for i in range(size): name = 'R%02d'%i variables.append(name) - domains[name] = fd.FiniteDomain( range(size) ) + domains[name] = fd.FiniteDomain( list(range(size)) ) for r1 in range(size): for r2 in range(size): @@ -54,7 +54,7 @@ def draw_solution(s): size = len(s) board = '' - queens = s.items() + queens = list(s.items()) queens.sort() board += '_'*(size*2+1)+'\n' for i in range(size): @@ -66,7 +66,7 @@ board+='|R' board+='|\n' --- ./examples/queens3.py (original) +++ ./examples/queens3.py (refactored) @@ -22,7 +22,7 @@ the smallest domain in at most N subdomains.""" -from __future__ import generators + from logilab.constraint import * from logilab.constraint.distributors import * @@ -52,7 +52,7 @@ size = len(s) queens = {} board = '' - for q,p in s.items(): + for q,p in list(s.items()): queens[p]=q board += '_'*(size*2+1)+'\n' for i in range(size): @@ -65,7 +65,7 @@ board+='|Q' board+='|\n' --- ./examples/queens2.py (original) +++ ./examples/queens2.py (refactored) @@ -22,7 +22,7 @@ the smallest domain in at most N subdomains.""" -from __future__ import generators + from logilab.constraint import * from logilab.constraint.distributors import * @@ -41,7 +41,7 @@ for i in range(size): name = 'Q%02d'%i variables.append(name) - domains[name] = fd.FiniteDomain( range(size) ) + domains[name] = fd.FiniteDomain( list(range(size)) ) for r1 in range(size): q1 = 'Q%02d' % r1 @@ -63,7 +63,7 @@ def draw_solution(s): size = len(s) board = '' - queens = s.items() + queens = list(s.items()) queens.sort() board += '_'*(size*2+1)+'\n' for i in range(size): @@ -75,7 +75,7 @WARNING: couldn't encode ./examples/queens2.py's diff for your terminal RefactoringTool: Refactored ./examples/queens.py WARNING: couldn't encode ./examples/queens.py's diff for your terminal RefactoringTool: Refactored ./examples/money2.py RefactoringTool: Refactored ./examples/money.py RefactoringTool: Refactored ./examples/menza_brute_force.py RefactoringTool: Refactored ./examples/menza2.py @ board+='|Q' board+='|\n' --- ./examples/queens.py (original) +++ ./examples/queens.py (refactored) @@ -21,7 +21,7 @@ The problem is solved with a EnumeratorDistributor splitting the smallest domain in at most N subdomains.""" -from __future__ import generators + from logilab.constraint import * from logilab.constraint.distributors import * @@ -63,7 +63,7 @@ size = len(s) queens = {} board = '' - for q,p in s.items(): + for q,p in list(s.items()): queens[p]=q board += '_'*(size*2+1)+'\n' for i in range(size): @@ -76,7 +76,7 @@ board+='|Q' board+='|\n' --- ./examples/money2.py (original) +++ ./examples/money2.py (refactored) @@ -27,7 +27,7 @@ ------- MONEY """ - digits = range(10) + digits = list(range(10)) variables = list('sendmory') domains = {} constraints = [] @@ -49,15 +49,15 @@ return s def display_solution(d): - print ' SEND\t \t',' %(s)d%(e)d%(n)d%(d)d'%d - print '+ MORE\t \t','+ %(m)d%(o)d%(r)d%(e)d'%d - print '------\t-->\t','------' - print ' MONEY\t \t',' %(m)d%(o)d%(n)d%(e)d%(y)d'%d + print(' SEND\t \t',' %(s)d%(e)d%(n)d%(d)d'%d) + print('+ MORE\t \t','+ %(m)d%(o)d%(r)d%(e)d'%d) + print('------\t-->\t','------') + print(' MONEY\t \t',' %(m)d%(o)d%(n)d%(e)d%(y)d'%d) if __name__ == '__main__': - print 'WARNING!' - print 'This example takes looooooooooooooots of CPU to complete.' - print 'try money.py for a faster version.' + print('WARNING!') + print('This example takes looooooooooooooots of CPU to complete.') + print('try money.py for a faster version.') import sys, getopt opts, args = getopt.getopt(sys.argv[1:], 'dv') verbose = 0 @@ -71,4 +71,4 @@ if display: display_solution(sol) else: - print sol + print(sol) --- ./examples/money.py (original) +++ ./examples/money.py (refactored) @@ -26,7 +26,7 @@ ------- MONEY """ - digits = range(10) + digits = list(range(10)) variables = list('sendmory') domains = {} constraints = [] @@ -52,11 +52,11 @@ def display_solution(d): for s in d: - print ' SEND\t \t',' %(s)d%(e)d%(n)d%(d)d'%s - print '+ MORE\t \t','+ %(m)d%(o)d%(r)d%(e)d'%s - print '------\t-->\t','------' - print ' MONEY\t \t',' %(m)d%(o)d%(n)d%(e)d%(y)d'%s - print + print(' SEND\t \t',' %(s)d%(e)d%(n)d%(d)d'%s) + print('+ MORE\t \t','+ %(m)d%(o)d%(r)d%(e)d'%s) + print('------\t-->\t','------') + print(' MONEY\t \t',' %(m)d%(o)d%(n)d%(e)d%(y)d'%s) + print() if __name__ == '__main__': import sys, getopt @@ -72,4 +72,4 @@ if display: display_solution([sol]) else: - print sol + print(sol) --- ./examples/menza_brute_force.py (original) +++ ./examples/menza_brute_force.py (refactored) @@ -27,9 +27,9 @@ digits.sort() if digits == all_digits : sol.append({'a': a, 'b': b}) - print "%.3d x %.2d = %.5d" % (a, b, c) + print("%.3d x %.2d = %.5d" % (a, b, c)) return sol if __name__ == '__main__': sol = menza() - print len(sol) + print(len(sol)) --- ./examples/menza2.py (original) +++ ./examples/menza2.py (refactored) @@ -20,7 +20,7 @@ ABC*DE=FGHIJ with all letters different and in domain [0,9] """ -from __future__ import generators + from logilab.constraint import * from logilab.constraint.distributors import DichotomyDistributor @@ -39,7 +39,7 @@ if s.count(d) not in (0,1): domain.removeValue(v) break - except ConsistencyFailure, e: + except ConsistencyFailure as e: raise ConsistencyFailure('inconsistency while applying %s'%repr(self)) return 1 @@ -59,8 +59,8 @@ constraints = [] # x = ABC and y = DE, x*y = FGHIJ - domains['x'] = fd.FiniteDomain(range(0,1000)) - doRefactoringTool: Refactored ./examples/menza.py RefactoringTool: Refactored ./examples/knights.py WARNING: couldn't encode ./examples/knights.py's diff for your terminal RefactoringTool: Refactored ./examples/intervals.py RefactoringTool: Refactored ./examples/conferences.py RefactoringTool: Refactored ./examples/chess.py RefactoringTool: Refactored ./distributors.py mains['y'] = fd.FiniteDomain(range(0,100)) + domains['x'] = fd.FiniteDomain(list(range(0,1000))) + domains['y'] = fd.FiniteDomain(list(range(0,100))) # x and y *must* have distinct digits themselves # (for example this will remove 232 from x's domain) @@ -88,12 +88,12 @@ display = 1 r = mensa() - print 'problem created. let us solve it.' + print('problem created. let us solve it.') s = [] for sol in Solver().solve_all(r,verbose): s.append(sol) if display: sol['c'] = sol['x']*sol['y'] - print "%(x)s x %(y)s = %(c)s" % sol + print("%(x)s x %(y)s = %(c)s" % sol) if not display: - print 'Found %d solutions'%len(s) + print('Found %d solutions'%len(s)) --- ./examples/menza.py (original) +++ ./examples/menza.py (refactored) @@ -20,7 +20,7 @@ ABC*DE=FGHIJ with all letters different and in domain [0,9] """ -from __future__ import generators + from logilab.constraint import * from logilab.constraint.propagation import BasicConstraint, ConsistencyFailure @@ -53,8 +53,8 @@ domains = {} constraints = [] - domains['a'] = fd.FiniteDomain(range(0,1000)) - domains['b'] = fd.FiniteDomain(range(0,100)) + domains['a'] = fd.FiniteDomain(list(range(0,1000))) + domains['b'] = fd.FiniteDomain(list(range(0,100))) me = fd.make_expression @@ -81,12 +81,12 @@ r = create_problem() - print 'problem created. let us solve it.' + print('problem created. let us solve it.') s = [] for sol in Solver().solve_all(r,verbose): s.append(sol) if display: sol['c'] = sol['a']*sol['b'] - print "%(a)s x %(b)s = %(c)s" % sol + print("%(a)s x %(b)s = %(c)s" % sol) if not display: - print 'Found %d solutions'%len(s) + print('Found %d solutions'%len(s)) --- ./examples/knights.py (original) +++ ./examples/knights.py (refactored) @@ -79,7 +79,7 @@ board = '' board += '_'*(size*3+1)+'\n' squares = {} - for t in sol.items(): + for t in list(sol.items()): squares[(t[1][0]*size)+t[1][1]]=t[0] for i in range(size): for j in range(size): @@ -90,7 +90,7 @@ board+='|%02s'%intsquare board+='|\n' --- ./examples/intervals.py (original) +++ ./examples/intervals.py (refactored) @@ -23,7 +23,7 @@ Example problem with intervals """ -from __future__ import generators + from logilab.constraint import * from logilab.constraint.distributors import * @@ -73,13 +73,13 @@ for sol in intervals(size,verbose): count += 1 if display: - print sol - print '*'*80 + print(sol) + print('*'*80) if first: break if not display: - print 'Use -d option to display solutions' - print count,'solutions found.' + print('Use -d option to display solutions') + print(count,'solutions found.') if __name__ == '__main__': ## import hotshot --- ./examples/conferences.py (original) +++ ./examples/conferences.py (refactored) @@ -51,7 +51,7 @@ for conf1 in g: for conf2 in g: if conf2 > conf1: - print '%s[1] != %s[1]'%(conf1,conf2) + print('%s[1] != %s[1]'%(conf1,conf2)) constraints.append(fd.make_expression((conf1,conf2), '%s[1] != %s[1]'%\ (conf1,conf2))) @@ -61,5 +61,5 @@ r = Repository(variables,domains,constraints) solutions = Solver().solve(r) -print solutions -print len(solutions) +print(solutions) +print(len(solutions)) --- ./examples/chess.py (original) +++ ./examples/chess.py (refactored) @@ -73,7 +73,7 @@ raise ConsistencyFailure('Inconsistency while applying %s' % \ repr(self)) except Exception: - print self, kwargs + print(self, kwargs) raise return maybe_entailed --- ./RefactoringTool: No changes to ./__pkginfo__.py RefactoringTool: No changes to ./__init__.py RefactoringTool: Files that were modified: RefactoringTool: ./test/test_validation.py RefactoringTool: ./test/test_propagation.py RefactoringTool: ./test/test_fi.py RefactoringTool: ./test/test_domains.py RefactoringTool: ./test/test_distributors.py RefactoringTool: ./test/test_constraints.py RefactoringTool: ./test/__profile__.py RefactoringTool: ./setup.py RefactoringTool: ./propagation.py RefactoringTool: ./interfaces.py RefactoringTool: ./fi.py RefactoringTool: ./fd.py RefactoringTool: ./examples/sudoku.py RefactoringTool: ./examples/rooks.py RefactoringTool: ./examples/queens3.py RefactoringTool: ./examples/queens2.py RefactoringTool: ./examples/queens.py RefactoringTool: ./examples/money2.py RefactoringTool: ./examples/money.py RefactoringTool: ./examples/menza_brute_force.py RefactoringTool: ./examples/menza2.py RefactoringTool: ./examples/menza.py RefactoringTool: ./examples/knights.py RefactoringTool: ./examples/intervals.py RefactoringTool: ./examples/conferences.py RefactoringTool: ./examples/chess.py RefactoringTool: ./distributors.py RefactoringTool: ./__pkginfo__.py RefactoringTool: ./__init__.py distributors.py (original) +++ ./distributors.py (refactored) @@ -26,7 +26,7 @@ def make_new_domains(domains): """return a shallow copy of dict of domains passed in argument""" domain = {} - for key, value in domains.items(): + for key, value in list(domains.items()): domain[key] = value.copy() return domain @@ -44,7 +44,7 @@ """returns the variable having the smallest domain. (or one of such varibles if there is a tie) """ - domlist = [(dom.size(), variable ) for variable, dom in domains.items() + domlist = [(dom.size(), variable ) for variable, dom in list(domains.items()) if dom.size() > 1] domlist.sort() return domlist[0][1] @@ -53,7 +53,7 @@ """returns the variable having the largest domain. (or one of such variables if there is a tie) """ - domlist = [(dom.size(), variable) for variable, dom in domains.items() + domlist = [(dom.size(), variable) for variable, dom in list(domains.items()) if dom.size() > 1] domlist.sort() return domlist[-1][1] @@ -96,8 +96,8 @@ variable = self.findSmallestDomain(dom1) values = dom1[variable].getValues() if self.verbose: - print 'Distributing domain for variable', variable, \ - 'at value', values[0] + print('Distributing domain for variable', variable, \ + 'at value', values[0]) dom1[variable].removeValues(values[1:]) dom2[variable].removeValue(values[0]) return (dom1[variable], dom2[variable]) @@ -117,8 +117,8 @@ distval = random.choice(values) values.remove(distval) if self.verbose: - print 'Distributing domain for variable', variable, \ - 'at value', distval + print('Distributing domain for variable', variable, \ + 'at value', distval) dom1[variable].removeValues(values) dom2[variable].removeValue(distval) return (dom1[variable], dom2[variable]) @@ -151,7 +151,7 @@ int(math.floor((index + 1) * nb_elts))) for index in range(nb_subspaces)] if self.verbose: - print 'Distributing domain for variable', variable + print('Distributing domain for variable', variable) modified = [] for (dom, (end, start)) in zip(args, slices) : dom[variable].removeValues(values[:end]) + mv -f setup.py.bak setup.py + sed -i 's|print.*|print(src, '\''->'\'', dest, file=sys.stderr)|' setup.py + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export FFLAGS + /usr/bin/python3 setup.py build running build running build_py creating build creating build/lib creating build/lib/logilab creating build/lib/logilab/constraint copying ./propagation.py -> build/lib/logilab/constraint copying ./interfaces.py -> build/lib/logilab/constraint copying ./fi.py -> build/lib/logilab/constraint copying ./fd.py -> build/lib/logilab/constraint copying ./distributors.py -> build/lib/logilab/constraint copying ./__pkginfo__.py -> build/lib/logilab/constraint copying ./__init__.py -> build/lib/logilab/constraint creating build/lib/logilab/constraint/test copying ./test/__init__.py -> build/lib/logilab/constraint/test copying ./test/test_validation.py -> build/lib/logilab/constraint/test copying ./test/test_propagation.py -> build/lib/logilab/constraint/test copying ./test/test_fi.py -> build/lib/logilab/constraint/test copying ./test/test_domains.py -> build/lib/logilab/constraint/test copying ./test/test_distributors.py -> build/lib/logilab/constraint/test copying ./test/test_constraints.py -> build/lib/logilab/constraint/test copying ./test/__profile__.py -> build/lib/logilab/constraint/test + popd ~/RPM/BUILD/python-module-logilab-constraint-0.5.0 + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.26537 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python-module-logilab-constraint-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python-module-logilab-constraint-buildroot + PATH=/usr/libexec/rpm-build:/usr/src/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games + cd python-module-logilab-constraint-0.5.0 + 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/python setup.py install --skip-build --root=/usr/src/tmp/python-module-logilab-constraint-buildroot --force running install running install_lib copying logilab/constraint/__init__.py -> /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint copying logilab/constraint/__pkginfo__.py -> /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint copying logilab/constraint/distributors.py -> /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint copying logilab/constraint/fd.py -> /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint copying logilab/constraint/fi.py -> /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint copying logilab/constraint/interfaces.py -> /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint copying logilab/constraint/propagation.py -> /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint copying logilab/constraint/test/__profile__.py -> /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test copying logilab/constraint/test/test_constraints.py -> /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test copying logilab/constraint/test/test_distributors.py -> /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test copying logilab/constraint/test/test_domains.py -> /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test copying logilab/constraint/test/test_fi.py -> /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test copying logilab/constraint/test/test_propagation.py -> /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test copying logilab/constraint/test/test_validation.py -> /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test copying logilab/constraint/test/__init__.py -> /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test byte-compiling /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/__init__.py to __init__.pyc byte-compiling /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/__pkginfo__.py to __pkginfo__.pyc byte-compiling /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/distributors.py to distributors.pyc byte-compiling /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/fd.py to fd.pyc byte-compiling /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/fi.py to fi.pyc byte-compiling /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/interfaces.py to interfaces.pyc byte-compiling /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/propagation.py to propagation.pyc byte-compiling /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test/__profile__.py to __profile__.pyc byte-compiling /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test/test_constraints.py to test_constraints.pyc byte-compiling /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test/test_distributors.py to test_distributors.pyc byte-compiling /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test/test_domains.py to test_domains.pyc byte-compiling /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test/test_fi.py to test_fi.pyc byte-compiling /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test/test_propagation.py to test_propagation.pyc byte-compiling /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test/test_validation.py to test_validation.pyc byte-compiling /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test/__init__.py to __init__.pyc running install_egg_info running egg_info creating logilab_constraint.egg-info writing logilab_constraint.egg-info/PKG-INFO writing namespace_packages to logilab_constraint.egg-info/namespace_packages.txt writing top-level names to logilab_constraint.egg-info/top_level.txt writing dependency_links to logilab_constraint.egg-info/dependency_links.txt writing manifest file 'logilab_constraint.egg-info/SOURCES.txt' reading manifest file 'logilab_constraint.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'logilab_constraint.egg-info/SOURCES.txt' Copying logilab_constraint.egg-info to /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab_constraint-0.5.0-py2.7.egg-info Installing /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab_constraint-0.5.0-py2.7-nspkg.pth running install_scripts + rm -f /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/__init__.py + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-logilab-constraint-0.5.0 + 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/python-module-logilab-constraint-buildroot --force running install running install_lib copying logilab/constraint/__init__.py -> /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint copying logilab/constraint/__pkginfo__.py -> /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint copying logilab/constraint/distributors.py -> /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint copying logilab/constraint/fd.py -> /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint copying logilab/constraint/fi.py -> /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint copying logilab/constraint/interfaces.py -> /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint copying logilab/constraint/propagation.py -> /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint copying logilab/constraint/test/__profile__.py -> /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test copying logilab/constraint/test/test_constraints.py -> /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test copying logilab/constraint/test/test_distributors.py -> /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test copying logilab/constraint/test/test_domains.py -> /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test copying logilab/constraint/test/test_fi.py -> /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test copying logilab/constraint/test/test_propagation.py -> /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test copying logilab/constraint/test/test_validation.py -> /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test copying logilab/constraint/test/__init__.py -> /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test byte-compiling /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/__init__.py to __init__.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/__pkginfo__.py to __pkginfo__.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/distributors.py to distributors.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/fd.py to fd.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/fi.py to fi.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/interfaces.py to interfaces.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/propagation.py to propagation.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/__profile__.py to __profile__.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/test_constraints.py to test_constraints.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/test_distributors.py to test_distributors.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/test_domains.py to test_domains.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/test_fi.py to test_fi.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/test_propagation.py to test_propagation.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/test_validation.py to test_validation.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/__init__.py to __init__.cpython-37.pyc running install_egg_info running egg_info creating logilab_constraint.egg-info writing logilab_constraint.egg-info/PKG-INFO writing dependency_links to logilab_constraint.egg-info/dependency_links.txt writing namespace_packages to logilab_constraint.egg-info/namespace_packages.txt writing top-level names to logilab_constraint.egg-info/top_level.txt writing manifest file 'logilab_constraint.egg-info/SOURCES.txt' reading manifest file 'logilab_constraint.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'logilab_constraint.egg-info/SOURCES.txt' Copying logilab_constraint.egg-info to /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab_constraint-0.5.0-py3.7.egg-info Installing /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab_constraint-0.5.0-py3.7-nspkg.pth running install_scripts + popd ~/RPM/BUILD/python-module-logilab-constraint-0.5.0 + rm -f /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/__init__.py + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python-module-logilab-constraint-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python-module-logilab-constraint-buildroot (binconfig,pkgconfig,libtool,desktop,gnuconfig) Checking contents of files in /usr/src/tmp/python-module-logilab-constraint-buildroot/ (default) Compressing files in /usr/src/tmp/python-module-logilab-constraint-buildroot (auto) Adjusting library links in /usr/src/tmp/python-module-logilab-constraint-buildroot ./usr/lib: Verifying ELF objects in /usr/src/tmp/python-module-logilab-constraint-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) Bytecompiling python modules in /usr/src/tmp/python-module-logilab-constraint-buildroot using /usr/bin/python unlink /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test/__init__.pyc unlink /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test/__profile__.pyc unlink /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test/test_constraints.pyc unlink /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test/test_distributors.pyc unlink /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test/test_domains.pyc unlink /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test/test_fi.pyc unlink /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test/test_propagation.pyc unlink /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test/test_validation.pyc compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test/__init__.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test/__profile__.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test/test_constraints.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test/test_distributors.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test/test_domains.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test/test_fi.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test/test_propagation.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test/test_validation.py unlink /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/__init__.pyc unlink /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/__pkginfo__.pyc unlink /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/distributors.pyc unlink /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/fd.pyc unlink /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/fi.pyc unlink /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/interfaces.pyc unlink /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/propagation.pyc compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/__init__.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/__pkginfo__.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/distributors.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/fd.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/fi.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/interfaces.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/propagation.py Bytecompiling python modules with optimization in /usr/src/tmp/python-module-logilab-constraint-buildroot using /usr/bin/python -O compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test/__init__.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test/__profile__.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test/test_constraints.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test/test_distributors.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test/test_domains.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test/test_fi.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test/test_propagation.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test/test_validation.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/__init__.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/__pkginfo__.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/distributors.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/fd.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/fi.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/interfaces.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/propagation.py Bytecompiling python3 modules in /usr/src/tmp/python-module-logilab-constraint-buildroot using /usr/bin/python3 unlink /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/__pycache__/__init__.cpython-37.pyc unlink /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/__pycache__/__pkginfo__.cpython-37.pyc unlink /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/__pycache__/distributors.cpython-37.pyc unlink /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/__pycache__/fd.cpython-37.pyc unlink /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/__pycache__/fi.cpython-37.pyc unlink /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/__pycache__/interfaces.cpython-37.pyc unlink /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/__pycache__/propagation.cpython-37.pyc unlink /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/__pycache__/__init__.cpython-37.pyc unlink /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/__pycache__/__profile__.cpython-37.pyc unlink /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/__pycache__/test_constraints.cpython-37.pyc unlink /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/__pycache__/test_distributors.cpython-37.pyc unlink /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/__pycache__/test_domains.cpython-37.pyc unlink /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/__pycache__/test_fi.cpython-37.pyc unlink /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/__pycache__/test_propagation.cpython-37.pyc unlink /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/__pycache__/test_validation.cpython-37.pyc compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/__init__.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/__profile__.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/test_constraints.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/test_distributors.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/test_domains.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/test_fi.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/test_propagation.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/test_validation.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/__init__.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/__pkginfo__.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/distributors.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/fd.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/fi.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/interfaces.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/propagation.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python-module-logilab-constraint-buildroot using /usr/bin/python3 -O compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/__init__.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/__profile__.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/test_constraints.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/test_distributors.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/test_domains.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/test_fi.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/test_propagation.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/test_validation.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/__init__.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/__pkginfo__.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/distributors.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/fd.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/fi.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/interfaces.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/propagation.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python-module-logilab-constraint-buildroot using /usr/bin/python3 -OO compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/__init__.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/__profile__.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/test_constraints.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/test_distributors.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/test_domains.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/test_fi.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/test_propagation.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/test_validation.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/__init__.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/__pkginfo__.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/distributors.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/fd.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/fi.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/interfaces.py compile /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/propagation.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/logilab/constraint/__pycache__/interfaces.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/logilab/constraint/__pycache__/interfaces.cpython-37.pyc' './usr/lib/python3/site-packages/logilab/constraint/__pycache__/distributors.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/logilab/constraint/__pycache__/distributors.cpython-37.pyc' './usr/lib/python3/site-packages/logilab/constraint/__pycache__/__pkginfo__.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/logilab/constraint/__pycache__/__pkginfo__.cpython-37.pyc' './usr/lib/python3/site-packages/logilab/constraint/__pycache__/__pkginfo__.cpython-37.opt-2.pyc' => './usr/lib/python3/site-packages/logilab/constraint/__pycache__/__pkginfo__.cpython-37.opt-1.pyc' './usr/lib/python3/site-packages/logilab/constraint/__pycache__/__init__.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/logilab/constraint/__pycache__/__init__.cpython-37.pyc' './usr/lib/python3/site-packages/logilab/constraint/test/__pycache__/test_validation.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/logilab/constraint/test/__pycache__/test_validation.cpython-37.pyc' './usr/lib/python3/site-packages/logilab/constraint/test/__pycache__/test_propagation.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/logilab/constraint/test/__pycache__/test_propagation.cpython-37.pyc' './usr/lib/python3/site-packages/logilab/constraint/test/__pycache__/test_fi.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/logilab/constraint/test/__pycache__/test_fi.cpython-37.pyc' './usr/lib/python3/site-packages/logilab/constraint/test/__pycache__/__profile__.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/logilab/constraint/test/__pycache__/__profile__.cpython-37.pyc' './usr/lib/python3/site-packages/logilab/constraint/test/__pycache__/__profile__.cpython-37.opt-2.pyc' => './usr/lib/python3/site-packages/logilab/constraint/test/__pycache__/__profile__.cpython-37.opt-1.pyc' './usr/lib/python3/site-packages/logilab/constraint/test/__pycache__/__init__.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/logilab/constraint/test/__pycache__/__init__.cpython-37.pyc' './usr/lib/python3/site-packages/logilab/constraint/test/__pycache__/__init__.cpython-37.opt-2.pyc' => './usr/lib/python3/site-packages/logilab/constraint/test/__pycache__/__init__.cpython-37.opt-1.pyc' Hardlinking identical .pyc and .pyo files './usr/lib/python2.7/site-packages/logilab/constraint/interfaces.pyo' => './usr/lib/python2.7/site-packages/logilab/constraint/interfaces.pyc' './usr/lib/python2.7/site-packages/logilab/constraint/distributors.pyo' => './usr/lib/python2.7/site-packages/logilab/constraint/distributors.pyc' './usr/lib/python2.7/site-packages/logilab/constraint/__pkginfo__.pyo' => './usr/lib/python2.7/site-packages/logilab/constraint/__pkginfo__.pyc' './usr/lib/python2.7/site-packages/logilab/constraint/__init__.pyo' => './usr/lib/python2.7/site-packages/logilab/constraint/__init__.pyc' './usr/lib/python2.7/site-packages/logilab/constraint/test/test_validation.pyo' => './usr/lib/python2.7/site-packages/logilab/constraint/test/test_validation.pyc' './usr/lib/python2.7/site-packages/logilab/constraint/test/test_propagation.pyo' => './usr/lib/python2.7/site-packages/logilab/constraint/test/test_propagation.pyc' './usr/lib/python2.7/site-packages/logilab/constraint/test/test_fi.pyo' => './usr/lib/python2.7/site-packages/logilab/constraint/test/test_fi.pyc' './usr/lib/python2.7/site-packages/logilab/constraint/test/__profile__.pyo' => './usr/lib/python2.7/site-packages/logilab/constraint/test/__profile__.pyc' './usr/lib/python2.7/site-packages/logilab/constraint/test/__init__.pyo' => './usr/lib/python2.7/site-packages/logilab/constraint/test/__init__.pyc' Processing files: python-module-logilab-constraint-0.5.0-alt2.hg20130911.1.2 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.17699 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-logilab-constraint-0.5.0 + DOCDIR=/usr/src/tmp/python-module-logilab-constraint-buildroot/usr/share/doc/python-module-logilab-constraint-0.5.0 + export DOCDIR + rm -rf /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/share/doc/python-module-logilab-constraint-0.5.0 + /bin/mkdir -p /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/share/doc/python-module-logilab-constraint-0.5.0 + cp -prL COPYING ChangeLog README doc/CONTRIBUTORS doc/documentation.html doc/documentation.xml doc/makefile examples /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/share/doc/python-module-logilab-constraint-0.5.0 + chmod -R go-w /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/share/doc/python-module-logilab-constraint-0.5.0 + chmod -R a+rX /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/share/doc/python-module-logilab-constraint-0.5.0 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.9hEyXe 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.rr1ZCM find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services) /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/propagation.py: line=84 IGNORE (for REQ=slight and deep=11) module=logilab /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/propagation.py: line=239 IGNORE (for REQ=slight and deep=15) module=logilab Provides: python2.7(logilab.constraint), python2.7(logilab.constraint.__pkginfo__), python2.7(logilab.constraint.distributors), python2.7(logilab.constraint.fd), python2.7(logilab.constraint.fi), python2.7(logilab.constraint.interfaces), python2.7(logilab.constraint.propagation) Requires: /usr/lib/python2.7/site-packages, python-modules, python2.7(logilab) Processing files: python3-module-logilab-constraint-0.5.0-alt2.hg20130911.1.2 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.60096 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-logilab-constraint-0.5.0 + DOCDIR=/usr/src/tmp/python-module-logilab-constraint-buildroot/usr/share/doc/python3-module-logilab-constraint-0.5.0 + export DOCDIR + rm -rf /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/share/doc/python3-module-logilab-constraint-0.5.0 + /bin/mkdir -p /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/share/doc/python3-module-logilab-constraint-0.5.0 + cp -prL COPYING ChangeLog README doc/CONTRIBUTORS doc/documentation.html doc/documentation.xml doc/makefile examples /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/share/doc/python3-module-logilab-constraint-0.5.0 + chmod -R go-w /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/share/doc/python3-module-logilab-constraint-0.5.0 + chmod -R a+rX /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/share/doc/python3-module-logilab-constraint-0.5.0 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.vKgeef 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.muz3Di find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services) python3.req: /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/propagation.py: skipping time /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/propagation.py: line=85 IGNORE (for REQ=slight and deep=11) module=logilab.common.vcgutils /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/propagation.py: line=240 IGNORE (for REQ=slight and deep=15) module=logilab.constraint.distributors Provides: python3(logilab.constraint), python3(logilab.constraint.__pkginfo__), python3(logilab.constraint.distributors), python3(logilab.constraint.fd), python3(logilab.constraint.fi), python3(logilab.constraint.interfaces), python3(logilab.constraint.propagation) Requires: /usr/lib/python3/site-packages, python3(functools) < 0, python3(math) < 0, python3(operator) < 0, python3(random) < 0 Processing files: python3-module-logilab-constraint-tests-0.5.0-alt2.hg20130911.1.2 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.KvDKRD 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.xLkBiA 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: /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/__profile__.py: line=46 IGNORE (for REQ=slight and deep=8) module=profile /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/__profile__.py: line=48 IGNORE (for REQ=slight and deep=8) module=pstats /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/test_constraints.py: line=310 IGNORE (for REQ=slight and deep=8) module=types /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/test_constraints.py: line=322 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/test_distributors.py: line=113 IGNORE (for REQ=slight and deep=11) module=operator /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/test_distributors.py: line=129 IGNORE (for REQ=slight and deep=8) module=types /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/test_distributors.py: line=141 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/test_domains.py: line=74 IGNORE (for REQ=slight and deep=8) module=types /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/test_domains.py: line=86 possible relative import from ., UNIMPLEMENTED python3.req: /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python3/site-packages/logilab/constraint/test/test_validation.py: skipping sys Provides: python3(logilab.constraint.test), python3(logilab.constraint.test.__profile__), python3(logilab.constraint.test.test_constraints), python3(logilab.constraint.test.test_distributors), python3(logilab.constraint.test.test_domains), python3(logilab.constraint.test.test_fi), python3(logilab.constraint.test.test_propagation), python3(logilab.constraint.test.test_validation) Requires: python3-module-logilab-constraint = 0.5.0-alt2.hg20130911.1.2, /usr/lib/python3/site-packages, python3(functools) < 0, python3(io) < 0, python3(logilab.common.testlib) < 0, python3(logilab.constraint) < 0, python3(logilab.constraint.distributors) < 0, python3(logilab.constraint.fi) < 0, python3(logilab.constraint.propagation) < 0, python3(os) < 0, python3(unittest) < 0 Processing files: python-module-logilab-constraint-tests-0.5.0-alt2.hg20130911.1.2 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.wXrtsR 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.fKX0M5 find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services) /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test/__profile__.py: line=46 IGNORE (for REQ=slight and deep=8) module=profile /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test/__profile__.py: line=48 IGNORE (for REQ=slight and deep=8) module=pstats /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test/test_constraints.py: line=310 IGNORE (for REQ=slight and deep=8) module=types /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test/test_constraints.py: line=322 IGNORE (for REQ=slight and deep=8) module=test_constraints /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test/test_distributors.py: line=112 IGNORE (for REQ=slight and deep=11) module=operator /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test/test_distributors.py: line=128 IGNORE (for REQ=slight and deep=8) module=types /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test/test_distributors.py: line=140 IGNORE (for REQ=slight and deep=8) module=test_distributors /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test/test_domains.py: line=74 IGNORE (for REQ=slight and deep=8) module=types /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test/test_domains.py: line=86 IGNORE (for REQ=slight and deep=8) module=test_domains python.req: /usr/src/tmp/python-module-logilab-constraint-buildroot/usr/lib/python2.7/site-packages/logilab/constraint/test/test_validation.py: skipping sys Provides: python2.7(logilab.constraint.test), python2.7(logilab.constraint.test.__profile__), python2.7(logilab.constraint.test.test_constraints), python2.7(logilab.constraint.test.test_distributors), python2.7(logilab.constraint.test.test_domains), python2.7(logilab.constraint.test.test_fi), python2.7(logilab.constraint.test.test_propagation), python2.7(logilab.constraint.test.test_validation) Requires: python-module-logilab-constraint = 0.5.0-alt2.hg20130911.1.2, /usr/lib/python2.7/site-packages, python-base, python2.7(logilab), python2.7(unittest) Adding to python-module-logilab-constraint-tests a strict dependency on python-module-logilab-constraint Adding to python3-module-logilab-constraint-tests a strict dependency on python3-module-logilab-constraint Removing 4 extra deps from python3-module-logilab-constraint-tests due to dependency on python3-module-logilab-constraint Removing 2 extra deps from python-module-logilab-constraint-tests due to repentancy on python-module-logilab-constraint Removing 2 extra deps from python3-module-logilab-constraint-tests due to repentancy on python3-module-logilab-constraint Wrote: /usr/src/RPM/RPMS/noarch/python-module-logilab-constraint-0.5.0-alt2.hg20130911.1.2.noarch.rpm (w2.lzdio) Wrote: /usr/src/RPM/RPMS/noarch/python3-module-logilab-constraint-0.5.0-alt2.hg20130911.1.2.noarch.rpm (w2.lzdio) Wrote: /usr/src/RPM/RPMS/noarch/python3-module-logilab-constraint-tests-0.5.0-alt2.hg20130911.1.2.noarch.rpm (w2.lzdio) Wrote: /usr/src/RPM/RPMS/noarch/python-module-logilab-constraint-tests-0.5.0-alt2.hg20130911.1.2.noarch.rpm (w2.lzdio) 15.18user 1.20system 0:24.74elapsed 66%CPU (0avgtext+0avgdata 25188maxresident)k 0inputs+0outputs (0major+335491minor)pagefaults 0swaps 25.16user 5.02system 0:40.34elapsed 74%CPU (0avgtext+0avgdata 118140maxresident)k 0inputs+0outputs (0major+873077minor)pagefaults 0swaps --- python-module-logilab-constraint-tests-0.5.0-alt2.hg20130911.1.2.noarch.rpm.repo 2019-04-21 14:05:52.000000000 +0000 +++ python-module-logilab-constraint-tests-0.5.0-alt2.hg20130911.1.2.noarch.rpm.hasher 2021-08-01 09:51:05.141242249 +0000 @@ -40,4 +40,4 @@ File: /usr/lib/python2.7/site-packages/logilab/constraint/test/__init__.py 100644 root:root -File: /usr/lib/python2.7/site-packages/logilab/constraint/test/__init__.pyc 100644 root:root a4949a5aaf9a703586def168174db8e0 -File: /usr/lib/python2.7/site-packages/logilab/constraint/test/__init__.pyo 100644 root:root a4949a5aaf9a703586def168174db8e0 +File: /usr/lib/python2.7/site-packages/logilab/constraint/test/__init__.pyc 100644 root:root d1dc8651715e13d810cc30ed02b3c6fc +File: /usr/lib/python2.7/site-packages/logilab/constraint/test/__init__.pyo 100644 root:root d1dc8651715e13d810cc30ed02b3c6fc File: /usr/lib/python2.7/site-packages/logilab/constraint/test/__profile__.py 100644 root:root 711e0ac823668c383cf89305aeff4ecb @@ -63,2 +63,2 @@ File: /usr/lib/python2.7/site-packages/logilab/constraint/test/test_validation.pyo 100644 root:root f38ce67dd4f22dec85cb2fc7fa74e818 -RPMIdentity: 24e173fe575c3dce7d99c5337d901462ccbe3dea4513a60cd61c6dd72f1b649c3c0b769aa151ecbad1f3b777cf1a66acadf52ef7a2c079ad8ca5b4b0f63156e2 +RPMIdentity: 29b6f96a6a0a594f3fa8681ed09298b25b277975533b4cc4aa32348b8709465ddf016a4b5674215c12cc69a2cedc83aa0713897fcb7e6af4153fc6d6b926f48d