<86>Jun 1 12:00:13 userdel[2808163]: delete user 'rooter' <86>Jun 1 12:00:13 userdel[2808163]: removed group 'rooter' owned by 'rooter' <86>Jun 1 12:00:13 userdel[2808163]: removed shadow group 'rooter' owned by 'rooter' <86>Jun 1 12:00:13 groupadd[2808190]: group added to /etc/group: name=rooter, GID=648 <86>Jun 1 12:00:13 groupadd[2808190]: group added to /etc/gshadow: name=rooter <86>Jun 1 12:00:13 groupadd[2808190]: new group: name=rooter, GID=648 <86>Jun 1 12:00:13 useradd[2808246]: new user: name=rooter, UID=648, GID=648, home=/root, shell=/bin/bash <86>Jun 1 12:00:13 userdel[2808271]: delete user 'builder' <86>Jun 1 12:00:13 userdel[2808271]: removed group 'builder' owned by 'builder' <86>Jun 1 12:00:13 userdel[2808271]: removed shadow group 'builder' owned by 'builder' <86>Jun 1 12:00:13 groupadd[2808371]: group added to /etc/group: name=builder, GID=649 <86>Jun 1 12:00:13 groupadd[2808371]: group added to /etc/gshadow: name=builder <86>Jun 1 12:00:13 groupadd[2808371]: new group: name=builder, GID=649 <86>Jun 1 12:00:13 useradd[2808400]: new user: name=builder, UID=649, GID=649, home=/usr/src, shell=/bin/bash <13>Jun 1 12:00:18 rpmi: libgdbm-1.8.3-alt10 1454943334 installed <13>Jun 1 12:00:18 rpmi: libexpat-2.2.10-alt1 sisyphus+259966.100.1.1 1602824518 installed <13>Jun 1 12:00:18 rpmi: libp11-kit-0.23.15-alt2 sisyphus+252784.100.2.2 1591274901 installed <13>Jun 1 12:00:18 rpmi: libtasn1-4.16.0-alt1 sisyphus+245480.100.1.1 1580825062 installed <13>Jun 1 12:00:18 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Jun 1 12:00:18 rpmi: alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Jun 1 12:00:18 rpmi: ca-certificates-2021.03.24-alt1 sisyphus+268304.300.1.1 1616591829 installed <13>Jun 1 12:00:18 rpmi: ca-trust-0.1.2-alt1 sisyphus+233348.100.1.1 1561653823 installed <13>Jun 1 12:00:18 rpmi: p11-kit-trust-0.23.15-alt2 sisyphus+252784.100.2.2 1591274901 installed <13>Jun 1 12:00:18 rpmi: libcrypto1.1-1.1.1k-alt1 sisyphus+268375.100.1.1 1616684255 installed <13>Jun 1 12:00:18 rpmi: libssl1.1-1.1.1k-alt1 sisyphus+268375.100.1.1 1616684255 installed <13>Jun 1 12:00:18 rpmi: python3-3.9.5-alt1 sisyphus+271461.100.1.1 1620748853 installed <13>Jun 1 12:00:19 rpmi: python3-base-3.9.5-alt1 sisyphus+271461.100.1.1 1620748853 installed <13>Jun 1 12:00:20 rpmi: libpython3-3.9.5-alt1 sisyphus+271461.100.1.1 1620748853 installed <13>Jun 1 12:00:20 rpmi: tests-for-installed-python3-pkgs-0.1.17-alt1 sisyphus+271082.100.1.1 1619820927 installed <13>Jun 1 12:00:20 rpmi: rpm-build-python3-0.1.17-alt1 sisyphus+271082.100.1.1 1619820927 installed <13>Jun 1 12:00:27 rpmi: python3-module-six-1.15.0-alt2 sisyphus+270533.5100.6.1 1619685463 installed <13>Jun 1 12:00:27 rpmi: python3-module-pkg_resources-1:57.0.0-alt1 sisyphus+272429.100.1.1 1621886170 installed <13>Jun 1 12:00:27 rpmi: python3-module-ntlm-1.1.0-alt1.2 sisyphus+228512.100.1.1 1556654575 installed <13>Jun 1 12:00:27 rpmi: python3-module-genshi-0.7.4-alt2 sisyphus+261703.100.2.1 1605232240 installed <13>Jun 1 12:00:27 rpmi: python3-module-ndg-0.4.2-alt1.qa1 sisyphus+227504.1300.1.2 1555853234 installed <13>Jun 1 12:00:27 rpmi: python3-module-webencodings-0.5.1-alt2 sisyphus+245915.200.1.1 1581496105 installed <13>Jun 1 12:00:27 rpmi: python3-module-pycparser-2.20-alt1 sisyphus+260990.100.1.1 1604547209 installed <13>Jun 1 12:00:27 rpmi: python3-module-cffi-1.14.5-alt2 sisyphus+270533.2000.6.1 1619684442 installed <13>Jun 1 12:00:27 rpmi: python3-module-cryptography-3.4.7-alt1 sisyphus+270667.100.1.1 1619307697 installed <13>Jun 1 12:00:27 rpmi: python3-module-openssl-20.0.1-alt1 sisyphus+267607.100.2.1 1615475362 installed <13>Jun 1 12:00:27 rpmi: python3-module-ndg-httpsclient-0.4.2-alt1.qa1 sisyphus+227504.1300.1.2 1555853234 installed <13>Jun 1 12:00:27 rpmi: libpython-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed <13>Jun 1 12:00:27 rpmi: python2-base-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed <13>Jun 1 12:00:27 rpmi: python-modules-encodings-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed <13>Jun 1 12:00:27 rpmi: python-modules-compiler-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed <13>Jun 1 12:00:27 rpmi: python-modules-email-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed <13>Jun 1 12:00:27 rpmi: python-modules-unittest-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed <13>Jun 1 12:00:28 rpmi: python-modules-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed <13>Jun 1 12:00:28 rpmi: python-modules-ctypes-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed <13>Jun 1 12:00:28 rpmi: python-modules-multiprocessing-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed <13>Jun 1 12:00:28 rpmi: python-modules-logging-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed <13>Jun 1 12:00:28 rpmi: libnatspec-0.3.1-alt2 1445691580 installed <13>Jun 1 12:00:28 rpmi: libgpg-error-1.41-alt4 sisyphus+264254.200.1.1 1609440111 installed <13>Jun 1 12:00:28 rpmi: libgcrypt20-1.9.2-alt1 sisyphus+266496.100.1.1 1613559234 installed <13>Jun 1 12:00:28 rpmi: libxslt-1.1.34-alt2 sisyphus+248264.100.1.1 1584829770 installed <13>Jun 1 12:00:28 rpmi: python3-module-html5lib-1:1.0.1-alt1 sisyphus+238807.100.2.1 1570465973 installed <13>Jun 1 12:00:28 rpmi: python3-module-cssselect-0.9.1-alt3 sisyphus+270533.2600.6.1 1619684675 installed <13>Jun 1 12:00:28 rpmi: python3-module-lxml-4.6.3-alt1 sisyphus+268152.100.1.1 1616388041 installed <13>Jun 1 12:00:28 rpmi: unzip-6.0-alt4 sisyphus+261685.200.2.1 1605218923 installed <13>Jun 1 12:00:28 rpmi: python-tools-2to3-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed <13>Jun 1 12:00:28 rpmi: python3-module-urllib3-2:1.25.10-alt1 sisyphus+255342.100.1.1 1595592746 installed <13>Jun 1 12:00:28 rpmi: python3-module-nose-1:1.3.7-alt7.git20160316 sisyphus+257589.40.2.1 1599522367 installed Building target platforms: i586 Building for target i586 Wrote: /usr/src/in/nosrpm/python3-module-openxmllib-1.1.1-alt2.nosrc.rpm (w1.gzdio) <13>Jun 1 12:00:36 rpmi: libtinfo-devel-6.2.20210123-alt1 sisyphus+265425.100.1.1 1611851433 installed <13>Jun 1 12:00:36 rpmi: libncurses-devel-6.2.20210123-alt1 sisyphus+265425.100.1.1 1611851433 installed <13>Jun 1 12:00:36 rpmi: python3-dev-3.9.5-alt1 sisyphus+271461.100.1.1 1620748853 installed <13>Jun 1 12:00:36 rpmi: python3-module-setuptools-1:57.0.0-alt1 sisyphus+272429.100.1.1 1621886170 installed Installing python3-module-openxmllib-1.1.1-alt2.src.rpm Building target platforms: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.24937 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf openxmllib-1.1.1 + echo 'Source #0 (openxmllib-1.1.1.zip):' Source #0 (openxmllib-1.1.1.zip): + /usr/bin/unzip -qq /usr/src/RPM/SOURCES/openxmllib-1.1.1.zip + cd openxmllib-1.1.1 + /bin/chmod -c -Rf u+rwX,go-w . + echo 'Patch #0 (port-on-python3.patch):' Patch #0 (port-on-python3.patch): + /usr/bin/patch -p2 patching file openxmllib/__init__.py + 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 ./tests/test_wordprocessing.py WARNING: couldn't encode ./tests/test_wordprocessing.py's diff for your terminal RefactoringTool: Refactored ./tests/test_validfiles.py RefactoringTool: Refactored ./tests/test_utils.py WARNING: couldn't encode ./tests/test_utils.py's diff for your terminal RefactoringTool: Refactored ./tests/test_spreadsheet.py RefactoringTool: Refactored ./tests/test_properties.py --- ./tests/test_wordprocessing.py (original) +++ ./tests/test_wordprocessing.py (refactored) @@ -25,9 +25,9 @@ """Indexable text with properties""" itext = self.doc.indexableText().split() --- ./tests/test_validfiles.py (original) +++ ./tests/test_validfiles.py (refactored) @@ -44,7 +44,7 @@ return def _assertCreation(self, path): - self.failUnless(os.path.isfile(os.path.join(path, '[Content_Types].xml')), + self.assertTrue(os.path.isfile(os.path.join(path, '[Content_Types].xml')), "Expected to have data in path %s" % path) return --- ./tests/test_utils.py (original) +++ ./tests/test_utils.py (refactored) @@ -23,7 +23,7 @@ toc_path = os.path.join(doc._cache_dir, '[Content_Types].xml') fh = openxmllib.utils.xmlFile(toc_path, 'rb') xml = etree.parse(fh) - self.failUnless(isinstance(xml.getroot(), etree._Element), "Expected an XML element") + self.assertTrue(isinstance(xml.getroot(), etree._Element), "Expected an XML element") return def test_tounicode(self): @@ -31,27 +31,27 @@ toUnicode = openxmllib.utils.toUnicode # Non text object - self.failUnlessEqual(toUnicode(AttributeError), AttributeError) + self.assertEqual(toUnicode(AttributeError), AttributeError) # ASCII stuff - self.failUnlessEqual(toUnicode('foo'), u'foo') + self.assertEqual(toUnicode('foo'), 'foo') # Unicode stuff - self.failUnlessEqual(toUnicode(u'foo'), u'foo') + self.assertEqual(toUnicode('foo'), 'foo') return def test_itextractor(self): """IndexableTextExtractor""" IndexableTextExtractor = openxmllib.utils.IndexableTextExtractor - from StringIO import StringIO + from io import StringIO from openxmllib.contenttypes import CT_WORDPROC_DOCUMENT from lxml import etree ite = IndexableTextExtractor(CT_WORDPROC_DOCUMENT, 'wordprocessing-main:t') indexables = ite.indexableText(etree.parse(StringIO(WP_MAIN_XML))) --- ./tests/test_spreadsheet.py (original) +++ ./tests/test_spreadsheet.py (refactored) @@ -25,10 +25,10 @@ """Indexable text with properties """ itext = self.doc.indexableText().split() - some_words = (u'this', u'is', u'a', u'spreadsheet', u'another', u'sum', - u'myinfo1', u'myinfo2', u'title', u'subject', u'comments') + some_words = ('this', 'is', 'a', 'spreadsheet', 'another', 'sum', + 'myinfo1', 'myinfo2', 'title', 'subject', 'comments') for word in some_words: - self.failUnless(word in itext, "%s was expected in %s" % (word, itext)) + self.assertTrue(word in itext, "%s was expected in %s" % (word, itext)) return @@ -36,19 +36,19 @@ """Indexable text without properties """ itext = self.doc.indexableText(include_properties=False).split() - some_words = (u'this', u'is', u'a', u'spreadsheet', u'another', u'sum') + some_words = ('this', 'is', 'a', 'spreadsheet', 'another', 'sum') for word in some_words: - self.failUnless(word in itext, "%s was expected in %s" % (word, itext)) + self.assertTrue(word in itext, "%s was expected in %s" % (word, itext)) return def test_templateFile(self): """Template file (xltx)""" itext = self.template.indexableText().split() - some_words = (u'this', u'is', u'a', u'spreadsheet', u'another', u'sum', - u'myinfo1', u'myinfo2', u'title', u'subject', u'comments') + some_words = ('this', 'is', 'a', 'spreadsheet', 'another', 'sum', + 'myinfo1', 'myinfo2', 'title', 'subject', 'comments') for word in some_words: - self.failUnless(word in itext, "%s was expected in %s" % (word, itext)) + self.assertTrue(word in itext, "%s was expected in %s" % (word, itext)) return # /class SpreadsheetTest --- ./tests/test_properties.py (original) +++ ./RefactoringTool: Refactored ./tests/test_presentation.py RefactoringTool: Refactored ./tests/test_getting_file_from_http.py WARNING: couldn't encode ./tests/test_getting_file_from_http.py's diff for your terminal RefactoringTool: Refactored ./tests/test_fixures.py tests/test_properties.py (refactored) @@ -28,8 +28,8 @@ 'language': 'fr-FR', 'title': 'The title of the document' } - for k, v in expected.items(): - self.failUnlessEqual(props[k], v) + for k, v in list(expected.items()): + self.assertEqual(props[k], v) return def test_extprops(self): @@ -42,8 +42,8 @@ 'Pages': '1', 'Words': '18', 'Paragraphs': '1'} - for k, v in expected.items(): - self.failUnlessEqual(props[k], v) + for k, v in list(expected.items()): + self.assertEqual(props[k], v) return def test_customprops(self): @@ -56,8 +56,8 @@ 'custom_title_3': 'custom_value_3', 'custom_title_4': 'custom_value_4', } - for k, v in expected.items(): - self.failUnlessEqual(props[k], v) + for k, v in list(expected.items()): + self.assertEqual(props[k], v) return # /class PropertiesTest --- ./tests/test_presentation.py (original) +++ ./tests/test_presentation.py (refactored) @@ -25,11 +25,11 @@ """Indexable text with properties""" itext = self.doc.indexableText().split() - some_words = (u'Chapter', u'presentation', u'proud', u'three', u'two', - u'four', u'item', u'one', u'My') - some_words += (u'false',) + some_words = ('Chapter', 'presentation', 'proud', 'three', 'two', + 'four', 'item', 'one', 'My') + some_words += ('false',) for word in some_words: - self.failUnless(word in itext, "%s was expected in %s" % (word, itext)) + self.assertTrue(word in itext, "%s was expected in %s" % (word, itext)) return @@ -37,21 +37,21 @@ """Indexable text without properties""" itext = self.doc.indexableText(include_properties=False).split() - some_words = (u'Chapter', u'presentation', u'proud', u'three', u'two', - u'four', u'item', u'one', u'My') + some_words = ('Chapter', 'presentation', 'proud', 'three', 'two', + 'four', 'item', 'one', 'My') for word in some_words: - self.failUnless(word in itext, "%s was expected in %s" % (word, itext)) + self.assertTrue(word in itext, "%s was expected in %s" % (word, itext)) return def test_templateFile(self): """Template file (potx)""" itext = self.template.indexableText().split() - some_words = (u'Chapter', u'presentation', u'proud', u'three', u'two', - u'four', u'item', u'one', u'My') - some_words += (u'false',) + some_words = ('Chapter', 'presentation', 'proud', 'three', 'two', + 'four', 'item', 'one', 'My') + some_words += ('false',) for word in some_words: - self.failUnless(word in itext, "%s was expected in %s" % (word, itext)) + self.assertTrue(word in itext, "%s was expected in %s" % (word, itext)) return # /class WordProcessingTest --- ./tests/test_getting_file_from_http.py (original) +++ ./tests/test_getting_file_from_http.py (refactored) @@ -39,15 +39,15 @@ def test_indexableText(self): """Indexable text with properties""" itext = self.doc.indexableText() --- ./tests/test_fixures.py (original) +++ ./tests/test_fixures.py (refactored) @@ -15,11 +15,11 @@ def test_syspath(self): """Do we include the openxmllib package in sys.path """ - self.failUnless(fixures.parent_dir in sys.path, + self.assertTrue(fixures.parent_dir in sys.path, "%s not in sys.path" % fixures.parent_dir) sp_copy = list(sys.path) sp_copy.remove(fixures.parent_dir) - self.failIf(fixures.parent_dir in sp_copy, + self.assertFalse(fixures.parent_dir in sp_copy, "%s should appear only once in sys.path" % fixures.parent_dir) return @@ -27,7 +27,7 @@ def test_testdir(self): """Do RefactoringTool: Refactored ./tests/test_factory.py RefactoringTool: Refactored ./tests/test_coverimage.py RefactoringTool: Refactored ./tests/test_contenttypes.py we have test data """ - self.failUnless(os.path.isdir(fixures.TEST_FILES_IN), + self.assertTrue(os.path.isdir(fixures.TEST_FILES_IN), "We have no test data") return --- ./tests/test_factory.py (original) +++ ./tests/test_factory.py (refactored) @@ -21,7 +21,7 @@ for test_filename in ALL_IN_FILES: test_filepath = os.path.join(TEST_FILES_IN, test_filename) doc = openxmllib.openXmlDocument(test_filepath) - self.failUnless(isinstance(doc, openxmllib.document.Document), + self.assertTrue(isinstance(doc, openxmllib.document.Document), "%s should be processed" % test_filepath) return @@ -33,7 +33,7 @@ fh = file(test_filepath, 'rb') doc = openxmllib.openXmlDocument(test_filepath) fh.close() - self.failUnless(isinstance(doc, openxmllib.document.Document), + self.assertTrue(isinstance(doc, openxmllib.document.Document), "%s should be processed" % test_filepath) return @@ -44,25 +44,25 @@ mime_type = ct.CT_WORDPROC_DOCX_PUBLIC test_file_path = os.path.join(TEST_FILES_IN, ALL_IN_FILES[0]) doc = openxmllib.openXmlDocument(path=test_file_path, mime_type=mime_type) - self.failUnless(isinstance(doc, openxmllib.wordprocessing.WordprocessingDocument), + self.assertTrue(isinstance(doc, openxmllib.wordprocessing.WordprocessingDocument), "Failed to create with mime type %s" % mime_type) - self.failUnlessEqual(doc.mimeType, mime_type) + self.assertEqual(doc.mimeType, mime_type) # From file object fh = file(test_file_path, 'rb') doc = openxmllib.openXmlDocument(file_=fh, mime_type=mime_type) fh.close() - self.failUnless(isinstance(doc, openxmllib.wordprocessing.WordprocessingDocument), + self.assertTrue(isinstance(doc, openxmllib.wordprocessing.WordprocessingDocument), "Failed to create with mime type %s" % mime_type) - self.failUnlessEqual(doc.mimeType, mime_type) + self.assertEqual(doc.mimeType, mime_type) # From file content fh = file(test_file_path, 'rb') doc = openxmllib.openXmlDocument(data=fh.read(), mime_type=mime_type) fh.close() - self.failUnless(isinstance(doc, openxmllib.wordprocessing.WordprocessingDocument), + self.assertTrue(isinstance(doc, openxmllib.wordprocessing.WordprocessingDocument), "Failed to create with mime type %s" % mime_type) - self.failUnlessEqual(doc.mimeType, mime_type) + self.assertEqual(doc.mimeType, mime_type) return # /class FactoryTest --- ./tests/test_coverimage.py (original) +++ ./tests/test_coverimage.py (refactored) @@ -26,14 +26,14 @@ for doc in self.coverdocs: suffix, fp = doc.documentCover() - self.failUnless(suffix=="jpg") - self.failUnless(fp.name.endswith("thumbnail.jpeg")) + self.assertTrue(suffix=="jpg") + self.assertTrue(fp.name.endswith("thumbnail.jpeg")) def test_coverNotPresent(self): """There is no cover image embedded in document""" for doc in self.docs: - self.failUnless(doc.documentCover() == None) + self.assertTrue(doc.documentCover() == None) # /class CoverExtractionTest --- ./tests/test_contenttypes.py (original) +++ ./tests/test_contenttypes.py (refactored) @@ -5,7 +5,7 @@ # $Id: test_contenttypes.py 6796 2007-12-04 10:52:51Z glenfant $ import unittest -import StringIO +import io from fixures import * @@ -59,17 +59,17 @@ def setUp(self): - self.content_types = ct.ContentTypes(StringIO.StringIO(CONTENTTYPES_XML)) + self.content_types = ct.ContentTypes(io.StringIO(CONTENTTYPES_XML)) return def test_overrides(self): """Checking some overrides""" - self.failUnlessEqual(self.content_RefactoringTool: No changes to ./tests/runalltests.py RefactoringTool: No changes to ./tests/fixures.py RefactoringTool: Refactored ./tests/base_test_document.py RefactoringTool: Refactored ./tests/base_http_server.py RefactoringTool: No changes to ./setup.py RefactoringTool: Refactored ./openxmllib/__init__.py RefactoringTool: Refactored ./openxmllib/wordprocessing.py RefactoringTool: Refactored ./openxmllib/utils.py RefactoringTool: Refactored ./openxmllib/spreadsheet.py types.getPathsForContentType(ct.CT_CORE_PROPS), + self.assertEqual(self.content_types.getPathsForContentType(ct.CT_CORE_PROPS), ['/docProps/core.xml']) - self.failUnlessEqual(self.content_types.getPathsForContentType(ct.CT_EXT_PROPS), + self.assertEqual(self.content_types.getPathsForContentType(ct.CT_EXT_PROPS), ['/docProps/app.xml']) - self.failUnlessEqual(self.content_types.getPathsForContentType(ct.CT_CUSTOM_PROPS), + self.assertEqual(self.content_types.getPathsForContentType(ct.CT_CUSTOM_PROPS), ['/docProps/custom.xml']) return # /class ContentTypesTest --- ./tests/base_test_document.py (original) +++ ./tests/base_test_document.py (refactored) @@ -22,7 +22,7 @@ indexable_text = self.document.indexableText() for indexable_word in self.indexable_words_with_properties: - self.failUnless(indexable_word in indexable_text, "%s was expected" % indexable_word) + self.assertTrue(indexable_word in indexable_text, "%s was expected" % indexable_word) def test_indexableTextNoprop(self): @@ -30,5 +30,5 @@ indexable_text = self.document.indexableText(include_properties=False) for indexable_word in self.indexable_words_without_properties: - self.failUnless(indexable_word in indexable_text, "%s was expected" % indexable_word) + self.assertTrue(indexable_word in indexable_text, "%s was expected" % indexable_word) --- ./tests/base_http_server.py (original) +++ ./tests/base_http_server.py (refactored) @@ -3,12 +3,12 @@ # $Id$ import os -import BaseHTTPServer +import http.server from fixures import HOST_NAME, PORT, TEST_FILES_IN, ALL_IN_FILES from openxmllib import contenttypes as ct -class SimpleHandler(BaseHTTPServer.BaseHTTPRequestHandler): +class SimpleHandler(http.server.BaseHTTPRequestHandler): def do_GET(self): if self.path == '/word.docx': self.send_response(200) @@ -24,5 +24,5 @@ if __name__ == '__main__': - httpd = BaseHTTPServer.HTTPServer((HOST_NAME, PORT), SimpleHandler) + httpd = http.server.HTTPServer((HOST_NAME, PORT), SimpleHandler) httpd.serve_forever() --- ./openxmllib/__init__.py (original) +++ ./openxmllib/__init__.py (refactored) @@ -11,9 +11,9 @@ import urllib3 import mimetypes -import wordprocessing -import spreadsheet -import presentation +from . import wordprocessing +from . import spreadsheet +from . import presentation version = None if version is None: @@ -79,5 +79,5 @@ ### for class_ in _document_classes: - for pattern, mime_type in class_._extpattern_to_mime.items(): + for pattern, mime_type in list(class_._extpattern_to_mime.items()): mimetypes.add_type(mime_type, pattern[1:], True) --- ./openxmllib/wordprocessing.py (original) +++ ./openxmllib/wordprocessing.py (refactored) @@ -2,10 +2,10 @@ """The wordprocessing module handles a WordprocessingML Open XML document (read *.docx)""" # $Id: wordprocessing.py 6800 2007-12-04 11:17:01Z glenfant $ -import document -from utils import IndexableTextExtractor -import contenttypes as ct -import namespaces +from . import document +from .utils import IndexableTextExtractor +from . import contenttypes as ct +from . import namespaces class WordprocessingDocument(document.Document): --- ./openxmllib/utils.py (original) +++ ./openxmllib/utils.py (refactored) @@ -5,7 +5,7 @@ import re from lxml import etree -from namespaces import ns_map +from .namespaces import ns_map def xmlFile(path, mode='r'): """lxml cannot parse XML files starting with a BOM @@ -31,7 +31,7 @@ """ if not isinstance(objekt, str): return objekt - return unicode(objekt, 'utf-8') + return str(objekt, 'utf-8') class IndexableTextExtractor(object): --- ./openxmllib/spreadsheet.py (original) +++ ./openxmllib/spreadsheet.py (refactored) @@ -4,10 +4,10 @@ """ # $Id: spreadsheet.py 6800 2007-12-04 11:17:01Z glenfant $ -import document -from utils importRefactoringTool: Refactored ./openxmllib/shell.py RefactoringTool: Refactored ./openxmllib/presentation.py RefactoringTool: No changes to ./openxmllib/namespaces.py RefactoringTool: Refactored ./openxmllib/document.py IndexableTextExtractor -import contenttypes as ct -import namespaces +from . import document +from .utils import IndexableTextExtractor +from . import contenttypes as ct +from . import namespaces class SpreadsheetDocument(document.Document): --- ./openxmllib/shell.py (original) +++ ./openxmllib/shell.py (refactored) @@ -33,7 +33,7 @@ """Value must be a valid charset""" try: dummy = codecs.lookup(value) - except LookupError, e: + except LookupError as e: raise optparse.OptionValueError( "Charset '%s' in unknown or not supported by your sytem." % value) @@ -53,7 +53,7 @@ help="Adds verbosity for each '-v'") self.options, self.args = parser.parse_args() if (len(self.args) < 2 - or self.args[0] not in self.commands.keys()): + or self.args[0] not in list(self.commands.keys())): parser.error("Invalid arguments") self.filenames = self.args[1:] return @@ -101,14 +101,14 @@ self.log(1, "Processing %s...", filename) doc = openxmllib.openXmlDocument(path=filename) self.log(2, "Core properties:") - for k, v in doc.coreProperties.items(): - print "%s: %s" % (self.recode(k), self.recode(v)) + for k, v in list(doc.coreProperties.items()): + print("%s: %s" % (self.recode(k), self.recode(v))) self.log(2, "Extended properties:") - for k, v in doc.extendedProperties.items(): - print "%s: %s" % (self.recode(k), self.recode(v)) + for k, v in list(doc.extendedProperties.items()): + print("%s: %s" % (self.recode(k), self.recode(v))) self.log(2, "Custom properties:") - for k, v in doc.customProperties.items(): - print "%s: %s" % (self.recode(k), self.recode(v)) + for k, v in list(doc.customProperties.items()): + print("%s: %s" % (self.recode(k), self.recode(v))) return def showWords(self, filename): @@ -119,7 +119,7 @@ doc = openxmllib.openXmlDocument(path=filename) text = doc.indexableText(include_properties=False) duration = time.time() - start_time - print self.recode(text) + print(self.recode(text)) self.log(1, "Words extracted in %s second(s)", duration) return @@ -135,11 +135,11 @@ def log(self, required_verbosity, message, *args): if self.options.verbosity >= required_verbosity: - print message % args + print(message % args) return def recode(self, utext): - if type(utext) is types.UnicodeType: + if type(utext) is str: return utext.encode(self.options.charset, 'replace') return utext --- ./openxmllib/presentation.py (original) +++ ./openxmllib/presentation.py (refactored) @@ -4,10 +4,10 @@ """ # $Id: presentation.py 6800 2007-12-04 11:17:01Z glenfant $ -import document -from utils import IndexableTextExtractor -import contenttypes as ct -import namespaces +from . import document +from .utils import IndexableTextExtractor +from . import contenttypes as ct +from . import namespaces class PresentationDocument(document.Document): """Handles specific features of a PresentationML document --- ./openxmllib/document.py (original) +++ ./openxmllib/document.py (refactored) @@ -9,15 +9,15 @@ import zipfile import shutil import fnmatch -import urllib +import urllib.request, urllib.parse, urllib.error import imghdr import lxml -import contenttypes -from namespaces import ns_map -from utils import xmlFile -from utils import toUnicode +from . import contenttypes +from .namespaces import ns_map +from .utils import xmlFile +from .utils import toUnicode class Document(object): @@ -97,7 +97,7 @@ if self.mime_type: # Supposed validated by the factory return self.mime_type - for pattern, mime_type in self._extpattern_to_mime.items(): + for pattern, mime_type RefactoringTool: Refactored ./openxmllib/contenttypes.py RefactoringTool: Refactored ./doc/source/conf.py RefactoringTool: Files that were modified: RefactoringTool: ./tests/test_wordprocessing.py RefactoringTool: ./tests/test_validfiles.py RefactoringTool: ./tests/test_utils.py RefactoringTool: ./tests/test_spreadsheet.py RefactoringTool: ./tests/test_properties.py RefactoringTool: ./tests/test_presentation.py RefactoringTool: ./tests/test_getting_file_from_http.py RefactoringTool: ./tests/test_fixures.py RefactoringTool: ./tests/test_factory.py RefactoringTool: ./tests/test_coverimage.py RefactoringTool: ./tests/test_contenttypes.py RefactoringTool: ./tests/runalltests.py RefactoringTool: ./tests/fixures.py RefactoringTool: ./tests/base_test_document.py RefactoringTool: ./tests/base_http_server.py RefactoringTool: ./setup.py RefactoringTool: ./openxmllib/__init__.py RefactoringTool: ./openxmllib/wordprocessing.py RefactoringTool: ./openxmllib/utils.py RefactoringTool: ./openxmllib/spreadsheet.py RefactoringTool: ./openxmllib/shell.py RefactoringTool: ./openxmllib/presentation.py RefactoringTool: ./openxmllib/namespaces.py RefactoringTool: ./openxmllib/document.py RefactoringTool: ./openxmllib/contenttypes.py RefactoringTool: ./doc/source/conf.py in list(self._extpattern_to_mime.items()): if fnmatch.fnmatch(self.filename, pattern): return mime_type @@ -158,7 +158,7 @@ propvalue_xpath = XPath('*/text()') for tree in self.content_types.getTreesFor(self, contenttypes.CT_CUSTOM_PROPS): for elt in properties_xpath(tree.getroot()): - rval[toUnicode(propname_xpath(elt)[0])] = u" ".join(propvalue_xpath(elt)) + rval[toUnicode(propname_xpath(elt)[0])] = " ".join(propvalue_xpath(elt)) return rval @@ -215,10 +215,10 @@ text |= words if include_properties: - for prop_value in self.allProperties.values(): + for prop_value in list(self.allProperties.values()): if prop_value is not None: text.add(prop_value) - return u' '.join([word for word in text]) + return ' '.join([word for word in text]) def __del__(self): @@ -238,7 +238,7 @@ :param mime_type: Mime type as 'application/xxx' :return: True if we can process such mime """ - supported_mimes = cls._extpattern_to_mime.values() + supported_mimes = list(cls._extpattern_to_mime.values()) return mime_type in supported_mimes @@ -249,7 +249,7 @@ :param filename: File name as 'mydoc.docx' :return: True if we can process such file """ - supported_patterns = cls._extpattern_to_mime.keys() + supported_patterns = list(cls._extpattern_to_mime.keys()) for pattern in supported_patterns: if fnmatch.fnmatch(filename, pattern): return True --- ./openxmllib/contenttypes.py (original) +++ ./openxmllib/contenttypes.py (refactored) @@ -6,8 +6,8 @@ import os from lxml import etree -import namespaces as ns -import utils +from . import namespaces as ns +from . import utils # Common properties CT_CORE_PROPS = 'application/vnd.openxmlformats-package.core-properties+xml' @@ -70,7 +70,7 @@ context = etree.iterparse(content_types_file, tag='{%s}Override' % ns.CONTENT_TYPES) for dummy, override in context: key = override.get('ContentType') - if self.overrides.has_key(key): + if key in self.overrides: self.overrides[key].append(override.get('PartName')) else: self.overrides[key] = [override.get('PartName')] @@ -113,5 +113,5 @@ CT_CORE_PROPS, CT_EXT_PROPS, CT_CUSTOM_PROPS) - return [k for k in self.overrides.keys() if k in all_md_content_types] + return [k for k in list(self.overrides.keys()) if k in all_md_content_types] --- ./doc/source/conf.py (original) +++ ./doc/source/conf.py (refactored) @@ -56,8 +56,8 @@ master_doc = 'index' # General information about the project. -project = u'openxmllib' -copyright = u'2008-%d, Gilles Lenfant' % time.localtime().tm_year +project = 'openxmllib' +copyright = '2008-%d, Gilles Lenfant' % time.localtime().tm_year # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the @@ -195,8 +195,8 @@ # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, author, documentclass [howto/manual]). latex_documents = [ - ('index', 'openxmllib.tex', u'openxmllib Documentation', - u'Gilles Lenfant', 'manual'), + ('index', 'openxmllib.tex', 'openxmllib Documentation', + 'Gilles Lenfant', 'manual'), ] # The name of an image file (relative to this directory) to place at the top of @@ -228,6 +228,6 @@ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ - ('index', 'openxmllib', u'openxmllib Documentation', - [u'Gilles Lenfant'], 1) + ('index', 'openxmllib', 'openxmllib Documentation', + ['Gilles Lenfant'], 1) ] + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.82435 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd openxmllib-1.1.1 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export FFLAGS + /usr/bin/python3 setup.py build --debug running build running build_py creating build creating build/lib creating build/lib/openxmllib copying openxmllib/__init__.py -> build/lib/openxmllib copying openxmllib/wordprocessing.py -> build/lib/openxmllib copying openxmllib/utils.py -> build/lib/openxmllib copying openxmllib/spreadsheet.py -> build/lib/openxmllib copying openxmllib/shell.py -> build/lib/openxmllib copying openxmllib/presentation.py -> build/lib/openxmllib copying openxmllib/namespaces.py -> build/lib/openxmllib copying openxmllib/document.py -> build/lib/openxmllib copying openxmllib/contenttypes.py -> build/lib/openxmllib running egg_info writing openxmllib.egg-info/PKG-INFO writing dependency_links to openxmllib.egg-info/dependency_links.txt writing entry points to openxmllib.egg-info/entry_points.txt writing requirements to openxmllib.egg-info/requires.txt writing top-level names to openxmllib.egg-info/top_level.txt reading manifest file 'openxmllib.egg-info/SOURCES.txt' adding license file 'COPYING' writing manifest file 'openxmllib.egg-info/SOURCES.txt' copying openxmllib/version.txt -> build/lib/openxmllib + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.97583 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python3-module-openxmllib-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python3-module-openxmllib-buildroot + PATH=/usr/libexec/rpm-build:/usr/src/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games + cd openxmllib-1.1.1 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export FFLAGS + /usr/bin/python3 setup.py install --skip-build --root=/usr/src/tmp/python3-module-openxmllib-buildroot --force running install running install_lib creating /usr/src/tmp/python3-module-openxmllib-buildroot creating /usr/src/tmp/python3-module-openxmllib-buildroot/usr creating /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib creating /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3 creating /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages creating /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib copying build/lib/openxmllib/version.txt -> /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib copying build/lib/openxmllib/contenttypes.py -> /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib copying build/lib/openxmllib/document.py -> /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib copying build/lib/openxmllib/namespaces.py -> /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib copying build/lib/openxmllib/presentation.py -> /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib copying build/lib/openxmllib/shell.py -> /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib copying build/lib/openxmllib/spreadsheet.py -> /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib copying build/lib/openxmllib/utils.py -> /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib copying build/lib/openxmllib/wordprocessing.py -> /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib copying build/lib/openxmllib/__init__.py -> /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib byte-compiling /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/contenttypes.py to contenttypes.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/document.py to document.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/namespaces.py to namespaces.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/presentation.py to presentation.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/shell.py to shell.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/spreadsheet.py to spreadsheet.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/utils.py to utils.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/wordprocessing.py to wordprocessing.cpython-39.pyc byte-compiling /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/__init__.py to __init__.cpython-39.pyc running install_egg_info running egg_info writing openxmllib.egg-info/PKG-INFO writing dependency_links to openxmllib.egg-info/dependency_links.txt writing entry points to openxmllib.egg-info/entry_points.txt writing requirements to openxmllib.egg-info/requires.txt writing top-level names to openxmllib.egg-info/top_level.txt reading manifest file 'openxmllib.egg-info/SOURCES.txt' adding license file 'COPYING' writing manifest file 'openxmllib.egg-info/SOURCES.txt' Copying openxmllib.egg-info to /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib-1.1.1-py3.9.egg-info running install_scripts Installing openxmlinfo script to /usr/src/tmp/python3-module-openxmllib-buildroot/usr/bin + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python3-module-openxmllib-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python3-module-openxmllib-buildroot (binconfig,pkgconfig,libtool,desktop,gnuconfig) Checking contents of files in /usr/src/tmp/python3-module-openxmllib-buildroot/ (default) Compressing files in /usr/src/tmp/python3-module-openxmllib-buildroot (auto) Adjusting library links in /usr/src/tmp/python3-module-openxmllib-buildroot ./usr/lib: (from :0) Verifying ELF objects in /usr/src/tmp/python3-module-openxmllib-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) Bytecompiling python3 modules in /usr/src/tmp/python3-module-openxmllib-buildroot using /usr/bin/python3 unlink /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/__pycache__/__init__.cpython-39.pyc unlink /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/__pycache__/contenttypes.cpython-39.pyc unlink /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/__pycache__/document.cpython-39.pyc unlink /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/__pycache__/namespaces.cpython-39.pyc unlink /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/__pycache__/presentation.cpython-39.pyc unlink /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/__pycache__/shell.cpython-39.pyc unlink /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/__pycache__/spreadsheet.cpython-39.pyc unlink /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/__pycache__/utils.cpython-39.pyc unlink /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/__pycache__/wordprocessing.cpython-39.pyc compile /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/__init__.py compile /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/contenttypes.py compile /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/document.py compile /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/namespaces.py compile /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/presentation.py compile /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/shell.py compile /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/spreadsheet.py compile /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/utils.py compile /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/wordprocessing.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python3-module-openxmllib-buildroot using /usr/bin/python3 -O compile /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/__init__.py compile /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/contenttypes.py compile /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/document.py compile /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/namespaces.py compile /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/presentation.py compile /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/shell.py compile /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/spreadsheet.py compile /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/utils.py compile /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/wordprocessing.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python3-module-openxmllib-buildroot using /usr/bin/python3 -OO compile /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/__init__.py compile /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/contenttypes.py compile /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/document.py compile /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/namespaces.py compile /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/presentation.py compile /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/shell.py compile /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/spreadsheet.py compile /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/utils.py compile /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/wordprocessing.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/openxmllib/__pycache__/contenttypes.cpython-39.opt-1.pyc' => './usr/lib/python3/site-packages/openxmllib/__pycache__/contenttypes.cpython-39.pyc' './usr/lib/python3/site-packages/openxmllib/__pycache__/namespaces.cpython-39.opt-1.pyc' => './usr/lib/python3/site-packages/openxmllib/__pycache__/namespaces.cpython-39.pyc' './usr/lib/python3/site-packages/openxmllib/__pycache__/presentation.cpython-39.opt-1.pyc' => './usr/lib/python3/site-packages/openxmllib/__pycache__/presentation.cpython-39.pyc' './usr/lib/python3/site-packages/openxmllib/__pycache__/shell.cpython-39.opt-1.pyc' => './usr/lib/python3/site-packages/openxmllib/__pycache__/shell.cpython-39.pyc' './usr/lib/python3/site-packages/openxmllib/__pycache__/spreadsheet.cpython-39.opt-1.pyc' => './usr/lib/python3/site-packages/openxmllib/__pycache__/spreadsheet.cpython-39.pyc' './usr/lib/python3/site-packages/openxmllib/__pycache__/utils.cpython-39.opt-1.pyc' => './usr/lib/python3/site-packages/openxmllib/__pycache__/utils.cpython-39.pyc' './usr/lib/python3/site-packages/openxmllib/__pycache__/wordprocessing.cpython-39.opt-1.pyc' => './usr/lib/python3/site-packages/openxmllib/__pycache__/wordprocessing.cpython-39.pyc' Executing(%check): /bin/sh -e /usr/src/tmp/rpm-tmp.65955 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd openxmllib-1.1.1 + exit 0 Processing files: python3-module-openxmllib-1.1.1-alt2 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.87932 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd openxmllib-1.1.1 + DOCDIR=/usr/src/tmp/python3-module-openxmllib-buildroot/usr/share/doc/python3-module-openxmllib-1.1.1 + export DOCDIR + rm -rf /usr/src/tmp/python3-module-openxmllib-buildroot/usr/share/doc/python3-module-openxmllib-1.1.1 + /bin/mkdir -p /usr/src/tmp/python3-module-openxmllib-buildroot/usr/share/doc/python3-module-openxmllib-1.1.1 + cp -prL README.rst PKG-INFO COPYING doc /usr/src/tmp/python3-module-openxmllib-buildroot/usr/share/doc/python3-module-openxmllib-1.1.1 + chmod -R go-w /usr/src/tmp/python3-module-openxmllib-buildroot/usr/share/doc/python3-module-openxmllib-1.1.1 + chmod -R a+rX /usr/src/tmp/python3-module-openxmllib-buildroot/usr/share/doc/python3-module-openxmllib-1.1.1 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.oYu54o 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.MeOcfl find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services) /usr/lib/rpm/python3.req.py:6: DeprecationWarning: The parser module is deprecated and will be removed in future versions of Python import parser, symbol, token, types /usr/lib/rpm/python3.req.py:6: DeprecationWarning: The symbol module is deprecated and will be removed in future versions of Python import parser, symbol, token, types python3.req: /usr/src/tmp/python3-module-openxmllib-buildroot/usr/bin/openxmlinfo: skipping sys /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-openxmllib-buildroot/usr/bin/openxmlinfo: line=10 IGNORE (for REQ=slight and deep=8) module=importlib.metadata /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-openxmllib-buildroot/usr/bin/openxmlinfo: line=13 IGNORE (for REQ=slight and deep=12) module=importlib_metadata /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-openxmllib-buildroot/usr/bin/openxmlinfo: line=15 IGNORE (for REQ=slight and deep=12) module=pkg_resources /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/__init__.py: line=14 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/__init__.py: line=15 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/__init__.py: line=16 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/contenttypes.py: line=9 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/contenttypes.py: line=10 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/document.py: line=17 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/document.py: line=18 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/document.py: line=19 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/document.py: line=20 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/presentation.py: line=7 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/presentation.py: line=8 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/presentation.py: line=9 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/presentation.py: line=10 possible relative import from ., UNIMPLEMENTED python3.req: /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/shell.py: skipping time /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/spreadsheet.py: line=7 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/spreadsheet.py: line=8 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/spreadsheet.py: line=9 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/spreadsheet.py: line=10 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/utils.py: line=8 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/wordprocessing.py: line=5 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/wordprocessing.py: line=6 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/wordprocessing.py: line=7 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/wordprocessing.py: line=8 possible relative import from ., UNIMPLEMENTED shebang.req.files: executable script /usr/src/tmp/python3-module-openxmllib-buildroot/usr/lib/python3/site-packages/openxmllib/shell.py is not executable Provides: python3(openxmllib), python3(openxmllib.contenttypes), python3(openxmllib.document), python3(openxmllib.namespaces), python3(openxmllib.presentation), python3(openxmllib.shell), python3(openxmllib.spreadsheet), python3(openxmllib.utils), python3(openxmllib.wordprocessing) Requires: python3(lxml) < 0, /usr/bin/python3, /usr/lib/python3/site-packages, python3(codecs) < 0, python3(fnmatch) < 0, python3(imghdr) < 0, python3(io) < 0, python3(locale) < 0, python3(mimetypes) < 0, python3(optparse) < 0, python3(os) < 0, python3(re) < 0, python3(shutil) < 0, python3(tempfile) < 0, python3(types) < 0, python3(urllib.error) < 0, python3(urllib.parse) < 0, python3(urllib.request) < 0, python3(urllib3) < 0, python3(zipfile) < 0 Wrote: /usr/src/RPM/RPMS/noarch/python3-module-openxmllib-1.1.1-alt2.noarch.rpm (w2.lzdio) 6.57user 0.42system 0:12.57elapsed 55%CPU (0avgtext+0avgdata 19464maxresident)k 0inputs+0outputs (0major+157546minor)pagefaults 0swaps 14.34user 3.31system 0:41.60elapsed 42%CPU (0avgtext+0avgdata 110564maxresident)k 5984inputs+0outputs (0major+610948minor)pagefaults 0swaps --- python3-module-openxmllib-1.1.1-alt2.noarch.rpm.repo 2020-01-21 10:04:46.000000000 +0000 +++ python3-module-openxmllib-1.1.1-alt2.noarch.rpm.hasher 2021-06-01 12:00:52.089993500 +0000 @@ -2,39 +2,39 @@ /usr/lib/python3/site-packages/openxmllib 40755 -/usr/lib/python3/site-packages/openxmllib-1.1.1-py3.7.egg-info 40755 -/usr/lib/python3/site-packages/openxmllib-1.1.1-py3.7.egg-info/PKG-INFO 100644 -/usr/lib/python3/site-packages/openxmllib-1.1.1-py3.7.egg-info/SOURCES.txt 100644 -/usr/lib/python3/site-packages/openxmllib-1.1.1-py3.7.egg-info/dependency_links.txt 100644 -/usr/lib/python3/site-packages/openxmllib-1.1.1-py3.7.egg-info/entry_points.txt 100644 -/usr/lib/python3/site-packages/openxmllib-1.1.1-py3.7.egg-info/not-zip-safe 100644 -/usr/lib/python3/site-packages/openxmllib-1.1.1-py3.7.egg-info/requires.txt 100644 -/usr/lib/python3/site-packages/openxmllib-1.1.1-py3.7.egg-info/top_level.txt 100644 +/usr/lib/python3/site-packages/openxmllib-1.1.1-py3.9.egg-info 40755 +/usr/lib/python3/site-packages/openxmllib-1.1.1-py3.9.egg-info/PKG-INFO 100644 +/usr/lib/python3/site-packages/openxmllib-1.1.1-py3.9.egg-info/SOURCES.txt 100644 +/usr/lib/python3/site-packages/openxmllib-1.1.1-py3.9.egg-info/dependency_links.txt 100644 +/usr/lib/python3/site-packages/openxmllib-1.1.1-py3.9.egg-info/entry_points.txt 100644 +/usr/lib/python3/site-packages/openxmllib-1.1.1-py3.9.egg-info/not-zip-safe 100644 +/usr/lib/python3/site-packages/openxmllib-1.1.1-py3.9.egg-info/requires.txt 100644 +/usr/lib/python3/site-packages/openxmllib-1.1.1-py3.9.egg-info/top_level.txt 100644 /usr/lib/python3/site-packages/openxmllib/__init__.py 100644 /usr/lib/python3/site-packages/openxmllib/__pycache__ 40755 -/usr/lib/python3/site-packages/openxmllib/__pycache__/__init__.cpython-37.opt-1.pyc 100644 -/usr/lib/python3/site-packages/openxmllib/__pycache__/__init__.cpython-37.opt-2.pyc 100644 -/usr/lib/python3/site-packages/openxmllib/__pycache__/__init__.cpython-37.pyc 100644 -/usr/lib/python3/site-packages/openxmllib/__pycache__/contenttypes.cpython-37.opt-1.pyc 100644 -/usr/lib/python3/site-packages/openxmllib/__pycache__/contenttypes.cpython-37.opt-2.pyc 100644 -/usr/lib/python3/site-packages/openxmllib/__pycache__/contenttypes.cpython-37.pyc 100644 -/usr/lib/python3/site-packages/openxmllib/__pycache__/document.cpython-37.opt-1.pyc 100644 -/usr/lib/python3/site-packages/openxmllib/__pycache__/document.cpython-37.opt-2.pyc 100644 -/usr/lib/python3/site-packages/openxmllib/__pycache__/document.cpython-37.pyc 100644 -/usr/lib/python3/site-packages/openxmllib/__pycache__/namespaces.cpython-37.opt-1.pyc 100644 -/usr/lib/python3/site-packages/openxmllib/__pycache__/namespaces.cpython-37.opt-2.pyc 100644 -/usr/lib/python3/site-packages/openxmllib/__pycache__/namespaces.cpython-37.pyc 100644 -/usr/lib/python3/site-packages/openxmllib/__pycache__/presentation.cpython-37.opt-1.pyc 100644 -/usr/lib/python3/site-packages/openxmllib/__pycache__/presentation.cpython-37.opt-2.pyc 100644 -/usr/lib/python3/site-packages/openxmllib/__pycache__/presentation.cpython-37.pyc 100644 -/usr/lib/python3/site-packages/openxmllib/__pycache__/shell.cpython-37.opt-1.pyc 100644 -/usr/lib/python3/site-packages/openxmllib/__pycache__/shell.cpython-37.opt-2.pyc 100644 -/usr/lib/python3/site-packages/openxmllib/__pycache__/shell.cpython-37.pyc 100644 -/usr/lib/python3/site-packages/openxmllib/__pycache__/spreadsheet.cpython-37.opt-1.pyc 100644 -/usr/lib/python3/site-packages/openxmllib/__pycache__/spreadsheet.cpython-37.opt-2.pyc 100644 -/usr/lib/python3/site-packages/openxmllib/__pycache__/spreadsheet.cpython-37.pyc 100644 -/usr/lib/python3/site-packages/openxmllib/__pycache__/utils.cpython-37.opt-1.pyc 100644 -/usr/lib/python3/site-packages/openxmllib/__pycache__/utils.cpython-37.opt-2.pyc 100644 -/usr/lib/python3/site-packages/openxmllib/__pycache__/utils.cpython-37.pyc 100644 -/usr/lib/python3/site-packages/openxmllib/__pycache__/wordprocessing.cpython-37.opt-1.pyc 100644 -/usr/lib/python3/site-packages/openxmllib/__pycache__/wordprocessing.cpython-37.opt-2.pyc 100644 -/usr/lib/python3/site-packages/openxmllib/__pycache__/wordprocessing.cpython-37.pyc 100644 +/usr/lib/python3/site-packages/openxmllib/__pycache__/__init__.cpython-39.opt-1.pyc 100644 +/usr/lib/python3/site-packages/openxmllib/__pycache__/__init__.cpython-39.opt-2.pyc 100644 +/usr/lib/python3/site-packages/openxmllib/__pycache__/__init__.cpython-39.pyc 100644 +/usr/lib/python3/site-packages/openxmllib/__pycache__/contenttypes.cpython-39.opt-1.pyc 100644 +/usr/lib/python3/site-packages/openxmllib/__pycache__/contenttypes.cpython-39.opt-2.pyc 100644 +/usr/lib/python3/site-packages/openxmllib/__pycache__/contenttypes.cpython-39.pyc 100644 +/usr/lib/python3/site-packages/openxmllib/__pycache__/document.cpython-39.opt-1.pyc 100644 +/usr/lib/python3/site-packages/openxmllib/__pycache__/document.cpython-39.opt-2.pyc 100644 +/usr/lib/python3/site-packages/openxmllib/__pycache__/document.cpython-39.pyc 100644 +/usr/lib/python3/site-packages/openxmllib/__pycache__/namespaces.cpython-39.opt-1.pyc 100644 +/usr/lib/python3/site-packages/openxmllib/__pycache__/namespaces.cpython-39.opt-2.pyc 100644 +/usr/lib/python3/site-packages/openxmllib/__pycache__/namespaces.cpython-39.pyc 100644 +/usr/lib/python3/site-packages/openxmllib/__pycache__/presentation.cpython-39.opt-1.pyc 100644 +/usr/lib/python3/site-packages/openxmllib/__pycache__/presentation.cpython-39.opt-2.pyc 100644 +/usr/lib/python3/site-packages/openxmllib/__pycache__/presentation.cpython-39.pyc 100644 +/usr/lib/python3/site-packages/openxmllib/__pycache__/shell.cpython-39.opt-1.pyc 100644 +/usr/lib/python3/site-packages/openxmllib/__pycache__/shell.cpython-39.opt-2.pyc 100644 +/usr/lib/python3/site-packages/openxmllib/__pycache__/shell.cpython-39.pyc 100644 +/usr/lib/python3/site-packages/openxmllib/__pycache__/spreadsheet.cpython-39.opt-1.pyc 100644 +/usr/lib/python3/site-packages/openxmllib/__pycache__/spreadsheet.cpython-39.opt-2.pyc 100644 +/usr/lib/python3/site-packages/openxmllib/__pycache__/spreadsheet.cpython-39.pyc 100644 +/usr/lib/python3/site-packages/openxmllib/__pycache__/utils.cpython-39.opt-1.pyc 100644 +/usr/lib/python3/site-packages/openxmllib/__pycache__/utils.cpython-39.opt-2.pyc 100644 +/usr/lib/python3/site-packages/openxmllib/__pycache__/utils.cpython-39.pyc 100644 +/usr/lib/python3/site-packages/openxmllib/__pycache__/wordprocessing.cpython-39.opt-1.pyc 100644 +/usr/lib/python3/site-packages/openxmllib/__pycache__/wordprocessing.cpython-39.opt-2.pyc 100644 +/usr/lib/python3/site-packages/openxmllib/__pycache__/wordprocessing.cpython-39.pyc 100644 /usr/lib/python3/site-packages/openxmllib/contenttypes.py 100644 @@ -76,3 +76,2 @@ Requires: python3(os) < 0 -Requires: python3(pkg_resources) < 0 Requires: python3(re) < 0