<86>Apr 14 00:52:04 userdel[13918]: delete user 'rooter' <86>Apr 14 00:52:04 groupadd[13948]: group added to /etc/group: name=rooter, GID=591 <86>Apr 14 00:52:04 groupadd[13948]: group added to /etc/gshadow: name=rooter <86>Apr 14 00:52:04 groupadd[13948]: new group: name=rooter, GID=591 <86>Apr 14 00:52:04 useradd[13959]: new user: name=rooter, UID=591, GID=591, home=/root, shell=/bin/bash <86>Apr 14 00:52:04 userdel[14018]: delete user 'builder' <86>Apr 14 00:52:04 userdel[14018]: removed group 'builder' owned by 'builder' <86>Apr 14 00:52:04 userdel[14018]: removed shadow group 'builder' owned by 'builder' <86>Apr 14 00:52:04 groupadd[14048]: group added to /etc/group: name=builder, GID=592 <86>Apr 14 00:52:04 groupadd[14048]: group added to /etc/gshadow: name=builder <86>Apr 14 00:52:04 groupadd[14048]: new group: name=builder, GID=592 <86>Apr 14 00:52:04 useradd[14081]: new user: name=builder, UID=592, GID=592, home=/usr/src, shell=/bin/bash <13>Apr 14 00:52:11 rpmi: ca-certificates-2016.02.25-alt1 1462368370 installed <13>Apr 14 00:52:12 rpmi: libcrypto10-1.0.2n-alt0.M80P.1 1512766129 installed <13>Apr 14 00:52:12 rpmi: libidn2-2.0.4-alt3.M80P.1 1520307194 installed <13>Apr 14 00:52:12 rpmi: libexpat-2.2.4-alt0.M80P.1 1503871120 installed <13>Apr 14 00:52:12 rpmi: libgdbm-1.8.3-alt10 1454943313 installed <13>Apr 14 00:52:12 rpmi: python-module-ndg-0.4.0-alt2.1.1 1460404734 installed <13>Apr 14 00:52:12 rpmi: python-module-z3c-3.0.0-alt2.a2.dev0.git20130313.1.1.1 1460417103 installed <13>Apr 14 00:52:12 rpmi: python-module-pycares-0.6.3-alt1.1.1 1459598195 installed <13>Apr 14 00:52:12 rpmi: python-module-certifi-2015.04.28-alt1.1 1457893771 installed <13>Apr 14 00:52:12 rpmi: python-module-enum34-1.0.4-alt1.1.1 1457942288 installed <13>Apr 14 00:52:12 rpmi: libyaml2-0.1.6-alt1 1397147705 installed <13>Apr 14 00:52:12 rpmi: libgpg-error-1.31-alt1.M80P.1 1529024730 installed <13>Apr 14 00:52:12 rpmi: libgcrypt20-1.8.3-alt4 p8+219793.200.6.1 1551112986 installed <13>Apr 14 00:52:12 rpmi: libxslt-1.1.28-alt4 1448210404 installed <13>Apr 14 00:52:12 rpmi: libev4-4.22-alt1 1450870476 installed <13>Apr 14 00:52:12 rpmi: publicsuffix-list-dafsa-20190329-alt1 p8+226349.100.1.1 1554128046 installed <13>Apr 14 00:52:12 rpmi: libpsl-0.18.0-alt0.M80P.1 1502785107 installed <13>Apr 14 00:52:12 rpmi: libnghttp2-1.8.0-alt1 1456818805 installed <13>Apr 14 00:52:12 rpmi: libbrotlicommon0-1.0.4-alt0.M80P.1 1528205024 installed <13>Apr 14 00:52:12 rpmi: libbrotlidec0-1.0.4-alt0.M80P.1 1528205024 installed <13>Apr 14 00:52:12 rpmi: libtinfo-devel-5.9-alt8 1456756459 installed <13>Apr 14 00:52:12 rpmi: libncurses-devel-5.9-alt8 1456756459 installed <13>Apr 14 00:52:12 rpmi: python-modules-curses-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 00:52:12 rpmi: libverto-0.2.6-alt1_6 1455633234 installed <13>Apr 14 00:52:12 rpmi: libkeyutils-1.5.10-alt0.M80P.2 p8+216694.100.6.1 1547827915 installed <13>Apr 14 00:52:12 rpmi: libcom_err-1.42.13-alt2 1449075846 installed <13>Apr 14 00:52:12 rpmi: libssl10-1.0.2n-alt0.M80P.1 1512766129 installed <86>Apr 14 00:52:12 groupadd[29775]: group added to /etc/group: name=_keytab, GID=499 <86>Apr 14 00:52:12 groupadd[29775]: group added to /etc/gshadow: name=_keytab <86>Apr 14 00:52:12 groupadd[29775]: new group: name=_keytab, GID=499 <13>Apr 14 00:52:12 rpmi: libkrb5-1.14.6-alt1.M80P.1 1525355673 installed <86>Apr 14 00:52:12 groupadd[30446]: group added to /etc/group: name=sasl, GID=498 <86>Apr 14 00:52:12 groupadd[30446]: group added to /etc/gshadow: name=sasl <86>Apr 14 00:52:12 groupadd[30446]: new group: name=sasl, GID=498 <13>Apr 14 00:52:12 rpmi: libsasl2-3-2.1.26-alt7 1479477445 installed <13>Apr 14 00:52:12 rpmi: libldap-2.4.45-alt1.M80P.1 1513980376 installed <13>Apr 14 00:52:12 rpmi: libcurl-7.64.0-alt1 p8+220788.100.1.1 1549495393 installed <13>Apr 14 00:52:12 rpmi: libpq5.11-11.2-alt0.M80P.1 p8+221524.600.1.1 1550205370 installed <13>Apr 14 00:52:13 rpmi: libmysqlclient18-10.1.38-alt1 p8+223431.300.4.1 1551586717 installed <13>Apr 14 00:52:14 rpmi: python3-base-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 14 00:52:14 rpmi: python-modules-compiler-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 00:52:14 rpmi: python3-module-six-1.10.0-alt7 1496087616 installed <13>Apr 14 00:52:14 rpmi: python3-module-idna-2.5-alt0.M80P.1 1501735172 installed <13>Apr 14 00:52:14 rpmi: python3-module-cssselect-0.9.1-alt1.1 1457858257 installed <13>Apr 14 00:52:14 rpmi: python3-module-webencodings-0.5.1-alt0.M80P.1 1507185481 installed <13>Apr 14 00:52:15 rpmi: python3-module-pycparser-2.14-alt1.1 1458071180 installed <13>Apr 14 00:52:15 rpmi: python3-module-asn1crypto-0.22.0-alt0.M80P.1 1501735102 installed <13>Apr 14 00:52:15 rpmi: python3-module-chardet-3.0.4-alt1 1506613818 installed <13>Apr 14 00:52:15 rpmi: python3-module-ndg-0.4.0-alt2.1.1 1460404734 installed <13>Apr 14 00:52:15 rpmi: python3-module-py-1.4.34-alt0.M80P.1 1503506764 installed <13>Apr 14 00:52:15 rpmi: python-modules-email-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 00:52:15 rpmi: python3-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 14 00:52:15 rpmi: python3-module-cffi-1.10.0-alt0.M80P.1 1501702481 installed <13>Apr 14 00:52:16 rpmi: python3-module-cryptography-2.0.0-alt0.M80P.1 1501702598 installed <13>Apr 14 00:52:16 rpmi: python3-module-OpenSSL-16.2.0-alt0.M80P.1 1505402609 installed <13>Apr 14 00:52:16 rpmi: rpm-build-python3-0.1.10.10-alt1.M80P.1 1530521451 installed <13>Apr 14 00:52:16 rpmi: python-modules-unittest-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 00:52:16 rpmi: python3-module-setuptools-1:18.5-alt0.M80P.1 1497527461 installed <13>Apr 14 00:52:16 rpmi: python3-module-html5lib-1:0.999999999-alt1.M80P.2 1507185603 installed <13>Apr 14 00:52:17 rpmi: python3-module-lxml-4.0.0-alt0.M80P.1 1507163741 installed <13>Apr 14 00:52:17 rpmi: python3-module-ndg-httpsclient-0.4.0-alt2.1.1 1460404734 installed <13>Apr 14 00:52:17 rpmi: python3-module-ntlm-1.1.0-alt1.1.1.1 1460405346 installed <13>Apr 14 00:52:17 rpmi: python3-module-urllib3-2:1.21.1-alt1 1506613994 installed <13>Apr 14 00:52:17 rpmi: python3-module-pytest-3.2.1-alt0.M80P.1 1503499784 installed <13>Apr 14 00:52:17 rpmi: python3-module-requests-2.18.4-alt1 1506613877 installed <13>Apr 14 00:52:17 rpmi: python3-module-BeautifulSoup4-4.6.3-alt0.M80P.1 p8.213028.400 1537430576 installed <13>Apr 14 00:52:17 rpmi: python3-module-nose-1:1.3.7-alt1.git20160316.1 1460404907 installed <13>Apr 14 00:52:17 rpmi: python-modules-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 00:52:17 rpmi: python-modules-ctypes-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 00:52:17 rpmi: python-module-six-1.10.0-alt7 1496087616 installed <13>Apr 14 00:52:17 rpmi: python-modules-json-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 00:52:17 rpmi: python-modules-encodings-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 00:52:17 rpmi: python-modules-xml-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 00:52:17 rpmi: python-modules-hotshot-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 00:52:17 rpmi: python-modules-wsgiref-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 00:52:17 rpmi: python-module-webencodings-0.5.1-alt0.M80P.1 1507185481 installed <13>Apr 14 00:52:17 rpmi: python-modules-multiprocessing-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 00:52:18 rpmi: python-modules-logging-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 00:52:18 rpmi: python-module-chardet-3.0.4-alt1 1506613818 installed <13>Apr 14 00:52:18 rpmi: python-tools-2to3-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 00:52:18 rpmi: python-modules-bsddb-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 00:52:18 rpmi: python-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 00:52:18 rpmi: python-strict-2.7.11-alt6.M80P.1 1527682534 installed <13>Apr 14 00:52:18 rpmi: python-dev-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 00:52:18 rpmi: python-module-greenlet-0.4.9-alt1.git20150830.1.1 1459591393 installed <13>Apr 14 00:52:18 rpmi: python-module-idna-2.5-alt0.M80P.1 1501735172 installed <13>Apr 14 00:52:18 rpmi: python-module-psycopg2-2.7-alt1.dev0.git20150602.1.1 1459598065 installed <13>Apr 14 00:52:18 rpmi: python-module-paste-1.7.5.1-alt3.hg20140319.1.1 1458058784 installed <13>Apr 14 00:52:18 rpmi: python-module-pycparser-2.14-alt1.1 1458071180 installed <13>Apr 14 00:52:18 rpmi: python-module-cffi-1.10.0-alt0.M80P.1 1501702481 installed <13>Apr 14 00:52:18 rpmi: python-module-gevent-1.1.0-alt2.b4.dev0.git20150825.2.1 1459648196 installed <13>Apr 14 00:52:18 rpmi: python-module-asn1crypto-0.22.0-alt0.M80P.1 1501735102 installed <13>Apr 14 00:52:18 rpmi: python-module-dns-1.15.0-alt0.M80P.1 1507185249 installed <13>Apr 14 00:52:18 rpmi: python-module-pycurl-7.19.5.3-alt1.1.1 1459598459 installed <13>Apr 14 00:52:18 rpmi: python-module-zc-1.0.0-alt6.2 1458024144 installed <13>Apr 14 00:52:18 rpmi: python-module-ipaddress-1.0.18-alt0.M80P.1 1525452992 installed <13>Apr 14 00:52:18 rpmi: python-module-cryptography-2.0.0-alt0.M80P.1 1501702598 installed <13>Apr 14 00:52:18 rpmi: python-module-OpenSSL-16.2.0-alt0.M80P.1 1505402609 installed <13>Apr 14 00:52:18 rpmi: python-module-backports-3.5.0.1-alt0.M80P.1 1525453027 installed <13>Apr 14 00:52:18 rpmi: python-module-backports.ssl_match_hostname-3.5.0.1-alt0.M80P.1 1525453027 installed <13>Apr 14 00:52:18 rpmi: python-module-py-1.4.34-alt0.M80P.1 1503506764 installed <13>Apr 14 00:52:18 rpmi: python-module-yaml-3.11-alt1.hg20141128.1 1459664840 installed <13>Apr 14 00:52:18 rpmi: python-module-mysqlclient-1.3.6-alt1.git20150225.1.1 1459597752 installed <13>Apr 14 00:52:18 rpmi: python-module-eventlet-0.18.4-alt1 1461084262 installed <13>Apr 14 00:52:18 rpmi: python-module-simplejson-3.15.0-alt1.M80P.1 1528995430 installed <13>Apr 14 00:52:18 rpmi: python-module-setuptools-1:18.5-alt0.M80P.1 1497527461 installed <13>Apr 14 00:52:18 rpmi: python-module-zope-3.3.0-alt8.4 1458261152 installed <13>Apr 14 00:52:18 rpmi: python-module-tornado-4.2.1-alt2.M80P.1 1496088637 installed <13>Apr 14 00:52:19 rpmi: python-module-django-1.8.18-alt0.M80P.1 1497919276 installed <13>Apr 14 00:52:19 rpmi: python-module-ndg-httpsclient-0.4.0-alt2.1.1 1460404734 installed <13>Apr 14 00:52:19 rpmi: python-module-ntlm-1.1.0-alt1.1.1.1 1460405346 installed <13>Apr 14 00:52:19 rpmi: python-module-urllib3-2:1.21.1-alt1 1506613994 installed <13>Apr 14 00:52:19 rpmi: python-module-zope.interface-4.1.3-alt1.dev0.git20150601.4 1459629874 installed <13>Apr 14 00:52:19 rpmi: python-module-pytest-3.2.1-alt0.M80P.1 1503499784 installed <13>Apr 14 00:52:19 rpmi: python-module-cssselect-0.9.1-alt1.1 1457858257 installed <13>Apr 14 00:52:19 rpmi: python-module-requests-2.18.4-alt1 1506613877 installed <13>Apr 14 00:52:19 rpmi: python-module-gunicorn-19.2.1-alt1.git20150206.1.1 1457969177 installed <13>Apr 14 00:52:19 rpmi: python-module-nose-1:1.3.7-alt1.git20160316.1 1460404907 installed <13>Apr 14 00:52:19 rpmi: python-module-lxml-4.0.0-alt0.M80P.1 1507163741 installed <13>Apr 14 00:52:19 rpmi: python-module-html5lib-1:0.999999999-alt1.M80P.2 1507185603 installed <13>Apr 14 00:52:19 rpmi: python-module-BeautifulSoup4-4.6.3-alt0.M80P.1 p8.213028.400 1537430576 installed Installing python-module-mf2py-0.2.2-alt1.git20150205.1.1.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.95735 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python-module-mf2py-0.2.2 + echo 'Source #0 (python-module-mf2py-0.2.2.tar):' Source #0 (python-module-mf2py-0.2.2.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/python-module-mf2py-0.2.2.tar + cd python-module-mf2py-0.2.2 + /bin/chmod -c -Rf u+rwX,go-w . + cp -fR . ../python3 + find ../python3 -type f -name '*.py' -exec 2to3 -w -n '{}' + RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: Refactored ../python3/test/test_parser.py --- ../python3/test/test_parser.py (original) +++ ../python3/test/test_parser.py (refactored) @@ -7,7 +7,7 @@ import sys if sys.version < '3': - text_type = unicode + text_type = str binary_type = str else: text_type = str @@ -42,40 +42,40 @@ def test_base(): p = Parser(doc=open("test/examples/base.html")) - assert_equal(p.__url__, u"http://tantek.com/") + assert_equal(p.__url__, "http://tantek.com/") def test_simple_parse(): result = parse_fixture("simple_person_reference.html") assert_equal(result["items"][0]["properties"], - {u'name': [u'Frances Berriman']}) + {'name': ['Frances Berriman']}) def test_simple_person_reference_implied(): p = Parser(doc=open("test/examples/simple_person_reference_implied.html")) result = p.to_dict() assert_equal(result["items"][0]["properties"], - {u'name': [u'Frances Berriman']}) + {'name': ['Frances Berriman']}) def test_simple_person_reference_same_element(): result = parse_fixture("simple_person_reference_same_element.html") assert_equal(result["items"][0]["properties"], - {u'name': [u'Frances Berriman']}) + {'name': ['Frances Berriman']}) def test_person_with_url(): p = Parser(doc=open("test/examples/person_with_url.html")) result = p.to_dict() assert_equal(result["items"][0]["properties"]["name"], - [u'Tom Morris']) + ['Tom Morris']) assert_equal(result["items"][0]["properties"]["url"], - [u'http://tommorris.org/']) + ['http://tommorris.org/']) def test_vcp(): result = parse_fixture("value_class_person.html") - assert_equal(result["items"][0]["properties"]["tel"], [u'+44 1234 567890']) + assert_equal(result["items"][0]["properties"]["tel"], ['+44 1234 567890']) def test_multiple_root_classnames(): @@ -220,35 +220,35 @@ 'properties': { 'author': [ { - 'properties': {u'name': [u'KP1']}, - 'type': [u'h-card'], - 'value': u'KP1' + 'properties': {'name': ['KP1']}, + 'type': ['h-card'], + 'value': 'KP1' } ], 'in-reply-to': [ { - 'properties': {u'name': [u'KP']}, - 'type': [u'h-cite'], - 'value': u'KP' + 'properties': {'name': ['KP']}, + 'type': ['h-cite'], + 'value': 'KP' } ], - 'name': [u'KP\n KP1'] + 'name': ['KP\n KP1'] }, 'type': ['h-entry'] } ], 'rels': {} } - assert_equal([u'KP\n KP1'], result['items'][0]['properties']['name']) + assert_equal(['KP\n KP1'], result['items'][0]['properties']['name']) assert_equal(expected, result) def test_html_tag_class(): result = parse_fixture("hfeed_on_html_tag.html") - assert_equal([u'h-feed'], result['items'][0]['type']) - - assert_equal([u'entry1'], result['items'][0]['children'][0]['properties']['name']) - assert_equal([u'entry2'], result['items'][0]['children'][1]['properties']['name']) + assert_equal(['h-feed'], result['items'][0]['type']) + + assert_equal(['entry1'], result['items'][0]['children'][0]['properties']['name']) + assert_equal(['entry2'], result['items'][0]['children'][1]['properties']['name']) def test_string_strip(): @@ -265,11 +265,11 @@ result = parse_fixture("backcompat_hproduct.html") assert len(result["items"]) == 1 assert result["items"][0]["type"] == ["h-product"] - assert result["items"][0]["properties"]["category"] == [u'bullshit'] - asseRefactoringTool: No changes to ../python3/test/test_dom_addins.py RefactoringTool: No changes to ../python3/setup.py RefactoringTool: No changes to ../python3/mf2py/temp_fixes.py RefactoringTool: Refactored ../python3/mf2py/parser.py RefactoringTool: Refactored ../python3/mf2py/parse_property.py RefactoringTool: Refactored ../python3/mf2py/mf_helpers.py RefactoringTool: No changes to ../python3/mf2py/mf2_classes.py RefactoringTool: Refactored ../python3/mf2py/implied_properties.py RefactoringTool: Refactored ../python3/mf2py/http_server.py rt result["items"][0]["properties"]["brand"] == [u'Quacktastic Products'] - assert result["items"][0]["properties"]["identifier"] == [u'#BULLSHIT-001'] - assert result["items"][0]["properties"]['description'][0] == u"Magical tasty sugar pills that don't do anything." - assert result["items"][0]["properties"]["name"] == [u"Tom's Magical Quack Tincture"] + assert result["items"][0]["properties"]["category"] == ['bullshit'] + assert result["items"][0]["properties"]["brand"] == ['Quacktastic Products'] + assert result["items"][0]["properties"]["identifier"] == ['#BULLSHIT-001'] + assert result["items"][0]["properties"]['description'][0] == "Magical tasty sugar pills that don't do anything." + assert result["items"][0]["properties"]["name"] == ["Tom's Magical Quack Tincture"] def test_backcompat_hproduct_nested_hreview(): @@ -280,20 +280,20 @@ def test_area_uparsing(): result = parse_fixture("area.html") - assert result["items"][0]["properties"] == {u'url': [u'http://suda.co.uk'], u'name': [u'Brian Suda']} - assert 'shape' in result["items"][0].keys() - assert 'coords' in result["items"][0].keys() + assert result["items"][0]["properties"] == {'url': ['http://suda.co.uk'], 'name': ['Brian Suda']} + assert 'shape' in list(result["items"][0].keys()) + assert 'coords' in list(result["items"][0].keys()) def test_src_equiv(): result = parse_fixture("test_src_equiv.html") for item in result["items"]: - assert 'x-example' in item['properties'].keys() - assert u'http://example.org/' == item['properties']['x-example'][0] + assert 'x-example' in list(item['properties'].keys()) + assert 'http://example.org/' == item['properties']['x-example'][0] def test_rels(): result = parse_fixture("rel.html") - assert result['rels'] == {u'in-reply-to': [u'http://example.com/1', u'http://example.com/2'], u'author': [u'http://example.com/a', u'http://example.com/b']} + assert result['rels'] == {'in-reply-to': ['http://example.com/1', 'http://example.com/2'], 'author': ['http://example.com/a', 'http://example.com/b']} if __name__ == '__main__': result = parse_fixture("nested_multiple_classnames.html") --- ../python3/mf2py/parser.py (original) +++ ../python3/mf2py/parser.py (refactored) @@ -16,7 +16,7 @@ import sys if sys.version < '3': - from urlparse import urlparse, urljoin + from urllib.parse import urlparse, urljoin else: from urllib.parse import urlparse, urljoin @@ -95,7 +95,7 @@ # parse for properties and children for child in el.find_all(True, recursive=False): child_props, child_children = parse_props(child) - for key, new_value in child_props.items(): + for key, new_value in list(child_props.items()): prop_value = properties.get(key, []) prop_value.extend(new_value) properties[key] = prop_value --- ../python3/mf2py/parse_property.py (original) +++ ../python3/mf2py/parse_property.py (refactored) @@ -5,8 +5,8 @@ import re if sys.version < '3': - from urlparse import urljoin - text_type = unicode + from urllib.parse import urljoin + text_type = str binary_type = str else: from urllib.parse import urljoin --- ../python3/mf2py/mf_helpers.py (original) +++ ../python3/mf2py/mf_helpers.py (refactored) @@ -11,7 +11,7 @@ """ urls = [] for item in mf: - if isinstance(item, basestring): + if isinstance(item, str): urls.append(item) elif (isinstance(item, dict) and any(x.startswith('h-') for x in item.get('type', []))): --- ../python3/mf2py/implied_properties.py (original) +++ ../python3/mf2py/implied_properties.py (refactored) @@ -3,7 +3,7 @@ import sys if sys.version < '3': - from urlparse import urljoin + from urllib.parse import urljoin else: from urllib.parse import urljoin --- ../python3/mf2py/http_server.py (original) +++ ../python3/mf2py/http_server.py (refactored) @@ RefactoringTool: Refactored ../python3/mf2py/dom_helpers.py RefactoringTool: Refactored ../python3/mf2py/backcompat.py RefactoringTool: No changes to ../python3/mf2py/__init__.py RefactoringTool: Refactored ../python3/doc/source/conf.py RefactoringTool: Files that were modified: RefactoringTool: ../python3/test/test_parser.py RefactoringTool: ../python3/test/test_dom_addins.py RefactoringTool: ../python3/setup.py RefactoringTool: ../python3/mf2py/temp_fixes.py RefactoringTool: ../python3/mf2py/parser.py RefactoringTool: ../python3/mf2py/parse_property.py RefactoringTool: ../python3/mf2py/mf_helpers.py RefactoringTool: ../python3/mf2py/mf2_classes.py RefactoringTool: ../python3/mf2py/implied_properties.py RefactoringTool: ../python3/mf2py/http_server.py RefactoringTool: ../python3/mf2py/dom_helpers.py RefactoringTool: ../python3/mf2py/backcompat.py RefactoringTool: ../python3/mf2py/__init__.py RefactoringTool: ../python3/doc/source/conf.py -21,8 +21,8 @@ u = request.args['url'] else: u = request.form['url'] - print u - p = Parser(url=unicode(u)) + print(u) + p = Parser(url=str(u)) return Response(p.to_json(pretty_print=True), status=200, mimetype='application/json') --- ../python3/mf2py/dom_helpers.py (original) +++ ../python3/mf2py/dom_helpers.py (refactored) @@ -1,11 +1,11 @@ import sys if sys.version < '3': - text_type = unicode + text_type = str binary_type = str else: text_type = str binary_type = bytes - basestring = str + str = str def get_attr(el, attr, check_name=None): @@ -22,7 +22,7 @@ """ if check_name is None: attr_value = el.get(attr, None) - elif isinstance(check_name, basestring) and el.name == check_name: + elif isinstance(check_name, str) and el.name == check_name: attr_value = el.get(attr, None) elif ((isinstance(check_name, tuple) or isinstance(check_name, list)) and el.name in check_name): --- ../python3/mf2py/backcompat.py (original) +++ ../python3/mf2py/backcompat.py (refactored) @@ -129,7 +129,7 @@ def update_child_properties(parent, properties): for child in parent.find_all(recursive=False): child_class = child.get('class') - for old_prop, new_props in properties.items(): + for old_prop, new_props in list(properties.items()): if child_class and old_prop in child_class: for new_prop in new_props: if new_prop not in child_class: @@ -140,11 +140,11 @@ for cls in child.get('class', [])): update_child_properties(child, properties) - for old_root, new_root in CLASSIC_ROOT_MAP.items(): + for old_root, new_root in list(CLASSIC_ROOT_MAP.items()): for el in doc.find_all(lambda el: old_root in el.get('class', []) and new_root not in el.get('class', [])): el['class'].append(new_root) - for old_root, properties in CLASSIC_PROPERTY_MAP.items(): + for old_root, properties in list(CLASSIC_PROPERTY_MAP.items()): for el in doc.find_all(class_=old_root): update_child_properties(el, properties) --- ../python3/doc/source/conf.py (original) +++ ../python3/doc/source/conf.py (refactored) @@ -45,8 +45,8 @@ master_doc = 'index' # General information about the project. -project = u'mf2py' -copyright = u'2015, Tom Morris' +project = 'mf2py' +copyright = '2015, Tom Morris' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the @@ -198,8 +198,8 @@ # (source start file, target name, title, # author, documentclass [howto, manual, or own class]). latex_documents = [ - ('index', 'mf2py.tex', u'mf2py Documentation', - u'Tom Morris', 'manual'), + ('index', 'mf2py.tex', 'mf2py Documentation', + 'Tom Morris', 'manual'), ] # The name of an image file (relative to this directory) to place at the top of @@ -228,8 +228,8 @@ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ - ('index', 'mf2py', u'mf2py Documentation', - [u'Tom Morris'], 1) + ('index', 'mf2py', 'mf2py Documentation', + ['Tom Morris'], 1) ] # If true, show URL addresses after external links. @@ -242,8 +242,8 @@ # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ - ('index', 'mf2py', u'mf2py Documentation', - u'Tom Morris', 'mf2py', 'One line description of project.', + ('index', 'mf2py', 'mf2py Documentation', + 'Tom Morris', 'mf2py', 'One line description of project.', 'Miscellaneous'), ] + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.56424 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-mf2py-0.2.2 + CFLAGS='-pipe -Wall -g -O2' + export CFLAGS + CXXFLAGS='-pipe -Wall -g -O2' + export CXXFLAGS + FFLAGS='-pipe -Wall -g -O2' + export FFLAGS + /usr/bin/python setup.py build --debug running build running build_py creating build creating build/lib creating build/lib/mf2py copying mf2py/temp_fixes.py -> build/lib/mf2py copying mf2py/parser.py -> build/lib/mf2py copying mf2py/parse_property.py -> build/lib/mf2py copying mf2py/mf_helpers.py -> build/lib/mf2py copying mf2py/mf2_classes.py -> build/lib/mf2py copying mf2py/implied_properties.py -> build/lib/mf2py copying mf2py/http_server.py -> build/lib/mf2py copying mf2py/dom_helpers.py -> build/lib/mf2py copying mf2py/backcompat.py -> build/lib/mf2py copying mf2py/__init__.py -> build/lib/mf2py + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-mf2py-0.2.2 + CFLAGS='-pipe -Wall -g -O2' + export CFLAGS + CXXFLAGS='-pipe -Wall -g -O2' + export CXXFLAGS + FFLAGS='-pipe -Wall -g -O2' + export FFLAGS + python3 setup.py build --debug running build running build_py creating build creating build/lib creating build/lib/mf2py copying mf2py/temp_fixes.py -> build/lib/mf2py copying mf2py/parser.py -> build/lib/mf2py copying mf2py/parse_property.py -> build/lib/mf2py copying mf2py/mf_helpers.py -> build/lib/mf2py copying mf2py/mf2_classes.py -> build/lib/mf2py copying mf2py/implied_properties.py -> build/lib/mf2py copying mf2py/http_server.py -> build/lib/mf2py copying mf2py/dom_helpers.py -> build/lib/mf2py copying mf2py/backcompat.py -> build/lib/mf2py copying mf2py/__init__.py -> build/lib/mf2py + popd ~/RPM/BUILD/python-module-mf2py-0.2.2 + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.43641 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python-module-mf2py-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python-module-mf2py-buildroot + cd python-module-mf2py-0.2.2 + /usr/bin/python setup.py install --skip-build --root=/usr/src/tmp/python-module-mf2py-buildroot --force running install running install_lib creating /usr/src/tmp/python-module-mf2py-buildroot creating /usr/src/tmp/python-module-mf2py-buildroot/usr creating /usr/src/tmp/python-module-mf2py-buildroot/usr/lib creating /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7 creating /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages creating /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py copying build/lib/mf2py/__init__.py -> /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py copying build/lib/mf2py/backcompat.py -> /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py copying build/lib/mf2py/dom_helpers.py -> /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py copying build/lib/mf2py/http_server.py -> /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py copying build/lib/mf2py/implied_properties.py -> /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py copying build/lib/mf2py/mf2_classes.py -> /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py copying build/lib/mf2py/mf_helpers.py -> /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py copying build/lib/mf2py/parse_property.py -> /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py copying build/lib/mf2py/parser.py -> /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py copying build/lib/mf2py/temp_fixes.py -> /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py byte-compiling /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py/__init__.py to __init__.pyc byte-compiling /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py/backcompat.py to backcompat.pyc byte-compiling /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py/dom_helpers.py to dom_helpers.pyc byte-compiling /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py/http_server.py to http_server.pyc byte-compiling /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py/implied_properties.py to implied_properties.pyc byte-compiling /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py/mf2_classes.py to mf2_classes.pyc byte-compiling /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py/mf_helpers.py to mf_helpers.pyc byte-compiling /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py/parse_property.py to parse_property.pyc byte-compiling /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py/parser.py to parser.pyc byte-compiling /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py/temp_fixes.py to temp_fixes.pyc running install_egg_info running egg_info creating mf2py.egg-info writing requirements to mf2py.egg-info/requires.txt writing mf2py.egg-info/PKG-INFO writing top-level names to mf2py.egg-info/top_level.txt writing dependency_links to mf2py.egg-info/dependency_links.txt writing manifest file 'mf2py.egg-info/SOURCES.txt' reading manifest file 'mf2py.egg-info/SOURCES.txt' writing manifest file 'mf2py.egg-info/SOURCES.txt' Copying mf2py.egg-info to /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py-0.2.2-py2.7.egg-info running install_scripts + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-mf2py-0.2.2 + python3 setup.py install --skip-build --root=/usr/src/tmp/python-module-mf2py-buildroot --force running install running install_lib creating /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3 creating /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages creating /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py copying build/lib/mf2py/__init__.py -> /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py copying build/lib/mf2py/backcompat.py -> /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py copying build/lib/mf2py/dom_helpers.py -> /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py copying build/lib/mf2py/http_server.py -> /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py copying build/lib/mf2py/implied_properties.py -> /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py copying build/lib/mf2py/mf2_classes.py -> /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py copying build/lib/mf2py/mf_helpers.py -> /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py copying build/lib/mf2py/parse_property.py -> /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py copying build/lib/mf2py/parser.py -> /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py copying build/lib/mf2py/temp_fixes.py -> /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py byte-compiling /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/__init__.py to __init__.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/backcompat.py to backcompat.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/dom_helpers.py to dom_helpers.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/http_server.py to http_server.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/implied_properties.py to implied_properties.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/mf2_classes.py to mf2_classes.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/mf_helpers.py to mf_helpers.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/parse_property.py to parse_property.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/parser.py to parser.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/temp_fixes.py to temp_fixes.cpython-35.pyc running install_egg_info running egg_info creating mf2py.egg-info writing mf2py.egg-info/PKG-INFO writing dependency_links to mf2py.egg-info/dependency_links.txt writing requirements to mf2py.egg-info/requires.txt writing top-level names to mf2py.egg-info/top_level.txt writing manifest file 'mf2py.egg-info/SOURCES.txt' reading manifest file 'mf2py.egg-info/SOURCES.txt' writing manifest file 'mf2py.egg-info/SOURCES.txt' Copying mf2py.egg-info to /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py-0.2.2-py3.5.egg-info running install_scripts + popd ~/RPM/BUILD/python-module-mf2py-0.2.2 + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python-module-mf2py-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python-module-mf2py-buildroot (binconfig,pkgconfig,libtool,desktop) Compressing files in /usr/src/tmp/python-module-mf2py-buildroot (auto) Adjusting library links in /usr/src/tmp/python-module-mf2py-buildroot ./usr/lib: Verifying ELF objects in /usr/src/tmp/python-module-mf2py-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-mf2py-buildroot using /usr/bin/python unlink /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py/__init__.pyc unlink /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py/backcompat.pyc unlink /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py/dom_helpers.pyc unlink /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py/http_server.pyc unlink /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py/implied_properties.pyc unlink /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py/mf2_classes.pyc unlink /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py/mf_helpers.pyc unlink /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py/parse_property.pyc unlink /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py/parser.pyc unlink /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py/temp_fixes.pyc compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py/__init__.py compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py/backcompat.py compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py/dom_helpers.py compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py/http_server.py compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py/implied_properties.py compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py/mf2_classes.py compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py/mf_helpers.py compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py/parse_property.py compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py/parser.py compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py/temp_fixes.py Bytecompiling python modules with optimization in /usr/src/tmp/python-module-mf2py-buildroot using /usr/bin/python -O compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py/__init__.py compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py/backcompat.py compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py/dom_helpers.py compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py/http_server.py compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py/implied_properties.py compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py/mf2_classes.py compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py/mf_helpers.py compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py/parse_property.py compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py/parser.py compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python2.7/site-packages/mf2py/temp_fixes.py Bytecompiling python3 modules in /usr/src/tmp/python-module-mf2py-buildroot using python3 unlink /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/__pycache__/__init__.cpython-35.pyc unlink /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/__pycache__/backcompat.cpython-35.pyc unlink /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/__pycache__/dom_helpers.cpython-35.pyc unlink /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/__pycache__/http_server.cpython-35.pyc unlink /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/__pycache__/implied_properties.cpython-35.pyc unlink /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/__pycache__/mf2_classes.cpython-35.pyc unlink /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/__pycache__/mf_helpers.cpython-35.pyc unlink /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/__pycache__/parse_property.cpython-35.pyc unlink /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/__pycache__/parser.cpython-35.pyc unlink /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/__pycache__/temp_fixes.cpython-35.pyc compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/__init__.py compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/backcompat.py compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/dom_helpers.py compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/http_server.py compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/implied_properties.py compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/mf2_classes.py compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/mf_helpers.py compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/parse_property.py compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/parser.py compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/temp_fixes.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python-module-mf2py-buildroot using python3 -O compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/__init__.py compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/backcompat.py compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/dom_helpers.py compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/http_server.py compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/implied_properties.py compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/mf2_classes.py compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/mf_helpers.py compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/parse_property.py compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/parser.py compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/temp_fixes.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python-module-mf2py-buildroot using python3 -OO compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/__init__.py compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/backcompat.py compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/dom_helpers.py compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/http_server.py compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/implied_properties.py compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/mf2_classes.py compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/mf_helpers.py compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/parse_property.py compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/parser.py compile /usr/src/tmp/python-module-mf2py-buildroot/usr/lib/python3/site-packages/mf2py/temp_fixes.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/mf2py/__pycache__/temp_fixes.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/mf2py/__pycache__/temp_fixes.cpython-35.pyc' './usr/lib/python3/site-packages/mf2py/__pycache__/temp_fixes.cpython-35.opt-2.pyc' => './usr/lib/python3/site-packages/mf2py/__pycache__/temp_fixes.cpython-35.opt-1.pyc' './usr/lib/python3/site-packages/mf2py/__pycache__/parser.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/mf2py/__pycache__/parser.cpython-35.pyc' './usr/lib/python3/site-packages/mf2py/__pycache__/parse_property.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/mf2py/__pycache__/parse_property.cpython-35.pyc' './usr/lib/python3/site-packages/mf2py/__pycache__/mf_helpers.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/mf2py/__pycache__/mf_helpers.cpython-35.pyc' './usr/lib/python3/site-packages/mf2py/__pycache__/mf2_classes.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/mf2py/__pycache__/mf2_classes.cpython-35.pyc' './usr/lib/python3/site-packages/mf2py/__pycache__/implied_properties.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/mf2py/__pycache__/implied_properties.cpython-35.pyc' './usr/lib/python3/site-packages/mf2py/__pycache__/http_server.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/mf2py/__pycache__/http_server.cpython-35.pyc' './usr/lib/python3/site-packages/mf2py/__pycache__/http_server.cpython-35.opt-2.pyc' => './usr/lib/python3/site-packages/mf2py/__pycache__/http_server.cpython-35.opt-1.pyc' './usr/lib/python3/site-packages/mf2py/__pycache__/dom_helpers.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/mf2py/__pycache__/dom_helpers.cpython-35.pyc' './usr/lib/python3/site-packages/mf2py/__pycache__/backcompat.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/mf2py/__pycache__/backcompat.cpython-35.pyc' './usr/lib/python3/site-packages/mf2py/__pycache__/__init__.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/mf2py/__pycache__/__init__.cpython-35.pyc' Hardlinking identical .pyc and .pyo files './usr/lib/python2.7/site-packages/mf2py/temp_fixes.pyo' => './usr/lib/python2.7/site-packages/mf2py/temp_fixes.pyc' './usr/lib/python2.7/site-packages/mf2py/parser.pyo' => './usr/lib/python2.7/site-packages/mf2py/parser.pyc' './usr/lib/python2.7/site-packages/mf2py/parse_property.pyo' => './usr/lib/python2.7/site-packages/mf2py/parse_property.pyc' './usr/lib/python2.7/site-packages/mf2py/mf_helpers.pyo' => './usr/lib/python2.7/site-packages/mf2py/mf_helpers.pyc' './usr/lib/python2.7/site-packages/mf2py/mf2_classes.pyo' => './usr/lib/python2.7/site-packages/mf2py/mf2_classes.pyc' './usr/lib/python2.7/site-packages/mf2py/implied_properties.pyo' => './usr/lib/python2.7/site-packages/mf2py/implied_properties.pyc' './usr/lib/python2.7/site-packages/mf2py/http_server.pyo' => './usr/lib/python2.7/site-packages/mf2py/http_server.pyc' './usr/lib/python2.7/site-packages/mf2py/dom_helpers.pyo' => './usr/lib/python2.7/site-packages/mf2py/dom_helpers.pyc' './usr/lib/python2.7/site-packages/mf2py/backcompat.pyo' => './usr/lib/python2.7/site-packages/mf2py/backcompat.pyc' './usr/lib/python2.7/site-packages/mf2py/__init__.pyo' => './usr/lib/python2.7/site-packages/mf2py/__init__.pyc' Executing(%check): /bin/sh -e /usr/src/tmp/rpm-tmp.1950 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-mf2py-0.2.2 + python setup.py test running test running egg_info deleting mf2py.egg-info/requires.txt writing mf2py.egg-info/PKG-INFO writing top-level names to mf2py.egg-info/top_level.txt writing dependency_links to mf2py.egg-info/dependency_links.txt reading manifest file 'mf2py.egg-info/SOURCES.txt' writing manifest file 'mf2py.egg-info/SOURCES.txt' running build_ext ---------------------------------------------------------------------- Ran 0 tests in 0.000s OK + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-mf2py-0.2.2 + python3 setup.py test running test running egg_info writing mf2py.egg-info/PKG-INFO writing top-level names to mf2py.egg-info/top_level.txt deleting mf2py.egg-info/requires.txt writing dependency_links to mf2py.egg-info/dependency_links.txt reading manifest file 'mf2py.egg-info/SOURCES.txt' writing manifest file 'mf2py.egg-info/SOURCES.txt' running build_ext http_server (unittest.loader._FailedTest) ... ERROR ====================================================================== ERROR: http_server (unittest.loader._FailedTest) ---------------------------------------------------------------------- ImportError: Failed to import test module: http_server Traceback (most recent call last): File "/usr/lib64/python3.5/unittest/loader.py", line 153, in loadTestsFromName module = __import__(module_name) File "/usr/src/RPM/BUILD/python3/mf2py/http_server.py", line 3, in from flask import Flask, Response, request ImportError: No module named 'flask' ---------------------------------------------------------------------- Ran 1 test in 0.000s FAILED (errors=1) error: Bad exit status from /usr/src/tmp/rpm-tmp.1950 (%check) RPM build errors: Bad exit status from /usr/src/tmp/rpm-tmp.1950 (%check) Command exited with non-zero status 1 3.31user 0.40system 0:04.41elapsed 84%CPU (0avgtext+0avgdata 41008maxresident)k 0inputs+0outputs (0major+133733minor)pagefaults 0swaps hsh-rebuild: rebuild of `python-module-mf2py-0.2.2-alt1.git20150205.1.1.src.rpm' failed. Command exited with non-zero status 1 16.17user 4.18system 0:23.22elapsed 87%CPU (0avgtext+0avgdata 124208maxresident)k 11112inputs+0outputs (0major+349985minor)pagefaults 0swaps