<86>Apr 14 02:13:38 userdel[28792]: delete user 'rooter' <86>Apr 14 02:13:38 groupadd[28818]: group added to /etc/group: name=rooter, GID=621 <86>Apr 14 02:13:38 groupadd[28818]: group added to /etc/gshadow: name=rooter <86>Apr 14 02:13:38 groupadd[28818]: new group: name=rooter, GID=621 <86>Apr 14 02:13:38 useradd[28836]: new user: name=rooter, UID=621, GID=621, home=/root, shell=/bin/bash <86>Apr 14 02:13:38 userdel[28865]: delete user 'builder' <86>Apr 14 02:13:38 userdel[28865]: removed group 'builder' owned by 'builder' <86>Apr 14 02:13:38 userdel[28865]: removed shadow group 'builder' owned by 'builder' <86>Apr 14 02:13:38 groupadd[28881]: group added to /etc/group: name=builder, GID=622 <86>Apr 14 02:13:38 groupadd[28881]: group added to /etc/gshadow: name=builder <86>Apr 14 02:13:38 groupadd[28881]: new group: name=builder, GID=622 <86>Apr 14 02:13:38 useradd[28891]: new user: name=builder, UID=622, GID=622, home=/usr/src, shell=/bin/bash <13>Apr 14 02:13:42 rpmi: libexpat-2.2.4-alt0.M80P.1 1503871120 installed <13>Apr 14 02:13:42 rpmi: libgdbm-1.8.3-alt10 1454943313 installed <13>Apr 14 02:13:42 rpmi: libtinfo-devel-5.9-alt8 1456756459 installed <13>Apr 14 02:13:42 rpmi: libncurses-devel-5.9-alt8 1456756459 installed <13>Apr 14 02:13:42 rpmi: python-modules-curses-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 02:13:42 rpmi: libverto-0.2.6-alt1_6 1455633234 installed <13>Apr 14 02:13:42 rpmi: libkeyutils-1.5.10-alt0.M80P.2 p8+216694.100.6.1 1547827915 installed <13>Apr 14 02:13:42 rpmi: libcom_err-1.42.13-alt2 1449075846 installed <13>Apr 14 02:13:42 rpmi: ca-certificates-2016.02.25-alt1 1462368370 installed <13>Apr 14 02:13:42 rpmi: libcrypto10-1.0.2n-alt0.M80P.1 1512766129 installed <13>Apr 14 02:13:42 rpmi: libssl10-1.0.2n-alt0.M80P.1 1512766129 installed <86>Apr 14 02:13:42 groupadd[41703]: group added to /etc/group: name=_keytab, GID=499 <86>Apr 14 02:13:42 groupadd[41703]: group added to /etc/gshadow: name=_keytab <86>Apr 14 02:13:42 groupadd[41703]: new group: name=_keytab, GID=499 <13>Apr 14 02:13:42 rpmi: libkrb5-1.14.6-alt1.M80P.1 1525355673 installed <13>Apr 14 02:13:43 rpmi: python3-base-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 14 02:13:43 rpmi: python3-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 14 02:13:43 rpmi: python-modules-compiler-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 02:13:43 rpmi: rpm-build-python3-0.1.10.10-alt1.M80P.1 1530521451 installed <13>Apr 14 02:13:43 rpmi: libpython3-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 14 02:13:43 rpmi: python3-module-py-1.4.34-alt0.M80P.1 1503506764 installed <13>Apr 14 02:13:43 rpmi: python3-dev-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 14 02:13:43 rpmi: python-modules-email-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 02:13:43 rpmi: python3-module-pytest-3.2.1-alt0.M80P.1 1503499784 installed <13>Apr 14 02:13:43 rpmi: python3-module-setuptools-1:18.5-alt0.M80P.1 1497527461 installed <13>Apr 14 02:13:43 rpmi: python-modules-unittest-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 02:13:44 rpmi: python-modules-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 02:13:44 rpmi: python-modules-ctypes-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 02:13:44 rpmi: python-modules-encodings-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 02:13:44 rpmi: python-modules-multiprocessing-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 02:13:44 rpmi: python-modules-logging-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 02:13:44 rpmi: python-tools-2to3-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 02:13:44 rpmi: python-modules-xml-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 02:13:44 rpmi: python-modules-hotshot-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 02:13:44 rpmi: python-modules-bsddb-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 02:13:44 rpmi: python-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 02:13:44 rpmi: python-dev-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 02:13:44 rpmi: python-module-py-1.4.34-alt0.M80P.1 1503506764 installed <13>Apr 14 02:13:44 rpmi: python-modules-json-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 02:13:44 rpmi: python-module-pytest-3.2.1-alt0.M80P.1 1503499784 installed <13>Apr 14 02:13:44 rpmi: python-module-setuptools-1:18.5-alt0.M80P.1 1497527461 installed Installing python-module-genshi-0.7-alt1.1.1.1.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.68664 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf genshi-0.7 + echo 'Source #0 (genshi-0.7.tar):' Source #0 (genshi-0.7.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/genshi-0.7.tar + cd genshi-0.7 + /bin/chmod -c -Rf u+rwX,go-w . + rm -rf ../python3 + cp -a . ../python3 + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.68664 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd genshi-0.7 + CFLAGS='-pipe -Wall -g -O2' + export CFLAGS + CXXFLAGS='-pipe -Wall -g -O2' + export CXXFLAGS + FFLAGS='-pipe -Wall -g -O2' + export FFLAGS + /usr/bin/python2.7 setup.py build running build running build_py creating build creating build/lib.linux-x86_64-2.7 creating build/lib.linux-x86_64-2.7/genshi copying genshi/util.py -> build/lib.linux-x86_64-2.7/genshi copying genshi/path.py -> build/lib.linux-x86_64-2.7/genshi copying genshi/output.py -> build/lib.linux-x86_64-2.7/genshi copying genshi/input.py -> build/lib.linux-x86_64-2.7/genshi copying genshi/core.py -> build/lib.linux-x86_64-2.7/genshi copying genshi/compat.py -> build/lib.linux-x86_64-2.7/genshi copying genshi/builder.py -> build/lib.linux-x86_64-2.7/genshi copying genshi/__init__.py -> build/lib.linux-x86_64-2.7/genshi creating build/lib.linux-x86_64-2.7/genshi/filters copying genshi/filters/transform.py -> build/lib.linux-x86_64-2.7/genshi/filters copying genshi/filters/i18n.py -> build/lib.linux-x86_64-2.7/genshi/filters copying genshi/filters/html.py -> build/lib.linux-x86_64-2.7/genshi/filters copying genshi/filters/__init__.py -> build/lib.linux-x86_64-2.7/genshi/filters creating build/lib.linux-x86_64-2.7/genshi/template copying genshi/template/text.py -> build/lib.linux-x86_64-2.7/genshi/template copying genshi/template/plugin.py -> build/lib.linux-x86_64-2.7/genshi/template copying genshi/template/markup.py -> build/lib.linux-x86_64-2.7/genshi/template copying genshi/template/loader.py -> build/lib.linux-x86_64-2.7/genshi/template copying genshi/template/interpolation.py -> build/lib.linux-x86_64-2.7/genshi/template copying genshi/template/eval.py -> build/lib.linux-x86_64-2.7/genshi/template copying genshi/template/directives.py -> build/lib.linux-x86_64-2.7/genshi/template copying genshi/template/base.py -> build/lib.linux-x86_64-2.7/genshi/template copying genshi/template/astutil.py -> build/lib.linux-x86_64-2.7/genshi/template copying genshi/template/ast24.py -> build/lib.linux-x86_64-2.7/genshi/template copying genshi/template/_ast24.py -> build/lib.linux-x86_64-2.7/genshi/template copying genshi/template/__init__.py -> build/lib.linux-x86_64-2.7/genshi/template creating build/lib.linux-x86_64-2.7/genshi/tests copying genshi/tests/util.py -> build/lib.linux-x86_64-2.7/genshi/tests copying genshi/tests/path.py -> build/lib.linux-x86_64-2.7/genshi/tests copying genshi/tests/output.py -> build/lib.linux-x86_64-2.7/genshi/tests copying genshi/tests/input.py -> build/lib.linux-x86_64-2.7/genshi/tests copying genshi/tests/core.py -> build/lib.linux-x86_64-2.7/genshi/tests copying genshi/tests/builder.py -> build/lib.linux-x86_64-2.7/genshi/tests copying genshi/tests/__init__.py -> build/lib.linux-x86_64-2.7/genshi/tests creating build/lib.linux-x86_64-2.7/genshi/filters/tests copying genshi/filters/tests/transform.py -> build/lib.linux-x86_64-2.7/genshi/filters/tests copying genshi/filters/tests/test_html.py -> build/lib.linux-x86_64-2.7/genshi/filters/tests copying genshi/filters/tests/i18n.py -> build/lib.linux-x86_64-2.7/genshi/filters/tests copying genshi/filters/tests/__init__.py -> build/lib.linux-x86_64-2.7/genshi/filters/tests creating build/lib.linux-x86_64-2.7/genshi/template/tests copying genshi/template/tests/text.py -> build/lib.linux-x86_64-2.7/genshi/template/tests copying genshi/template/tests/plugin.py -> build/lib.linux-x86_64-2.7/genshi/template/tests copying genshi/template/tests/markup.py -> build/lib.linux-x86_64-2.7/genshi/template/tests copying genshi/template/tests/loader.py -> build/lib.linux-x86_64-2.7/genshi/template/tests copying genshi/template/tests/interpolation.py -> build/lib.linux-x86_64-2.7/genshi/template/tests copying genshi/template/tests/eval.py -> build/lib.linux-x86_64-2.7/genshi/template/tests copying genshi/template/tests/directives.py -> build/lib.linux-x86_64-2.7/genshi/template/tests copying genshi/template/tests/base.py -> build/lib.linux-x86_64-2.7/genshi/template/tests copying genshi/template/tests/__init__.py -> build/lib.linux-x86_64-2.7/genshi/template/tests creating build/lib.linux-x86_64-2.7/genshi/template/tests/templates copying genshi/template/tests/templates/__init__.py -> build/lib.linux-x86_64-2.7/genshi/template/tests/templates running build_ext building 'genshi._speedups' extension creating build/temp.linux-x86_64-2.7 creating build/temp.linux-x86_64-2.7/genshi x86_64-alt-linux-gcc -pthread -DNDEBUG -pipe -Wall -g -O3 -pipe -Wall -g -O2 -fPIC -I/usr/include/python2.7 -c genshi/_speedups.c -o build/temp.linux-x86_64-2.7/genshi/_speedups.o genshi/_speedups.c: In function 'init_speedups': genshi/_speedups.c:696:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] Py_INCREF(&MarkupType); ^ x86_64-alt-linux-gcc -pthread -shared -pipe -Wall -g -O2 build/temp.linux-x86_64-2.7/genshi/_speedups.o -lpython2.7 -o build/lib.linux-x86_64-2.7/genshi/_speedups.so + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/genshi-0.7 + find -type f -name '*.py' -exec 2to3 -w '{}' + RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: Refactored ./setup.py RefactoringTool: Refactored ./scripts/ast_generator.py RefactoringTool: Refactored ./genshi/util.py RefactoringTool: No changes to ./genshi/tests/util.py RefactoringTool: Refactored ./genshi/tests/path.py --- ./setup.py (original) +++ ./setup.py (refactored) @@ -56,11 +56,11 @@ self._unavailable(e) def _unavailable(self, exc): - print('*' * 70) + print(('*' * 70)) print("""WARNING: An optional C extension could not be compiled, speedups will not be available.""") - print('*' * 70) + print(('*' * 70)) print(exc) --- ./scripts/ast_generator.py (original) +++ ./scripts/ast_generator.py (refactored) @@ -23,12 +23,12 @@ bnames.append("%s" % base.__name__) else: bnames.append("%s.%s" % (base.__module__,base.__name__)) - print("class %s(%s):" % (cls.__name__, ", ".join(bnames))) + print(("class %s(%s):" % (cls.__name__, ", ".join(bnames)))) written = False for attr in cls.__dict__: if attr not in IGNORE_ATTRS: written = True - print("\t%s = %s" % (attr, repr(cls.__dict__[attr]),)) + print(("\t%s = %s" % (attr, repr(cls.__dict__[attr]),))) if not written: print("\tpass") done.add(cls) @@ -36,11 +36,11 @@ print('# Generated automatically, please do not edit') print('# Generator can be found in Genshi SVN, scripts/ast_generator.py') print('') -print('__version__ = %s' % _ast.__version__) +print(('__version__ = %s' % _ast.__version__)) print('') for name in dir(_ast): cls = getattr(_ast, name) if cls.__class__ is type: print_class(cls) - print + print() --- ./genshi/util.py (original) +++ ./genshi/util.py (refactored) @@ -13,10 +13,10 @@ """Various utility classes and functions.""" -import htmlentitydefs as entities +import html.entities as entities import re -from compat import any, all, stringrepr +from .compat import any, all, stringrepr __docformat__ = 'restructuredtext en' @@ -193,17 +193,17 @@ >>> stripentities('1 < 2') u'1 < 2' >>> stripentities('more …') - u'more \u2026' + u'more \\u2026' >>> stripentities('…') - u'\u2026' + u'\\u2026' >>> stripentities('…') - u'\u2026' + u'\\u2026' If the `keepxmlentities` parameter is provided and is a truth value, the core XML entities (&, ', >, < and ") are left intact. >>> stripentities('1 < 2 …', keepxmlentities=True) - u'1 < 2 \u2026' + u'1 < 2 \\u2026' """ def _replace_entity(match): if match.group(1): # numeric entity @@ -212,13 +212,13 @@ ref = int(ref[1:], 16) else: ref = int(ref, 10) - return unichr(ref) + return chr(ref) else: # character entity ref = match.group(2) if keepxmlentities and ref in ('amp', 'apos', 'gt', 'lt', 'quot'): return '&%s;' % ref try: - return unichr(entities.name2codepoint[ref]) + return chr(entities.name2codepoint[ref]) except KeyError: if keepxmlentities: return '&%s;' % ref --- ./genshi/tests/path.py (original) +++ ./genshi/tests/path.py (refactored) @@ -635,21 +635,21 @@ return strategy_class.supports(path) def test_simple_strategy_support(self): - self.assert_(self._test_support(SimplePathStrategy, 'a/b')) - self.assert_(self._test_support(SimplePathStrategy, 'self::a/b')) - self.assert_(self._test_support(SimplePathStrategy, 'descendant::a/b')) - self.assert_(self._test_support(SimplePathStrategy, + self.assertTrue(self._test_support(SimplePathStrategy, 'a/b')) + self.assertTrue(self._test_support(SimplePathStrategy, 'self::a/b')) + self.assertTrue(self._test_support(SimplePathStrategy, 'descendant::a/b')) + self.assertTrue(self._test_support(SimplePathStrategy, 'descendant-or-self::a/b')) - self.assert_(self._test_support(SimplePathStrategy, '//a/b')) - self.assert_(self._test_support(SimplePathStrategy, 'a/@b')) - self.assert_(selfRefactoringTool: Refactored ./genshi/tests/output.py RefactoringTool: Refactored ./genshi/tests/input.py ._test_support(SimplePathStrategy, 'a/text()')) + self.assertTrue(self._test_support(SimplePathStrategy, '//a/b')) + self.assertTrue(self._test_support(SimplePathStrategy, 'a/@b')) + self.assertTrue(self._test_support(SimplePathStrategy, 'a/text()')) # a//b is a/descendant-or-self::node()/b - self.assert_(not self._test_support(SimplePathStrategy, 'a//b')) - self.assert_(not self._test_support(SimplePathStrategy, 'node()/@a')) - self.assert_(not self._test_support(SimplePathStrategy, '@a')) - self.assert_(not self._test_support(SimplePathStrategy, 'foo:bar')) - self.assert_(not self._test_support(SimplePathStrategy, 'a/@foo:bar')) + self.assertTrue(not self._test_support(SimplePathStrategy, 'a//b')) + self.assertTrue(not self._test_support(SimplePathStrategy, 'node()/@a')) + self.assertTrue(not self._test_support(SimplePathStrategy, '@a')) + self.assertTrue(not self._test_support(SimplePathStrategy, 'foo:bar')) + self.assertTrue(not self._test_support(SimplePathStrategy, 'a/@foo:bar')) def _test_strategies(self, input, path, output, namespaces=None, variables=None): --- ./genshi/tests/output.py (original) +++ ./genshi/tests/output.py (refactored) @@ -356,7 +356,7 @@ """, output) def test_html5_doctype(self): - stream = HTML(u'') + stream = HTML('') output = stream.render(XHTMLSerializer, doctype=DocType.HTML5, encoding=None) self.assertEqual('\n', output) @@ -369,7 +369,7 @@ def test_cache_markup(self): loc = (None, -1, -1) stream = Stream([(Stream.START, (QName('foo'), Attrs()), loc), - (Stream.TEXT, u'…', loc), + (Stream.TEXT, '…', loc), (Stream.END, QName('foo'), loc), (Stream.START, (QName('bar'), Attrs()), loc), (Stream.TEXT, Markup('…'), loc), @@ -444,7 +444,7 @@ """, output) def test_html5_doctype(self): - stream = HTML(u'') + stream = HTML('') output = stream.render(HTMLSerializer, doctype=DocType.HTML5, encoding=None) self.assertEqual('\n', output) --- ./genshi/tests/input.py (original) +++ ./genshi/tests/input.py (refactored) @@ -51,27 +51,27 @@ self.assertEqual(('class', 'bar'), attrib[2]) def test_unicode_input(self): - text = u'
\u2013
' - events = list(XMLParser(StringIO(text))) - kind, data, pos = events[1] - self.assertEqual(Stream.TEXT, kind) - self.assertEqual(u'\u2013', data) + text = '
\u2013
' + events = list(XMLParser(StringIO(text))) + kind, data, pos = events[1] + self.assertEqual(Stream.TEXT, kind) + self.assertEqual('\u2013', data) def test_latin1_encoded(self): - text = u'
\xf6
'.encode('iso-8859-1') + text = '
\xf6
'.encode('iso-8859-1') events = list(XMLParser(BytesIO(text), encoding='iso-8859-1')) kind, data, pos = events[1] self.assertEqual(Stream.TEXT, kind) - self.assertEqual(u'\xf6', data) + self.assertEqual('\xf6', data) def test_latin1_encoded_xmldecl(self): - text = u""" + text = """
\xf6
""".encode('iso-8859-1') events = list(XMLParser(BytesIO(text))) kind, data, pos = events[2] self.assertEqual(Stream.TEXT, kind) - self.assertEqual(u'\xf6', data) + self.assertEqual('\xf6', data) def test_html_entity_with_dtd(self): text = """ ' events = list(XMLParser(StringIO(text))) kind, data, pos = events[1] self.assertEqual(Stream.TEXT, kind) - self.assertEqual(u'\xa0', data) + self.assertEqual('\xa0', data) def test_html_entity_in_attribute(self): text = '

' events = list(XMLParser(StringIO(text))) kind, data, pos = events[0] self.assertEqual(Stream.START, kind) - self.assertEqual(u'\xa0', data[1].get('title')) + self.assertEqual('\xa0', data[1].get('title')) kind, data, pos = events[1] self.assertEqual(Stream.END, kind) @@ -116,7 +116,7 @@ class HTMLParserTestCase(unittest.TestCase): def test_text_node_pos_single_line(self): - text = u'foo bar' + text = 'foo bar' events = list(HTMLParser(StringIO(text))) kind, data, pos = events[1] self.assertEqual(Stream.TEXT, kind) @@ -124,7 +124,7 @@ self.assertEqual((None, 1, 6), pos) def test_text_node_pos_multi_line(self): - text = u'''foo + text = '''foo bar''' events = list(HTMLParser(StringIO(text))) kind, data, pos = events[1] @@ -133,44 +133,44 @@ self.assertEqual((None, 1, 6), pos) def test_input_encoding_text(self): - text = u'

\xf6
'.encode('iso-8859-1') + text = '
\xf6
'.encode('iso-8859-1') events = list(HTMLParser(BytesIO(text), encoding='iso-8859-1')) kind, data, pos = events[1] self.assertEqual(Stream.TEXT, kind) - self.assertEqual(u'\xf6', data) + self.assertEqual('\xf6', data) def test_input_encoding_attribute(self): - text = u'
'.encode('iso-8859-1') + text = '
'.encode('iso-8859-1') events = list(HTMLParser(BytesIO(text), encoding='iso-8859-1')) kind, (tag, attrib), pos = events[0] self.assertEqual(Stream.START, kind) - self.assertEqual(u'\xf6', attrib.get('title')) + self.assertEqual('\xf6', attrib.get('title')) def test_unicode_input(self): - text = u'
\u2013
' - events = list(HTMLParser(StringIO(text))) - kind, data, pos = events[1] - self.assertEqual(Stream.TEXT, kind) - self.assertEqual(u'\u2013', data) + text = '
\u2013
' + events = list(HTMLParser(StringIO(text))) + kind, data, pos = events[1] + self.assertEqual(Stream.TEXT, kind) + self.assertEqual('\u2013', data) def test_html_entity_in_attribute(self): - text = u'

' + text = '

' events = list(HTMLParser(StringIO(text))) kind, data, pos = events[0] self.assertEqual(Stream.START, kind) - self.assertEqual(u'\xa0', data[1].get('title')) + self.assertEqual('\xa0', data[1].get('title')) kind, data, pos = events[1] self.assertEqual(Stream.END, kind) def test_html_entity_in_text(self): - text = u'

 

' - events = list(HTMLParser(StringIO(text))) - kind, data, pos = events[1] - self.assertEqual(Stream.TEXT, kind) - self.assertEqual(u'\xa0', data) + text = '

 

' + events = list(HTMLParser(StringIO(text))) + kind, data, pos = events[1] + self.assertEqual(Stream.TEXT, kind) + self.assertEqual('\xa0', data) def test_processing_instruction(self): - text = u'' + text = '' events = list(HTMLParser(StringIO(text))) kind, (target, data), pos = events[0] self.assertEqual(Stream.PI, kind) @@ -178,7 +178,7 @@ self.assertEqRefactoringTool: Refactored ./genshi/tests/core.py WARNING: couldn't encode ./genshi/tests/core.py's diff for your terminal RefactoringTool: No changes to ./genshi/tests/builder.py RefactoringTool: No changes to ./genshi/tests/__init__.py RefactoringTool: Refactored ./genshi/template/text.py ual('echo "Foobar"', data) def test_processing_instruction_no_data_1(self): - text = u'' + text = '' events = list(HTMLParser(StringIO(text))) kind, (target, data), pos = events[0] self.assertEqual(Stream.PI, kind) @@ -186,7 +186,7 @@ self.assertEqual('', data) def test_processing_instruction_no_data_2(self): - text = u'...' + text = '...' events = list(HTMLParser(StringIO(text))) kind, (target, data), pos = events[0] self.assertEqual(Stream.PI, kind) @@ -224,7 +224,7 @@ self.assertEqual(1, standalone) def test_processing_instruction_trailing_qmark(self): - text = u'' + text = '' events = list(HTMLParser(StringIO(text))) kind, (target, data), pos = events[0] self.assertEqual(Stream.PI, kind) @@ -232,7 +232,7 @@ self.assertEqual('echo "Foobar" ?', data) def test_out_of_order_tags1(self): - text = u'Foobar' + text = 'Foobar' events = list(HTMLParser(StringIO(text))) self.assertEqual(5, len(events)) self.assertEqual((Stream.START, ('span', ())), events[0][:2]) @@ -242,7 +242,7 @@ self.assertEqual((Stream.END, 'span'), events[4][:2]) def test_out_of_order_tags2(self): - text = u'Foobar'.encode('utf-8') + text = 'Foobar'.encode('utf-8') events = list(HTMLParser(BytesIO(text), encoding='utf-8')) self.assertEqual(7, len(events)) self.assertEqual((Stream.START, ('span', Attrs([('class', 'baz')]))), @@ -255,7 +255,7 @@ self.assertEqual((Stream.END, 'span'), events[6][:2]) def test_out_of_order_tags3(self): - text = u'Foobar'.encode('utf-8') + text = 'Foobar'.encode('utf-8') events = list(HTMLParser(BytesIO(text), encoding='utf-8')) self.assertEqual(5, len(events)) self.assertEqual((Stream.START, ('span', ())), events[0][:2]) @@ -265,7 +265,7 @@ self.assertEqual((Stream.END, 'span'), events[4][:2]) def test_hex_charref(self): - text = u''' + text = ''' events = list(HTMLParser(StringIO(text))) self.assertEqual(3, len(events)) self.assertEqual((Stream.START, ('span', ())), events[0][:2]) @@ -273,7 +273,7 @@ self.assertEqual((Stream.END, 'span'), events[2][:2]) def test_multibyte_character_on_chunk_boundary(self): - text = u'a' * ((4 * 1024) - 1) + u'\xe6' + text = 'a' * ((4 * 1024) - 1) + '\xe6' events = list(HTMLParser(BytesIO(text.encode('utf-8')), encoding='utf-8')) self.assertEqual(1, len(events)) --- ./genshi/tests/core.py (original) +++ ./genshi/tests/core.py (refactored) @@ -25,28 +25,28 @@ def test_render_utf8(self): --- ./genshi/template/text.py (original) +++ ./genshi/template/text.py (refactored) @@ -162,7 +162,7 @@ depth = 0 source = source.read() - if not isinstance(source, unicode): + if not isinstance(source, str): source = source.decode(encoding or 'utf-8', 'replace') offset = 0 lineno = 1 @@ -201,7 +201,7 @@ try: suite = Suite(value, self.filepath, lineno, lookup=self.lookup) - except SyntaxError, err: + except SyntaxError as err: raise TemplateSyntaxError(err, self.filepath, lineno + (err.lineno or 1) - 1) pos = (self.filename, lineno, 0) @@ -279,7 +279,7 @@ depth = 0 source = source.read() - if not isinstance(source, unicode): + if not isinstance(source, str): RefactoringTool: Refactored ./genshi/template/tests/text.py source = source.decode(encoding or 'utf-8', 'replace') offset = 0 lineno = 1 --- ./genshi/template/tests/text.py (original) +++ ./genshi/template/tests/text.py (refactored) @@ -52,15 +52,15 @@ self.assertEqual('\n', tmpl.generate(foo=False).render(encoding=None)) def test_latin1_encoded(self): - text = u'$foo\xf6$bar'.encode('iso-8859-1') + text = '$foo\xf6$bar'.encode('iso-8859-1') tmpl = OldTextTemplate(text, encoding='iso-8859-1') - self.assertEqual(u'x\xf6y', + self.assertEqual('x\xf6y', tmpl.generate(foo='x', bar='y').render(encoding=None)) def test_unicode_input(self): - text = u'$foo\xf6$bar' + text = '$foo\xf6$bar' tmpl = OldTextTemplate(text) - self.assertEqual(u'x\xf6y', + self.assertEqual('x\xf6y', tmpl.generate(foo='x', bar='y').render(encoding=None)) def test_empty_lines1(self): @@ -74,7 +74,7 @@ * 0 * 1 * 2 -""", tmpl.generate(items=range(3)).render(encoding=None)) +""", tmpl.generate(items=list(range(3))).render(encoding=None)) def test_empty_lines2(self): tmpl = OldTextTemplate("""Your items: @@ -91,18 +91,18 @@ * 2 -""", tmpl.generate(items=range(3)).render(encoding=None)) +""", tmpl.generate(items=list(range(3))).render(encoding=None)) def test_include(self): file1 = open(os.path.join(self.dirname, 'tmpl1.txt'), 'wb') try: - file1.write(u"Included\n".encode("utf-8")) + file1.write("Included\n".encode("utf-8")) finally: file1.close() file2 = open(os.path.join(self.dirname, 'tmpl2.txt'), 'wb') try: - file2.write(u"""----- Included data below this line ----- + file2.write("""----- Included data below this line ----- #include tmpl1.txt ----- Included data above this line -----""".encode("utf-8")) finally: @@ -147,15 +147,15 @@ self.assertEqual('\n', tmpl.generate(foo=False).render(encoding=None)) def test_latin1_encoded(self): - text = u'$foo\xf6$bar'.encode('iso-8859-1') + text = '$foo\xf6$bar'.encode('iso-8859-1') tmpl = NewTextTemplate(text, encoding='iso-8859-1') - self.assertEqual(u'x\xf6y', + self.assertEqual('x\xf6y', tmpl.generate(foo='x', bar='y').render(encoding=None)) def test_unicode_input(self): - text = u'$foo\xf6$bar' + text = '$foo\xf6$bar' tmpl = NewTextTemplate(text) - self.assertEqual(u'x\xf6y', + self.assertEqual('x\xf6y', tmpl.generate(foo='x', bar='y').render(encoding=None)) def test_empty_lines1(self): @@ -169,7 +169,7 @@ * 0 * 1 * 2 -""", tmpl.generate(items=range(3)).render(encoding=None)) +""", tmpl.generate(items=list(range(3))).render(encoding=None)) def test_empty_lines2(self): tmpl = NewTextTemplate("""Your items: @@ -186,7 +186,7 @@ * 2 -""", tmpl.generate(items=range(3)).render(encoding=None)) +""", tmpl.generate(items=list(range(3))).render(encoding=None)) def test_exec_with_trailing_space(self): """ @@ -221,13 +221,13 @@ def test_include(self): file1 = open(os.path.join(self.dirname, 'tmpl1.txt'), 'wb') try: - file1.write(u"Included".encode("utf-8")) + file1.write("Included".encode("utf-8")) finally: file1.close() file2 = open(os.path.join(self.dirname, 'tmpl2.txt'), 'wb') try: - file2.write(u"""----- Included data below this line ----- + file2.write("""----- Included data below this line ----- {% include tmpl1.txt %} ----- Included data above this line -----""".encode("utf-8")) finally: @@ -243,13 +243,13 @@ def test_include_expr(self): file1 = open(os.path.join(self.dirname, 'tmpl1.txt'), 'wb') try: - file1.write(u"Included".encode("utf-8"RefactoringTool: Refactored ./genshi/template/tests/plugin.py RefactoringTool: Refactored ./genshi/template/tests/markup.py RefactoringTool: Refactored ./genshi/template/tests/loader.py )) + file1.write("Included".encode("utf-8")) finally: file1.close() file2 = open(os.path.join(self.dirname, 'tmpl2.txt'), 'wb') try: - file2.write(u"""----- Included data below this line ----- + file2.write("""----- Included data below this line ----- {% include ${'%s.txt' % ('tmpl1',)} %} ----- Included data above this line -----""".encode("utf-8")) finally: --- ./genshi/template/tests/plugin.py (original) +++ ./genshi/template/tests/plugin.py (refactored) @@ -165,7 +165,7 @@ def test_helper_functions(self): plugin = MarkupTemplateEnginePlugin() tmpl = plugin.load_template(PACKAGE + '.templates.functions') - output = plugin.render({'snippet': u'Foo'}, template=tmpl) + output = plugin.render({'snippet': 'Foo'}, template=tmpl) self.assertEqual("""
False bar --- ./genshi/template/tests/markup.py (original) +++ ./genshi/template/tests/markup.py (refactored) @@ -83,7 +83,7 @@ xml = '

' try: tmpl = MarkupTemplate(xml, filename='test.html') - except BadDirectiveError, e: + except BadDirectiveError as e: self.assertEqual('test.html', e.filename) self.assertEqual(1, e.lineno) @@ -92,7 +92,7 @@ try: tmpl = MarkupTemplate(xml, filename='test.html').generate() self.fail('Expected TemplateSyntaxError') - except TemplateSyntaxError, e: + except TemplateSyntaxError as e: self.assertEqual('test.html', e.filename) self.assertEqual(1, e.lineno) @@ -103,7 +103,7 @@ try: tmpl = MarkupTemplate(xml, filename='test.html') self.fail('Expected TemplateSyntaxError') - except TemplateSyntaxError, e: + except TemplateSyntaxError as e: self.assertEqual('test.html', e.filename) self.assertEqual(2, e.lineno) @@ -116,7 +116,7 @@ try: tmpl = MarkupTemplate(xml, filename='test.html') self.fail('Expected TemplateSyntaxError') - except TemplateSyntaxError, e: + except TemplateSyntaxError as e: self.assertEqual('test.html', e.filename) self.assertEqual(3, e.lineno) @@ -190,21 +190,21 @@

""", str(tmpl.generate())) def test_latin1_encoded_with_xmldecl(self): - tmpl = MarkupTemplate(u""" + tmpl = MarkupTemplate("""
\xf6
""".encode('iso-8859-1'), encoding='iso-8859-1') - self.assertEqual(u"""\n
+ self.assertEqual("""\n
\xf6 -
""", unicode(tmpl.generate())) +
""", str(tmpl.generate())) def test_latin1_encoded_explicit_encoding(self): - tmpl = MarkupTemplate(u"""
+ tmpl = MarkupTemplate("""
\xf6
""".encode('iso-8859-1'), encoding='iso-8859-1') - self.assertEqual(u"""
+ self.assertEqual("""
\xf6 -
""", unicode(tmpl.generate())) +
""", str(tmpl.generate())) def test_exec_with_trailing_space(self): """ @@ -593,7 +593,7 @@ tmpl = MarkupTemplate(xml, filename='test.html', allow_exec=False) self.fail('Expected SyntaxError') - except TemplateSyntaxError, e: + except TemplateSyntaxError as e: pass def test_allow_exec_true(self): --- ./genshi/template/tests/loader.py (original) +++ ./genshi/template/tests/loader.py (refactored) @@ -372,7 +372,7 @@ def test_load_with_default_encoding(self): RefactoringTool: Refactored ./genshi/template/tests/interpolation.py RefactoringTool: Refactored ./genshi/template/tests/eval.py WARNING: couldn't encode ./genshi/template/tests/eval.py's diff for your terminal RefactoringTool: Refactored ./genshi/template/tests/directives.py f = open(os.path.join(self.dirname, 'tmpl.html'), 'wb') try: - f.write(u'
\xf6
'.encode('iso-8859-1')) + f.write('
\xf6
'.encode('iso-8859-1')) finally: f.close() loader = TemplateLoader([self.dirname], default_encoding='iso-8859-1') @@ -381,7 +381,7 @@ def test_load_with_explicit_encoding(self): f = open(os.path.join(self.dirname, 'tmpl.html'), 'wb') try: - f.write(u'
\xf6
'.encode('iso-8859-1')) + f.write('
\xf6
'.encode('iso-8859-1')) finally: f.close() loader = TemplateLoader([self.dirname], default_encoding='utf-8') --- ./genshi/template/tests/interpolation.py (original) +++ ./genshi/template/tests/interpolation.py (refactored) @@ -131,7 +131,7 @@ def test_interpolate_full_mismatched_brackets(self): try: list(interpolate('${{1:2}')) - except TemplateSyntaxError, e: + except TemplateSyntaxError as e: pass else: self.fail('Expected TemplateSyntaxError') --- ./genshi/template/tests/eval.py (original) +++ ./genshi/template/tests/eval.py (refactored) @@ -58,34 +58,34 @@ def test_str_literal(self): self.assertEqual('foo', Expression('"foo"').evaluate({})) self.assertEqual('foo', Expression('"""foo"""').evaluate({})) - self.assertEqual(u'foo'.encode('utf-8'), + self.assertEqual('foo'.encode('utf-8'), Expression(wrapped_bytes("b'foo'")).evaluate({})) self.assertEqual('foo', Expression("'''foo'''").evaluate({})) self.assertEqual('foo', Expression("u'foo'").evaluate({})) self.assertEqual('foo', Expression("r'foo'").evaluate({})) def test_str_literal_non_ascii(self): - expr = Expression(u"u'\xfe'") --- ./genshi/template/tests/directives.py (original) +++ ./genshi/template/tests/directives.py (refactored) @@ -426,7 +426,7 @@ 3 4 5 - """, tmpl.generate(items=range(1, 6)).render(encoding=None)) + """, tmpl.generate(items=list(range(1, 6))).render(encoding=None)) def test_as_element(self): """ @@ -443,7 +443,7 @@ 3 4 5 - """, tmpl.generate(items=range(1, 6)).render(encoding=None)) + """, tmpl.generate(items=list(range(1, 6))).render(encoding=None)) def test_multi_assignment(self): """ @@ -487,7 +487,7 @@ try: list(tmpl.generate(foo=12)) self.fail('Expected TemplateRuntimeError') - except TypeError, e: + except TypeError as e: assert (str(e) == "iteration over non-sequence" or str(e) == "'int' object is not iterable") exc_type, exc_value, exc_traceback = sys.exc_info() @@ -513,7 +513,7 @@ """, filename='test.html').generate() self.fail('ExpectedTemplateSyntaxError') - except TemplateSyntaxError, e: + except TemplateSyntaxError as e: self.assertEqual('test.html', e.filename) if sys.version_info[:2] > (2,4): self.assertEqual(2, e.lineno) @@ -1050,7 +1050,7 @@ Foo """, filename='test.html').generate() self.fail('Expected TemplateSyntaxError') - except TemplateSyntaxError, e: + except TemplateSyntaxError as e: self.assertEqual('test.html', e.filename) self.assertEqual(2, e.lineno) @@ -1068,7 +1068,7 @@ Foo """, filename='test.html').generate() self.fail('Expected TemplateSyntaxError') - except TemplateSyntaxError, e: + except TemplateSyntaxError as e: self.assertEqual('test.html', e.filename) self.assertEqual(2, e.lineno) @@ -1190,12 +1190,12 @@ WARNING: couldn't encode ./genshi/template/tests/directives.py's diff for your terminal RefactoringTool: No changes to ./genshi/template/tests/base.py RefactoringTool: No changes to ./genshi/template/tests/__init__.py RefactoringTool: Refactored ./genshi/template/plugin.py RefactoringTool: Refactored ./genshi/template/markup.py RefactoringTool: Refactored ./genshi/template/loader.py RefactoringTool: Refactored ./genshi/template/interpolation.py RefactoringTool: Refactored ./genshi/template/eval.py
""", tmpl.generate(foo={'bar': 42}).render(encoding=None)) def test_unicode_expr(self): - tmpl = MarkupTemplate(u"""
+ tmpl = MarkupTemplate("""
--- ./genshi/template/plugin.py (original) +++ ./genshi/template/plugin.py (refactored) @@ -46,7 +46,7 @@ self.default_encoding = options.get('genshi.default_encoding', None) auto_reload = options.get('genshi.auto_reload', '1') - if isinstance(auto_reload, basestring): + if isinstance(auto_reload, str): auto_reload = auto_reload.lower() in ('1', 'on', 'yes', 'true') search_path = [p for p in options.get('genshi.search_path', '').split(':') if p] @@ -168,7 +168,7 @@ options = {} new_syntax = options.get('genshi.new_text_syntax') - if isinstance(new_syntax, basestring): + if isinstance(new_syntax, str): new_syntax = new_syntax.lower() in ('1', 'on', 'yes', 'true') if new_syntax: self.template_class = NewTextTemplate --- ./genshi/template/markup.py (original) +++ ./genshi/template/markup.py (refactored) @@ -93,7 +93,7 @@ try: suite = Suite(data[1], self.filepath, pos[1], lookup=self.lookup) - except SyntaxError, err: + except SyntaxError as err: raise TemplateSyntaxError(err, self.filepath, pos[1] + (err.lineno or 1) - 1, pos[2] + (err.offset or 0)) @@ -310,7 +310,7 @@ def _strip(stream, append): depth = 1 - next = stream.next + next = stream.__next__ while 1: event = next() if event[0] is START: --- ./genshi/template/loader.py (original) +++ ./genshi/template/loader.py (refactored) @@ -217,7 +217,7 @@ raise TemplateError('Search path for templates not configured') for loadfunc in search_path: - if isinstance(loadfunc, basestring): + if isinstance(loadfunc, str): loadfunc = directory(loadfunc) try: filepath, filename, fileobj, uptodate = loadfunc(filename) @@ -327,9 +327,9 @@ :rtype: ``function`` """ def _dispatch_by_prefix(filename): - for prefix, delegate in delegates.items(): + for prefix, delegate in list(delegates.items()): if filename.startswith(prefix): - if isinstance(delegate, basestring): + if isinstance(delegate, str): delegate = directory(delegate) filepath, _, fileobj, uptodate = delegate( filename[len(prefix):].lstrip('/\\') --- ./genshi/template/interpolation.py (original) +++ ./genshi/template/interpolation.py (refactored) @@ -77,7 +77,7 @@ expr = Expression(chunk.strip(), pos[0], pos[1], lookup=lookup) yield EXPR, expr, tuple(pos) - except SyntaxError, err: + except SyntaxError as err: raise TemplateSyntaxError(err, filepath, pos[1], pos[2] + (err.offset or 0)) else: --- ./genshi/template/eval.py (original) +++ ./genshi/template/eval.py (refactored) @@ -13,7 +13,7 @@ """Support for "safe" evaluation of Python expressions.""" -import __builtin__ +import builtins from textwrap import dedent from types import CodeType @@ -36,7 +36,7 @@ try: class _FakeMapping(object): __getitem__ = __setitem__ = lambda *a: None - exec 'from sys import *' in {}, _FakeMapping() + exec('from sys import *', {}, _FakeMapping()) except SystemError: has_star_import_bug = True del _FakeMapping @@ -74,7 +74,RefactoringTool: Refactored ./genshi/template/directives.py 7 @@ if `None`, the appropriate transformation is chosen depending on the mode """ - if isinstance(source, basestring): + if isinstance(source, str): self.source = source node = _parse(source, mode=self.mode) else: @@ -93,13 +93,13 @@ filename=filename, lineno=lineno, xform=xform) if lookup is None: lookup = LenientLookup - elif isinstance(lookup, basestring): + elif isinstance(lookup, str): lookup = {'lenient': LenientLookup, 'strict': StrictLookup}[lookup] self._globals = lookup.globals def __getstate__(self): state = {'source': self.source, 'ast': self.ast, - 'lookup': self._globals.im_self} + 'lookup': self._globals.__self__} state['code'] = get_code_params(self.code) return state @@ -195,7 +195,7 @@ """ __traceback_hide__ = 'before_and_this' _globals = self._globals(data) - exec self.code in _globals, data + exec(self.code, _globals, data) UNDEFINED = object() @@ -263,7 +263,7 @@ def __iter__(self): return iter([]) - def __nonzero__(self): + def __bool__(self): return False def __repr__(self): @@ -332,8 +332,8 @@ key = key[0] try: return obj[key] - except (AttributeError, KeyError, IndexError, TypeError), e: - if isinstance(key, basestring): + except (AttributeError, KeyError, IndexError, TypeError) as e: + if isinstance(key, str): val = getattr(obj, key, UNDEFINED) if val is UNDEFINED: val = cls.undefined(key, owner=obj) @@ -423,8 +423,8 @@ if first.rstrip().endswith(':') and not rest[0].isspace(): rest = '\n'.join([' %s' % line for line in rest.splitlines()]) source = '\n'.join([first, rest]) - if isinstance(source, unicode): - source = (u'\ufeff' + source).encode('utf-8') + if isinstance(source, str): + source = ('\ufeff' + source).encode('utf-8') return parse(source, mode) @@ -434,11 +434,11 @@ filename = '' if IS_PYTHON2: # Python 2 requires non-unicode filenames - if isinstance(filename, unicode): + if isinstance(filename, str): filename = filename.encode('utf-8', 'replace') else: # Python 3 requires unicode filenames - if not isinstance(filename, unicode): + if not isinstance(filename, str): filename = filename.decode('utf-8', 'replace') if lineno <= 0: lineno = 1 @@ -482,7 +482,7 @@ return ret -BUILTINS = __builtin__.__dict__.copy() +BUILTINS = builtins.__dict__.copy() BUILTINS.update({'Markup': Markup, 'Undefined': Undefined}) CONSTANTS = frozenset(['False', 'True', 'None', 'NotImplemented', 'Ellipsis']) @@ -520,7 +520,7 @@ return names def visit_Str(self, node): - if not isinstance(node.s, unicode): + if not isinstance(node.s, str): try: # If the string is ASCII, return a `str` object node.s.decode('ascii') except ValueError: # Otherwise return a `unicode` object --- ./genshi/template/directives.py (original) +++ ./genshi/template/directives.py (refactored) @@ -35,7 +35,7 @@ return type.__new__(cls, name, bases, d) -class Directive(object): +class Directive(object, metaclass=DirectiveMeta): """Abstract base class for template directives. A directive is basically a callable that takes three positional arguments: @@ -53,7 +53,6 @@ described above, and can only be applied programmatically (for example by template filters). """ - __metaclass__ = DirectiveMeta __slots__ = ['expr'] def __init__(self, value, template=None, namespaces=None, lineno=-1, @@ -108,7 +107,7 @@ try: return expr and Expression(exRefactoringTool: Refactored ./genshi/template/base.py pr, template.filepath, lineno, lookup=template.lookup) or None - except SyntaxError, err: + except SyntaxError as err: err.msg += ' in expression "%s" of "%s" directive' % (expr, cls.tagname) raise TemplateSyntaxError(err, template.filepath, lineno, @@ -165,18 +164,18 @@ def __call__(self, stream, directives, ctxt, **vars): def _generate(): - kind, (tag, attrib), pos = stream.next() + kind, (tag, attrib), pos = next(stream) attrs = _eval_expr(self.expr, ctxt, vars) if attrs: if isinstance(attrs, Stream): try: - attrs = iter(attrs).next() + attrs = next(iter(attrs)) except StopIteration: attrs = [] elif not isinstance(attrs, list): # assume it's a dict - attrs = attrs.items() + attrs = list(attrs.items()) attrib |= [ - (QName(n), v is not None and unicode(v).strip() or None) + (QName(n), v is not None and str(v).strip() or None) for n, v in attrs ] yield kind, (tag, attrib), pos @@ -529,8 +528,8 @@ def __call__(self, stream, directives, ctxt, **vars): def _generate(): if not self.expr or _eval_expr(self.expr, ctxt, vars): - stream.next() # skip start tag - previous = stream.next() + next(stream) # skip start tag + previous = next(stream) for event in stream: yield previous previous = event @@ -622,13 +621,13 @@ if not info: raise TemplateRuntimeError('"when" directives can only be used ' 'inside a "choose" directive', - self.filename, *(stream.next())[2][1:]) + self.filename, *(next(stream))[2][1:]) if info[0]: return [] if not self.expr and not info[1]: raise TemplateRuntimeError('either "choose" or "when" directive ' 'must have a test expression', - self.filename, *(stream.next())[2][1:]) + self.filename, *(next(stream))[2][1:]) if info[1]: value = info[2] if self.expr: @@ -661,7 +660,7 @@ if not info: raise TemplateRuntimeError('an "otherwise" directive can only be ' 'used inside a "choose" directive', - self.filename, *(stream.next())[2][1:]) + self.filename, *(next(stream))[2][1:]) if info[0]: return [] info[0] = True @@ -698,7 +697,7 @@ self.vars.append(([_assignment(n) for n in node.targets], Expression(node.value, template.filepath, lineno, lookup=template.lookup))) - except SyntaxError, err: + except SyntaxError as err: err.msg += ' in expression "%s" of "%s" directive' % (value, self.tagname) raise TemplateSyntaxError(err, template.filepath, lineno, --- ./genshi/template/base.py (original) +++ ./genshi/template/base.py (refactored) @@ -179,7 +179,7 @@ :return: the number of variables in the context """ - return len(self.items()) + return len(list(self.items())) def __setitem__(self, key, value): """Set a variable in the current scope. @@ -232,7 +232,7 @@ :return: a list of variables """ - rRefactoringTool: No changes to ./genshi/template/astutil.py RefactoringTool: Refactored ./genshi/template/ast24.py RefactoringTool: No changes to ./genshi/template/_ast24.py RefactoringTool: No changes to ./genshi/template/__init__.py RefactoringTool: Refactored ./genshi/path.py eturn [(key, self.get(key)) for key in self.keys()] + return [(key, self.get(key)) for key in list(self.keys())] def update(self, mapping): """Update the context from the mapping provided.""" @@ -321,12 +321,11 @@ return type.__new__(cls, name, bases, d) -class DirectiveFactory(object): +class DirectiveFactory(object, metaclass=DirectiveFactoryMeta): """Base for classes that provide a set of template directives. :since: version 0.6 """ - __metaclass__ = DirectiveFactoryMeta directives = [] """A list of ``(name, cls)`` tuples that define the set of directives @@ -379,7 +378,7 @@ """ serializer = None - _number_conv = unicode # function used to convert numbers to event data + _number_conv = str # function used to convert numbers to event data def __init__(self, source, filepath=None, filename=None, loader=None, encoding=None, lookup='strict', allow_exec=True): @@ -411,13 +410,13 @@ self._prepared = False if not isinstance(source, Stream) and not hasattr(source, 'read'): - if isinstance(source, unicode): + if isinstance(source, str): source = StringIO(source) else: source = BytesIO(source) try: self._stream = self._parse(source, encoding) - except ParseError, e: + except ParseError as e: raise TemplateSyntaxError(e.msg, self.filepath, e.lineno, e.offset) def __getstate__(self): @@ -495,7 +494,7 @@ else: if kind is INCLUDE: href, cls, fallback = data - if isinstance(href, basestring) and \ + if isinstance(href, str) and \ not getattr(self.loader, 'auto_reload', True): # If the path to the included template is static, and # auto-reloading is disabled on the template loader, @@ -580,16 +579,16 @@ # First check for a string, otherwise the iterable test # below succeeds, and the string will be chopped up into # individual characters - if isinstance(result, basestring): + if isinstance(result, str): yield TEXT, result, pos - elif isinstance(result, (int, float, long)): + elif isinstance(result, (int, float)): yield TEXT, number_conv(result), pos elif hasattr(result, '__iter__'): push(stream) stream = _ensure(result) break else: - yield TEXT, unicode(result), pos + yield TEXT, str(result), pos elif kind is SUB: # This event is a list of directives and a list of nested @@ -618,7 +617,7 @@ for event in stream: if event[0] is INCLUDE: href, cls, fallback = event[1] - if not isinstance(href, basestring): + if not isinstance(href, str): parts = [] for subkind, subdata, subpos in self._flatten(href, ctxt, **vars): --- ./genshi/template/ast24.py (original) +++ ./genshi/template/ast24.py (refactored) @@ -378,7 +378,7 @@ def visit_Const(self, node): if node.value is None: # appears in slices return None - elif isinstance(node.value, basestring): + elif isinstance(node.value, str): return self._new(_ast.Str, node.value) else: return self._new(_ast.Num, node.value) --- ./genshi/path.py (original) +++ ./genshi/path.py (refactored) @@ -576,7 +576,7 @@ variables = {} stream = iter(stream) def _geneRefactoringTool: Refactored ./genshi/output.py RefactoringTool: Refactored ./genshi/input.py rate(stream=stream, ns=namespaces, vs=variables): - next = stream.next + next = stream.__next__ test = self.test() for event in stream: result = test(event, ns, vs) @@ -932,13 +932,13 @@ return float(as_scalar(value)) def as_long(value): - return long(as_scalar(value)) + return int(as_scalar(value)) def as_string(value): value = as_scalar(value) if value is False: return '' - return unicode(value) + return str(value) def as_bool(value): return bool(as_scalar(value)) @@ -1346,8 +1346,8 @@ string = as_string(self.string(kind, data, pos, namespaces, variables)) fromchars = as_string(self.fromchars(kind, data, pos, namespaces, variables)) tochars = as_string(self.tochars(kind, data, pos, namespaces, variables)) - table = dict(zip([ord(c) for c in fromchars], - [ord(c) for c in tochars])) + table = dict(list(zip([ord(c) for c in fromchars], + [ord(c) for c in tochars]))) return string.translate(table) def __repr__(self): return 'translate(%r, %r, %r)' % (self.string, self.fromchars, --- ./genshi/output.py (original) +++ ./genshi/output.py (refactored) @@ -71,7 +71,7 @@ :see: `XMLSerializer`, `XHTMLSerializer`, `HTMLSerializer`, `TextSerializer` :since: version 0.4.1 """ - if isinstance(method, basestring): + if isinstance(method, str): method = {'xml': XMLSerializer, 'xhtml': XHTMLSerializer, 'html': HTMLSerializer, @@ -579,7 +579,7 @@ data = event[1] if strip_markup and type(data) is Markup: data = data.striptags().stripentities() - yield unicode(data) + yield str(data) class EmptyTagFilter(object): @@ -634,7 +634,7 @@ self.cache = cache def __call__(self, stream): - prefixes = dict([(v, [k]) for k, v in self.prefixes.items()]) + prefixes = dict([(v, [k]) for k, v in list(self.prefixes.items())]) namespaces = {XML_NAMESPACE.uri: ['xml']} _emit, _get, cache = _prepare_cache(self.cache) def _push_ns(prefix, uri): @@ -664,7 +664,7 @@ while 1: val += 1 yield 'ns%d' % val - _gen_prefix = _gen_prefix().next + _gen_prefix = _gen_prefix().__next__ for kind, data, pos in stream: if kind is TEXT and isinstance(data, Markup): @@ -820,7 +820,7 @@ :param doctype: DOCTYPE as a string or DocType object. """ - if isinstance(doctype, basestring): + if isinstance(doctype, str): doctype = DocType.get(doctype) self.doctype_event = (DOCTYPE, doctype, (None, -1, -1)) --- ./genshi/input.py (original) +++ ./genshi/input.py (refactored) @@ -17,8 +17,8 @@ from itertools import chain import codecs -import htmlentitydefs as entities -import HTMLParser as html +import html.entities as entities +import html.parser as html from xml.parsers import expat from genshi.core import Attrs, QName, Stream, stripentities @@ -39,7 +39,7 @@ """ tag_name = QName(element.tag.lstrip('{')) attrs = Attrs([(QName(attr.lstrip('{')), value) - for attr, value in element.items()]) + for attr, value in list(element.items())]) yield START, (tag_name, attrs), (None, -1, -1) if element.text: @@ -91,8 +91,8 @@ """ _entitydefs = ['' % (name, value) for name, value in - entities.name2codepoint.items()] - _external_dtd = u'\n'.join(_entitydefs).encode('utf-8') + list(entities.name2codepoint.items())] + _external_dtd = '\n'.join(_entitydefs).encode('utf-8') def __init__(self, source, filename=None, encoding=None): """Initialize the parser for the given XML input. @@ -156,7 +156,7 @@ del self.expat # get rid of circularRefactoringTool: Refactored ./genshi/filters/transform.py references done = True else: - if isinstance(data, unicode): + if isinstance(data, str): data = data.encode('utf-8') self.expat.Parse(data, False) for event in self._queue: @@ -164,7 +164,7 @@ self._queue = [] if done: break - except expat.ExpatError, e: + except expat.ExpatError as e: msg = str(e) raise ParseError(msg, self.filename, e.lineno, e.offset) return Stream(_generate()).filter(_coalesce) @@ -242,7 +242,7 @@ if text.startswith('&'): # deal with undefined entities try: - text = unichr(entities.name2codepoint[text[1:-1]]) + text = chr(entities.name2codepoint[text[1:-1]]) self._enqueue(TEXT, text) except KeyError: filename, lineno, offset = self._getpos() @@ -333,7 +333,7 @@ self.close() done = True else: - if not isinstance(data, unicode): + if not isinstance(data, str): raise UnicodeError("source returned bytes, but no encoding specified") self.feed(data) for kind, data, pos in self._queue: @@ -345,7 +345,7 @@ for tag in open_tags: yield END, QName(tag), pos break - except html.HTMLParseError, e: + except html.HTMLParseError as e: msg = '%s: line %d, column %d' % (e.msg, e.lineno, e.offset) raise ParseError(msg, self.filename, e.lineno, e.offset) return Stream(_generate()).filter(_coalesce) @@ -388,14 +388,14 @@ def handle_charref(self, name): if name.lower().startswith('x'): - text = unichr(int(name[1:], 16)) + text = chr(int(name[1:], 16)) else: - text = unichr(int(name)) + text = chr(int(name)) self._enqueue(TEXT, text) def handle_entityref(self, name): try: - text = unichr(entities.name2codepoint[name]) + text = chr(entities.name2codepoint[name]) except KeyError: text = '&%s;' % name self._enqueue(TEXT, text) @@ -434,7 +434,7 @@ :raises ParseError: if the HTML text is not well-formed, and error recovery fails """ - if isinstance(text, unicode): + if isinstance(text, str): # If it's unicode text the encoding should be set to None. # The option to pass in an incorrect encoding is for ease # of writing doctests that work in both Python 2.x and 3.x. --- ./genshi/filters/transform.py (original) +++ ./genshi/filters/transform.py (refactored) @@ -115,7 +115,7 @@ yield peek else: try: - event = self.stream.next() + event = next(self.stream) yield event except StopIteration: if self.peek is None: @@ -730,7 +730,7 @@ variables = {} test = self.path.test() stream = iter(stream) - next = stream.next + next = stream.__next__ for mark, event in stream: if mark is None: yield mark, event @@ -764,7 +764,7 @@ yield OUTSIDE, result elif result: # XXX Assume everything else is "text"? - yield None, (TEXT, unicode(result), (None, -1, -1)) + yield None, (TEXT, str(result), (None, -1, -1)) else: yield None, event @@ -990,7 +990,7 @@ :param replace: Replacement pattern. :param count: Number RefactoringTool: Refactored ./genshi/filters/tests/transform.py of replacements to make in each text fragment. """ - if isinstance(pattern, basestring): + if isinstance(pattern, str): self.pattern = re.compile(pattern) else: self.pattern = pattern --- ./genshi/filters/tests/transform.py (original) +++ ./genshi/filters/tests/transform.py (refactored) @@ -33,24 +33,24 @@ for mark, (kind, data, pos) in stream: if kind is START: if with_attrs: - data = (unicode(data[0]), dict((unicode(k), v) + data = (str(data[0]), dict((str(k), v) for k, v in data[1])) else: - data = unicode(data[0]) + data = str(data[0]) elif kind is END: - data = unicode(data) + data = str(data) elif kind is ATTR: kind = ATTR - data = dict((unicode(k), v) for k, v in data[1]) + data = dict((str(k), v) for k, v in data[1]) yield mark, kind, data return list(_generate()) def _transform(html, transformer, with_attrs=False): """Apply transformation returning simplified marked stream.""" - if isinstance(html, basestring) and not isinstance(html, unicode): + if isinstance(html, str) and not isinstance(html, str): html = HTML(html, encoding='utf-8') - elif isinstance(html, unicode): + elif isinstance(html, str): html = HTML(html, encoding='utf-8') stream = transformer(html, keep_marks=True) return _simplify(stream, with_attrs) @@ -60,7 +60,7 @@ """Test .select()""" def _select(self, select): html = HTML(FOOBAR, encoding='utf-8') - if isinstance(select, basestring): + if isinstance(select, str): select = [select] transformer = Transformer(select[0]) for sel in select[1:]: @@ -70,78 +70,78 @@ def test_select_single_element(self): self.assertEqual( self._select('foo'), - [(None, START, u'root'), - (None, TEXT, u'ROOT'), - (ENTER, START, u'foo'), - (INSIDE, TEXT, u'FOO'), - (EXIT, END, u'foo'), - (None, START, u'bar'), - (None, TEXT, u'BAR'), - (None, END, u'bar'), - (None, END, u'root')], + [(None, START, 'root'), + (None, TEXT, 'ROOT'), + (ENTER, START, 'foo'), + (INSIDE, TEXT, 'FOO'), + (EXIT, END, 'foo'), + (None, START, 'bar'), + (None, TEXT, 'BAR'), + (None, END, 'bar'), + (None, END, 'root')], ) def test_select_context(self): self.assertEqual( self._select('.'), - [(ENTER, START, u'root'), - (INSIDE, TEXT, u'ROOT'), - (INSIDE, START, u'foo'), - (INSIDE, TEXT, u'FOO'), - (INSIDE, END, u'foo'), - (INSIDE, START, u'bar'), - (INSIDE, TEXT, u'BAR'), - (INSIDE, END, u'bar'), - (EXIT, END, u'root')] + [(ENTER, START, 'root'), + (INSIDE, TEXT, 'ROOT'), + (INSIDE, START, 'foo'), + (INSIDE, TEXT, 'FOO'), + (INSIDE, END, 'foo'), + (INSIDE, START, 'bar'), + (INSIDE, TEXT, 'BAR'), + (INSIDE, END, 'bar'), + (EXIT, END, 'root')] ) def test_select_inside_select(self): self.assertEqual( self._select(['.', 'foo']), - [(None, START, u'root'), - (None, TEXT, u'ROOT'), - (ENTER, START, u'foo'), - (INSIDE, TEXT, u'FOO'), - (EXIT, END, u'foo'), - (None, START, u'bar'), - (None, TEXT, u'BAR'), - (None, END, u'bar'), - (None, END, u'root')], + [(None, START, 'root'), + (None, TEXT, 'ROOT'), + (ENTER, START, 'foo'), + (INSIDE, TEXT, 'FOO'), + (EXIT, END, 'foo'), + (None, START, 'bar'), + (None, TEXT, 'BAR'), + (None, END, 'bar'), + (None, END, 'root')], ) def test_select_text(self): self.assertEqual( self._select('*/text()'), - [(None, START, u'root'), - (None, TEXT, u'ROOT'), - (None, START, u'foo'), - (OUTSIDE, TEXT, u'FOO'), - (None, END, u'foo'), - (None, START, u'bar'), - (OUTSIDE, TEXT, u'BAR'), - (None, END, u'bar'), - (None, END, u'root')], + [(None, START, 'root'), + (None, TEXT, 'ROOT'), + (None, START, 'foo'), + (OUTSIDE, TEXT, 'FOO'), + (None, END, 'foo'), + (None, START, 'bar'), + (OUTSIDE, TEXT, 'BAR'), + (None, END, 'bar'), + (None, END, 'root')], ) def test_select_attr(self): self.assertEqual( self._select('foo/@name'), - [(None, START, u'root'), - (None, TEXT, u'ROOT'), - (ATTR, ATTR, {'name': u'foo'}), - (None, START, u'foo'), - (None, TEXT, u'FOO'), - (None, END, u'foo'), - (None, START, u'bar'), - (None, TEXT, u'BAR'), - (None, END, u'bar'), - (None, END, u'root')] + [(None, START, 'root'), + (None, TEXT, 'ROOT'), + (ATTR, ATTR, {'name': 'foo'}), + (None, START, 'foo'), + (None, TEXT, 'FOO'), + (None, END, 'foo'), + (None, START, 'bar'), + (None, TEXT, 'BAR'), + (None, END, 'bar'), + (None, END, 'root')] ) def test_select_text_context(self): self.assertEqual( - list(Transformer('.')(HTML(u'foo'), keep_marks=True)), - [('OUTSIDE', ('TEXT', u'foo', (None, 1, 0)))], + list(Transformer('.')(HTML('foo'), keep_marks=True)), + [('OUTSIDE', ('TEXT', 'foo', (None, 1, 0)))], ) @@ -152,63 +152,63 @@ def test_invert_element(self): self.assertEqual( self._invert('foo'), - [(OUTSIDE, START, u'root'), - (OUTSIDE, TEXT, u'ROOT'), - (None, START, u'foo'), - (None, TEXT, u'FOO'), - (None, END, u'foo'), - (OUTSIDE, END, u'root')] + [(OUTSIDE, START, 'root'), + (OUTSIDE, TEXT, 'ROOT'), + (None, START, 'foo'), + (None, TEXT, 'FOO'), + (None, END, 'foo'), + (OUTSIDE, END, 'root')] ) def test_invert_inverted_element(self): self.assertEqual( _transform(FOO, Transformer('foo').invert().invert()), - [(None, START, u'root'), - (None, TEXT, u'ROOT'), - (OUTSIDE, START, u'foo'), - (OUTSIDE, TEXT, u'FOO'), - (OUTSIDE, END, u'foo'), - (None, END, u'root')] + [(None, START, 'root'), + (None, TEXT, 'ROOT'), + (OUTSIDE, START, 'foo'), + (OUTSIDE, TEXT, 'FOO'), + (OUTSIDE, END, 'foo'), + (None, END, 'root')] ) def test_invert_text(self): self.assertEqual( self._invert('foo/text()'), - [(OUTSIDE, START, u'root'), - (OUTSIDE, TEXT, u'ROOT'), - (OUTSIDE, START, u'foo'), - (None, TEXT, u'FOO'), - (OUTSIDE, END, u'foo'), - (OUTSIDE, END, u'root')] + [(OUTSIDE, START, 'root'), + (OUTSIDE, TEXT, 'ROOT'), + (OUTSIDE, START, 'foo'), + (None, TEXT, 'FOO'), + (OUTSIDE, END, 'foo'), + (OUTSIDE, END, 'root')] ) def test_invert_attribute(self): self.assertEqual( self._invert('foo/@name'), - [(OUTSIDE, START, u'root'), - (OUTSIDE, TEXT, u'ROOT'), - (None, ATTR, {'name': u'foo'}), - (OUTSIDE, START, u'foo'), - (OUTSIDE, TEXT, u'FOO'), - (OUTSIDE, END, u'foo'), - (OUTSIDE, END, u'root')] + [(OUTSIDE, START, 'root'), + (OUTSIDE, TEXT, 'ROOT'), + (None, ATTR, {'name': 'foo'}), + (OUTSIDE, START, 'foo'), + (OUTSIDE, TEXT, 'FOO'), + (OUTSIDE, END, 'foo'), + (OUTSIDE, END, 'root')] ) def test_invert_context(self): self.assertEqual( self._invert('.'), - [(None, START, u'root'), - (None, TEXT, u'ROOT'), - (None, START, u'foo'), - (None, TEXT, u'FOO'), - (None, END, u'foo'), - (None, END, u'root')] + [(None, START, 'root'), + (None, TEXT, 'ROOT'), + (None, START, 'foo'), + (None, TEXT, 'FOO'), + (None, END, 'foo'), + (None, END, 'root')] ) def test_invert_text_context(self): self.assertEqual( - _simplify(Transformer('.').invert()(HTML(u'foo'), keep_marks=True)), - [(None, 'TEXT', u'foo')], + _simplify(Transformer('.').invert()(HTML('foo'), keep_marks=True)), + [(None, 'TEXT', 'foo')], ) @@ -218,12 +218,12 @@ stream = _transform(FOO, Transformer('foo').end()) self.assertEqual( stream, - [(OUTSIDE, START, u'root'), - (OUTSIDE, TEXT, u'ROOT'), - (OUTSIDE, START, u'foo'), - (OUTSIDE, TEXT, u'FOO'), - (OUTSIDE, END, u'foo'), - (OUTSIDE, END, u'root')] + [(OUTSIDE, START, 'root'), + (OUTSIDE, TEXT, 'ROOT'), + (OUTSIDE, START, 'foo'), + (OUTSIDE, TEXT, 'FOO'), + (OUTSIDE, END, 'foo'), + (OUTSIDE, END, 'root')] ) @@ -234,47 +234,47 @@ def test_empty_element(self): self.assertEqual( self._empty('foo'), - [(None, START, u'root'), - (None, TEXT, u'ROOT'), - (ENTER, START, u'foo'), - (EXIT, END, u'foo'), - (None, END, u'root')], + [(None, START, 'root'), + (None, TEXT, 'ROOT'), + (ENTER, START, 'foo'), + (EXIT, END, 'foo'), + (None, END, 'root')], ) def test_empty_text(self): self.assertEqual( self._empty('foo/text()'), - [(None, START, u'root'), - (None, TEXT, u'ROOT'), - (None, START, u'foo'), - (OUTSIDE, TEXT, u'FOO'), - (None, END, u'foo'), - (None, END, u'root')] + [(None, START, 'root'), + (None, TEXT, 'ROOT'), + (None, START, 'foo'), + (OUTSIDE, TEXT, 'FOO'), + (None, END, 'foo'), + (None, END, 'root')] ) def test_empty_attr(self): self.assertEqual( self._empty('foo/@name'), - [(None, START, u'root'), - (None, TEXT, u'ROOT'), - (ATTR, ATTR, {'name': u'foo'}), - (None, START, u'foo'), - (None, TEXT, u'FOO'), - (None, END, u'foo'), - (None, END, u'root')] + [(None, START, 'root'), + (None, TEXT, 'ROOT'), + (ATTR, ATTR, {'name': 'foo'}), + (None, START, 'foo'), + (None, TEXT, 'FOO'), + (None, END, 'foo'), + (None, END, 'root')] ) def test_empty_context(self): self.assertEqual( self._empty('.'), - [(ENTER, START, u'root'), - (EXIT, END, u'root')] + [(ENTER, START, 'root'), + (EXIT, END, 'root')] ) def test_empty_text_context(self): self.assertEqual( - _simplify(Transformer('.')(HTML(u'foo'), keep_marks=True)), - [(OUTSIDE, TEXT, u'foo')], + _simplify(Transformer('.')(HTML('foo'), keep_marks=True)), + [(OUTSIDE, TEXT, 'foo')], ) @@ -285,29 +285,29 @@ def test_remove_element(self): self.assertEqual( self._remove('foo|bar'), - [(None, START, u'root'), - (None, TEXT, u'ROOT'), - (None, END, u'root')] + [(None, START, 'root'), + (None, TEXT, 'ROOT'), + (None, END, 'root')] ) def test_remove_text(self): self.assertEqual( self._remove('//text()'), - [(None, START, u'root'), - (None, START, u'foo'), - (None, END, u'foo'), - (None, END, u'root')] + [(None, START, 'root'), + (None, START, 'foo'), + (None, END, 'foo'), + (None, END, 'root')] ) def test_remove_attr(self): self.assertEqual( self._remove('foo/@name'), - [(None, START, u'root'), - (None, TEXT, u'ROOT'), - (None, START, u'foo'), - (None, TEXT, u'FOO'), - (None, END, u'foo'), - (None, END, u'root')] + [(None, START, 'root'), + (None, TEXT, 'ROOT'), + (None, START, 'foo'), + (None, TEXT, 'FOO'), + (None, END, 'foo'), + (None, END, 'root')] ) def test_remove_context(self): @@ -330,52 +330,52 @@ def test_unwrap_element(self): self.assertEqual( self._unwrap('foo'), - [(None, START, u'root'), - (None, TEXT, u'ROOT'), - (INSIDE, TEXT, u'FOO'), - (None, END, u'root')] + [(None, START, 'root'), + (None, TEXT, 'ROOT'), + (INSIDE, TEXT, 'FOO'), + (None, END, 'root')] ) def test_unwrap_text(self): self.assertEqual( self._unwrap('foo/text()'), - [(None, START, u'root'), - (None, TEXT, u'ROOT'), - (None, START, u'foo'), - (OUTSIDE, TEXT, u'FOO'), - (None, END, u'foo'), - (None, END, u'root')] + [(None, START, 'root'), + (None, TEXT, 'ROOT'), + (None, START, 'foo'), + (OUTSIDE, TEXT, 'FOO'), + (None, END, 'foo'), + (None, END, 'root')] ) def test_unwrap_attr(self): self.assertEqual( self._unwrap('foo/@name'), - [(None, START, u'root'), - (None, TEXT, u'ROOT'), - (ATTR, ATTR, {'name': u'foo'}), - (None, START, u'foo'), - (None, TEXT, u'FOO'), - (None, END, u'foo'), - (None, END, u'root')] + [(None, START, 'root'), + (None, TEXT, 'ROOT'), + (ATTR, ATTR, {'name': 'foo'}), + (None, START, 'foo'), + (None, TEXT, 'FOO'), + (None, END, 'foo'), + (None, END, 'root')] ) def test_unwrap_adjacent(self): self.assertEqual( _transform(FOOBAR, Transformer('foo|bar').unwrap()), - [(None, START, u'root'), - (None, TEXT, u'ROOT'), - (INSIDE, TEXT, u'FOO'), - (INSIDE, TEXT, u'BAR'), - (None, END, u'root')] + [(None, START, 'root'), + (None, TEXT, 'ROOT'), + (INSIDE, TEXT, 'FOO'), + (INSIDE, TEXT, 'BAR'), + (None, END, 'root')] ) def test_unwrap_root(self): self.assertEqual( self._unwrap('.'), - [(INSIDE, TEXT, u'ROOT'), - (INSIDE, START, u'foo'), - (INSIDE, TEXT, u'FOO'), - (INSIDE, END, u'foo')] + [(INSIDE, TEXT, 'ROOT'), + (INSIDE, START, 'foo'), + (INSIDE, TEXT, 'FOO'), + (INSIDE, END, 'foo')] ) def test_unwrap_text_root(self): @@ -392,75 +392,75 @@ def test_wrap_element(self): self.assertEqual( self._wrap('foo'), - [(None, START, u'root'), - (None, TEXT, u'ROOT'), - (None, START, u'wrap'), - (ENTER, START, u'foo'), - (INSIDE, TEXT, u'FOO'), - (EXIT, END, u'foo'), - (None, END, u'wrap'), - (None, END, u'root')] + [(None, START, 'root'), + (None, TEXT, 'ROOT'), + (None, START, 'wrap'), + (ENTER, START, 'foo'), + (INSIDE, TEXT, 'FOO'), + (EXIT, END, 'foo'), + (None, END, 'wrap'), + (None, END, 'root')] ) def test_wrap_adjacent_elements(self): self.assertEqual( _transform(FOOBAR, Transformer('foo|bar').wrap('wrap')), - [(None, START, u'root'), - (None, TEXT, u'ROOT'), - (None, START, u'wrap'), - (ENTER, START, u'foo'), - (INSIDE, TEXT, u'FOO'), - (EXIT, END, u'foo'), - (None, END, u'wrap'), - (None, START, u'wrap'), - (ENTER, START, u'bar'), - (INSIDE, TEXT, u'BAR'), - (EXIT, END, u'bar'), - (None, END, u'wrap'), - (None, END, u'root')] + [(None, START, 'root'), + (None, TEXT, 'ROOT'), + (None, START, 'wrap'), + (ENTER, START, 'foo'), + (INSIDE, TEXT, 'FOO'), + (EXIT, END, 'foo'), + (None, END, 'wrap'), + (None, START, 'wrap'), + (ENTER, START, 'bar'), + (INSIDE, TEXT, 'BAR'), + (EXIT, END, 'bar'), + (None, END, 'wrap'), + (None, END, 'root')] ) def test_wrap_text(self): self.assertEqual( self._wrap('foo/text()'), - [(None, START, u'root'), - (None, TEXT, u'ROOT'), - (None, START, u'foo'), - (None, START, u'wrap'), - (OUTSIDE, TEXT, u'FOO'), - (None, END, u'wrap'), - (None, END, u'foo'), - (None, END, u'root')] + [(None, START, 'root'), + (None, TEXT, 'ROOT'), + (None, START, 'foo'), + (None, START, 'wrap'), + (OUTSIDE, TEXT, 'FOO'), + (None, END, 'wrap'), + (None, END, 'foo'), + (None, END, 'root')] ) def test_wrap_root(self): self.assertEqual( self._wrap('.'), - [(None, START, u'wrap'), - (ENTER, START, u'root'), - (INSIDE, TEXT, u'ROOT'), - (INSIDE, START, u'foo'), - (INSIDE, TEXT, u'FOO'), - (INSIDE, END, u'foo'), - (EXIT, END, u'root'), - (None, END, u'wrap')] + [(None, START, 'wrap'), + (ENTER, START, 'root'), + (INSIDE, TEXT, 'ROOT'), + (INSIDE, START, 'foo'), + (INSIDE, TEXT, 'FOO'), + (INSIDE, END, 'foo'), + (EXIT, END, 'root'), + (None, END, 'wrap')] ) def test_wrap_text_root(self): self.assertEqual( _transform('foo', Transformer('.').wrap('wrap')), - [(None, START, u'wrap'), - (OUTSIDE, TEXT, u'foo'), - (None, END, u'wrap')], + [(None, START, 'wrap'), + (OUTSIDE, TEXT, 'foo'), + (None, END, 'wrap')], ) def test_wrap_with_element(self): element = Element('a', href='http://localhost') self.assertEqual( _transform('foo', Transformer('.').wrap(element), with_attrs=True), - [(None, START, (u'a', {u'href': u'http://localhost'})), - (OUTSIDE, TEXT, u'foo'), - (None, END, u'a')] + [(None, START, ('a', {'href': 'http://localhost'})), + (OUTSIDE, TEXT, 'foo'), + (None, END, 'a')] ) @@ -483,55 +483,55 @@ def test_filter_element(self): self.assertEqual( self._filter('foo'), - [[(None, START, u'foo'), - (None, TEXT, u'FOO'), - (None, END, u'foo')]] + [[(None, START, 'foo'), + (None, TEXT, 'FOO'), + (None, END, 'foo')]] ) def test_filter_adjacent_elements(self): self.assertEqual( self._filter('foo|bar'), - [[(None, START, u'foo'), - (None, TEXT, u'FOO'), - (None, END, u'foo')], - [(None, START, u'bar'), - (None, TEXT, u'BAR'), - (None, END, u'bar')]] + [[(None, START, 'foo'), + (None, TEXT, 'FOO'), + (None, END, 'foo')], + [(None, START, 'bar'), + (None, TEXT, 'BAR'), + (None, END, 'bar')]] ) def test_filter_text(self): self.assertEqual( self._filter('*/text()'), - [[(None, TEXT, u'FOO')], - [(None, TEXT, u'BAR')]] + [[(None, TEXT, 'FOO')], + [(None, TEXT, 'BAR')]] ) def test_filter_root(self): self.assertEqual( self._filter('.'), - [[(None, START, u'root'), - (None, TEXT, u'ROOT'), - (None, START, u'foo'), - (None, TEXT, u'FOO'), - (None, END, u'foo'), - (None, START, u'bar'), - (None, TEXT, u'BAR'), - (None, END, u'bar'), - (None, END, u'root')]] + [[(None, START, 'root'), + (None, TEXT, 'ROOT'), + (None, START, 'foo'), + (None, TEXT, 'FOO'), + (None, END, 'foo'), + (None, START, 'bar'), + (None, TEXT, 'BAR'), + (None, END, 'bar'), + (None, END, 'root')]] ) def test_filter_text_root(self): self.assertEqual( self._filter('.', 'foo'), - [[(None, TEXT, u'foo')]]) + [[(None, TEXT, 'foo')]]) def test_filter_after_outside(self): stream = _transform( 'x', Transformer('//root/text()').filter(lambda x: x)) self.assertEqual( list(stream), - [(None, START, u'root'), - (OUTSIDE, TEXT, u'x'), - (None, END, u'root')]) + [(None, START, 'root'), + (OUTSIDE, TEXT, 'x'), + (None, END, 'root')]) class MapTest(unittest.TestCase): @@ -546,16 +546,16 @@ def test_map_element(self): self.assertEqual( self._map('foo'), - [(QName('foo'), Attrs([(QName('name'), u'foo'), - (QName('size'), u'100')])), - u'FOO', + [(QName('foo'), Attrs([(QName('name'), 'foo'), + (QName('size'), '100')])), + 'FOO', QName('foo')] ) def test_map_with_text_kind(self): self.assertEqual( self._map('.', TEXT), - [u'ROOT', u'FOO', u'BAR'] + ['ROOT', 'FOO', 'BAR'] ) def test_map_with_root_and_end_kind(self): @@ -567,7 +567,7 @@ def test_map_with_attribute(self): self.assertEqual( self._map('foo/@name'), - [(QName('foo@*'), Attrs([('name', u'foo')]))] + [(QName('foo@*'), Attrs([('name', 'foo')]))] ) @@ -578,29 +578,29 @@ def test_substitute_foo(self): self.assertEqual( self._substitute('foo', 'FOO|BAR', 'FOOOOO'), - [(None, START, u'root'), - (None, TEXT, u'ROOT'), - (ENTER, START, u'foo'), - (INSIDE, TEXT, u'FOOOOO'), - (EXIT, END, u'foo'), - (None, START, u'bar'), - (None, TEXT, u'BAR'), - (None, END, u'bar'), - (None, END, u'root')] + [(None, START, 'root'), + (None, TEXT, 'ROOT'), + (ENTER, START, 'foo'), + (INSIDE, TEXT, 'FOOOOO'), + (EXIT, END, 'foo'), + (None, START, 'bar'), + (None, TEXT, 'BAR'), + (None, END, 'bar'), + (None, END, 'root')] ) def test_substitute_foobar_with_group(self): self.assertEqual( self._substitute('foo|bar', '(FOO|BAR)', r'(\1)'), - [(None, START, u'root'), - (None, TEXT, u'ROOT'), - (ENTER, START, u'foo'), - (INSIDE, TEXT, u'(FOO)'), - (EXIT, END, u'foo'), - (ENTER, START, u'bar'), - (INSIDE, TEXT, u'(BAR)'), - (EXIT, END, u'bar'), - (None, END, u'root')] + [(None, START, 'root'), + (None, TEXT, 'ROOT'), + (ENTER, START, 'foo'), + (INSIDE, TEXT, '(FOO)'), + (EXIT, END, 'foo'), + (ENTER, START, 'bar'), + (INSIDE, TEXT, '(BAR)'), + (EXIT, END, 'bar'), + (None, END, 'root')] ) @@ -611,43 +611,43 @@ def test_rename_root(self): self.assertEqual( self._rename('.'), - [(ENTER, START, u'foobar'), - (INSIDE, TEXT, u'ROOT'), - (INSIDE, START, u'foo'), - (INSIDE, TEXT, u'FOO'), - (INSIDE, END, u'foo'), - (INSIDE, START, u'bar'), - (INSIDE, TEXT, u'BAR'), - (INSIDE, END, u'bar'), - (EXIT, END, u'foobar')] + [(ENTER, START, 'foobar'), + (INSIDE, TEXT, 'ROOT'), + (INSIDE, START, 'foo'), + (INSIDE, TEXT, 'FOO'), + (INSIDE, END, 'foo'), + (INSIDE, START, 'bar'), + (INSIDE, TEXT, 'BAR'), + (INSIDE, END, 'bar'), + (EXIT, END, 'foobar')] ) def test_rename_element(self): self.assertEqual( self._rename('foo|bar'), - [(None, START, u'root'), - (None, TEXT, u'ROOT'), - (ENTER, START, u'foobar'), - (INSIDE, TEXT, u'FOO'), - (EXIT, END, u'foobar'), - (ENTER, START, u'foobar'), - (INSIDE, TEXT, u'BAR'), - (EXIT, END, u'foobar'), - (None, END, u'root')] + [(None, START, 'root'), + (None, TEXT, 'ROOT'), + (ENTER, START, 'foobar'), + (INSIDE, TEXT, 'FOO'), + (EXIT, END, 'foobar'), + (ENTER, START, 'foobar'), + (INSIDE, TEXT, 'BAR'), + (EXIT, END, 'foobar'), + (None, END, 'root')] ) def test_rename_text(self): self.assertEqual( self._rename('foo/text()'), - [(None, START, u'root'), - (None, TEXT, u'ROOT'), - (None, START, u'foo'), - (OUTSIDE, TEXT, u'FOO'), - (None, END, u'foo'), - (None, START, u'bar'), - (None, TEXT, u'BAR'), - (None, END, u'bar'), - (None, END, u'root')] + [(None, START, 'root'), + (None, TEXT, 'ROOT'), + (None, START, 'foo'), + (OUTSIDE, TEXT, 'FOO'), + (None, END, 'foo'), + (None, START, 'bar'), + (None, TEXT, 'BAR'), + (None, END, 'bar'), + (None, END, 'root')] ) @@ -658,15 +658,15 @@ def __iter__(self): self.count += 1 - return iter(HTML(u'CONTENT %i' % self.count)) - - if isinstance(html, basestring) and not isinstance(html, unicode): + return iter(HTML('CONTENT %i' % self.count)) + + if isinstance(html, str) and not isinstance(html, str): html = HTML(html, encoding='utf-8') else: html = HTML(html) if content is None: content = Injector() - elif isinstance(content, basestring): + elif isinstance(content, str): content = HTML(content) return _transform(html, getattr(Transformer(select), self.operation) (content)) @@ -678,59 +678,59 @@ def test_replace_element(self): self.assertEqual( self._apply('foo'), - [(None, START, u'root'), - (None, TEXT, u'ROOT'), - (None, TEXT, u'CONTENT 1'), - (None, START, u'bar'), - (None, TEXT, u'BAR'), - (None, END, u'bar'), - (None, END, u'root')] + [(None, START, 'root'), + (None, TEXT, 'ROOT'), + (None, TEXT, 'CONTENT 1'), + (None, START, 'bar'), + (None, TEXT, 'BAR'), + (None, END, 'bar'), + (None, END, 'root')] ) def test_replace_text(self): self.assertEqual( self._apply('text()'), - [(None, START, u'root'), - (None, TEXT, u'CONTENT 1'), - (None, START, u'foo'), - (None, TEXT, u'FOO'), - (None, END, u'foo'), - (None, START, u'bar'), - (None, TEXT, u'BAR'), - (None, END, u'bar'), - (None, END, u'root')] + [(None, START, 'root'), + (None, TEXT, 'CONTENT 1'), + (None, START, 'foo'), + (None, TEXT, 'FOO'), + (None, END, 'foo'), + (None, START, 'bar'), + (None, TEXT, 'BAR'), + (None, END, 'bar'), + (None, END, 'root')] ) def test_replace_context(self): self.assertEqual( self._apply('.'), - [(None, TEXT, u'CONTENT 1')], + [(None, TEXT, 'CONTENT 1')], ) def test_replace_text_context(self): self.assertEqual( self._apply('.', html='foo'), - [(None, TEXT, u'CONTENT 1')], + [(None, TEXT, 'CONTENT 1')], ) def test_replace_adjacent_elements(self): self.assertEqual( self._apply('*'), - [(None, START, u'root'), - (None, TEXT, u'ROOT'), - (None, TEXT, u'CONTENT 1'), - (None, TEXT, u'CONTENT 2'), - (None, END, u'root')], + [(None, START, 'root'), + (None, TEXT, 'ROOT'), + (None, TEXT, 'CONTENT 1'), + (None, TEXT, 'CONTENT 2'), + (None, END, 'root')], ) def test_replace_all(self): self.assertEqual( self._apply('*|text()'), - [(None, START, u'root'), - (None, TEXT, u'CONTENT 1'), - (None, TEXT, u'CONTENT 2'), - (None, TEXT, u'CONTENT 3'), - (None, END, u'root')], + [(None, START, 'root'), + (None, TEXT, 'CONTENT 1'), + (None, TEXT, 'CONTENT 2'), + (None, TEXT, 'CONTENT 3'), + (None, END, 'root')], ) def test_replace_with_callback(self): @@ -740,11 +740,11 @@ yield '%2i.' % count[0] self.assertEqual( self._apply('*', content), - [(None, START, u'root'), - (None, TEXT, u'ROOT'), - (None, TEXT, u' 1.'), - (None, TEXT, u' 2.'), - (None, END, u'root')] + [(None, START, 'root'), + (None, TEXT, 'ROOT'), + (None, TEXT, ' 1.'), + (None, TEXT, ' 2.'), + (None, END, 'root')] ) @@ -754,87 +754,87 @@ def test_before_element(self): self.assertEqual( self._apply('foo'), - [(None, START, u'root'), - (None, TEXT, u'ROOT'), - (None, TEXT, u'CONTENT 1'), - (ENTER, START, u'foo'), - (INSIDE, TEXT, u'FOO'), - (EXIT, END, u'foo'), - (None, START, u'bar'), - (None, TEXT, u'BAR'), - (None, END, u'bar'), - (None, END, u'root')] + [(None, START, 'root'), + (None, TEXT, 'ROOT'), + (None, TEXT, 'CONTENT 1'), + (ENTER, START, 'foo'), + (INSIDE, TEXT, 'FOO'), + (EXIT, END, 'foo'), + (None, START, 'bar'), + (None, TEXT, 'BAR'), + (None, END, 'bar'), + (None, END, 'root')] ) def test_before_text(self): self.assertEqual( self._apply('text()'), - [(None, START, u'root'), - (None, TEXT, u'CONTENT 1'), - (OUTSIDE, TEXT, u'ROOT'), - (None, START, u'foo'), - (None, TEXT, u'FOO'), - (None, END, u'foo'), - (None, START, u'bar'), - (None, TEXT, u'BAR'), - (None, END, u'bar'), - (None, END, u'root')] + [(None, START, 'root'), + (None, TEXT, 'CONTENT 1'), + (OUTSIDE, TEXT, 'ROOT'), + (None, START, 'foo'), + (None, TEXT, 'FOO'), + (None, END, 'foo'), + (None, START, 'bar'), + (None, TEXT, 'BAR'), + (None, END, 'bar'), + (None, END, 'root')] ) def test_before_context(self): self.assertEqual( self._apply('.'), - [(None, TEXT, u'CONTENT 1'), - (ENTER, START, u'root'), - (INSIDE, TEXT, u'ROOT'), - (INSIDE, START, u'foo'), - (INSIDE, TEXT, u'FOO'), - (INSIDE, END, u'foo'), - (INSIDE, START, u'bar'), - (INSIDE, TEXT, u'BAR'), - (INSIDE, END, u'bar'), - (EXIT, END, u'root')] + [(None, TEXT, 'CONTENT 1'), + (ENTER, START, 'root'), + (INSIDE, TEXT, 'ROOT'), + (INSIDE, START, 'foo'), + (INSIDE, TEXT, 'FOO'), + (INSIDE, END, 'foo'), + (INSIDE, START, 'bar'), + (INSIDE, TEXT, 'BAR'), + (INSIDE, END, 'bar'), + (EXIT, END, 'root')] ) def test_before_text_context(self): self.assertEqual( self._apply('.', html='foo'), - [(None, TEXT, u'CONTENT 1'), - (OUTSIDE, TEXT, u'foo')] + [(None, TEXT, 'CONTENT 1'), + (OUTSIDE, TEXT, 'foo')] ) def test_before_adjacent_elements(self): self.assertEqual( self._apply('*'), - [(None, START, u'root'), - (None, TEXT, u'ROOT'), - (None, TEXT, u'CONTENT 1'), - (ENTER, START, u'foo'), - (INSIDE, TEXT, u'FOO'), - (EXIT, END, u'foo'), - (None, TEXT, u'CONTENT 2'), - (ENTER, START, u'bar'), - (INSIDE, TEXT, u'BAR'), - (EXIT, END, u'bar'), - (None, END, u'root')] + [(None, START, 'root'), + (None, TEXT, 'ROOT'), + (None, TEXT, 'CONTENT 1'), + (ENTER, START, 'foo'), + (INSIDE, TEXT, 'FOO'), + (EXIT, END, 'foo'), + (None, TEXT, 'CONTENT 2'), + (ENTER, START, 'bar'), + (INSIDE, TEXT, 'BAR'), + (EXIT, END, 'bar'), + (None, END, 'root')] ) def test_before_all(self): self.assertEqual( self._apply('*|text()'), - [(None, START, u'root'), - (None, TEXT, u'CONTENT 1'), - (OUTSIDE, TEXT, u'ROOT'), - (None, TEXT, u'CONTENT 2'), - (ENTER, START, u'foo'), - (INSIDE, TEXT, u'FOO'), - (EXIT, END, u'foo'), - (None, TEXT, u'CONTENT 3'), - (ENTER, START, u'bar'), - (INSIDE, TEXT, u'BAR'), - (EXIT, END, u'bar'), - (None, END, u'root')] + [(None, START, 'root'), + (None, TEXT, 'CONTENT 1'), + (OUTSIDE, TEXT, 'ROOT'), + (None, TEXT, 'CONTENT 2'), + (ENTER, START, 'foo'), + (INSIDE, TEXT, 'FOO'), + (EXIT, END, 'foo'), + (None, TEXT, 'CONTENT 3'), + (ENTER, START, 'bar'), + (INSIDE, TEXT, 'BAR'), + (EXIT, END, 'bar'), + (None, END, 'root')] ) def test_before_with_callback(self): @@ -844,16 +844,16 @@ yield '%2i.' % count[0] self.assertEqual( self._apply('foo/text()', content), - [(None, 'START', u'root'), - (None, 'TEXT', u'ROOT'), - (None, 'START', u'foo'), - (None, 'TEXT', u' 1.'), - ('OUTSIDE', 'TEXT', u'FOO'), - (None, 'END', u'foo'), - (None, 'START', u'bar'), - (None, 'TEXT', u'BAR'), - (None, 'END', u'bar'), - (None, 'END', u'root')] + [(None, 'START', 'root'), + (None, 'TEXT', 'ROOT'), + (None, 'START', 'foo'), + (None, 'TEXT', ' 1.'), + ('OUTSIDE', 'TEXT', 'FOO'), + (None, 'END', 'foo'), + (None, 'START', 'bar'), + (None, 'TEXT', 'BAR'), + (None, 'END', 'bar'), + (None, 'END', 'root')] ) @@ -863,87 +863,87 @@ def test_after_element(self): self.assertEqual( self._apply('foo'), - [(None, START, u'root'), - (None, TEXT, u'ROOT'), - (ENTER, START, u'foo'), - (INSIDE, TEXT, u'FOO'), - (EXIT, END, u'foo'), - (None, TEXT, u'CONTENT 1'), - (None, START, u'bar'), - (None, TEXT, u'BAR'), - (None, END, u'bar'), - (None, END, u'root')] + [(None, START, 'root'), + (None, TEXT, 'ROOT'), + (ENTER, START, 'foo'), + (INSIDE, TEXT, 'FOO'), + (EXIT, END, 'foo'), + (None, TEXT, 'CONTENT 1'), + (None, START, 'bar'), + (None, TEXT, 'BAR'), + (None, END, 'bar'), + (None, END, 'root')] ) def test_after_text(self): self.assertEqual( self._apply('text()'), - [(None, START, u'root'), - (OUTSIDE, TEXT, u'ROOT'), - (None, TEXT, u'CONTENT 1'), - (None, START, u'foo'), - (None, TEXT, u'FOO'), - (None, END, u'foo'), - (None, START, u'bar'), - (None, TEXT, u'BAR'), - (None, END, u'bar'), - (None, END, u'root')] + [(None, START, 'root'), + (OUTSIDE, TEXT, 'ROOT'), + (None, TEXT, 'CONTENT 1'), + (None, START, 'foo'), + (None, TEXT, 'FOO'), + (None, END, 'foo'), + (None, START, 'bar'), + (None, TEXT, 'BAR'), + (None, END, 'bar'), + (None, END, 'root')] ) def test_after_context(self): self.assertEqual( self._apply('.'), - [(ENTER, START, u'root'), - (INSIDE, TEXT, u'ROOT'), - (INSIDE, START, u'foo'), - (INSIDE, TEXT, u'FOO'), - (INSIDE, END, u'foo'), - (INSIDE, START, u'bar'), - (INSIDE, TEXT, u'BAR'), - (INSIDE, END, u'bar'), - (EXIT, END, u'root'), - (None, TEXT, u'CONTENT 1')] + [(ENTER, START, 'root'), + (INSIDE, TEXT, 'ROOT'), + (INSIDE, START, 'foo'), + (INSIDE, TEXT, 'FOO'), + (INSIDE, END, 'foo'), + (INSIDE, START, 'bar'), + (INSIDE, TEXT, 'BAR'), + (INSIDE, END, 'bar'), + (EXIT, END, 'root'), + (None, TEXT, 'CONTENT 1')] ) def test_after_text_context(self): self.assertEqual( self._apply('.', html='foo'), - [(OUTSIDE, TEXT, u'foo'), - (None, TEXT, u'CONTENT 1')] + [(OUTSIDE, TEXT, 'foo'), + (None, TEXT, 'CONTENT 1')] ) def test_after_adjacent_elements(self): self.assertEqual( self._apply('*'), - [(None, START, u'root'), - (None, TEXT, u'ROOT'), - (ENTER, START, u'foo'), - (INSIDE, TEXT, u'FOO'), - (EXIT, END, u'foo'), - (None, TEXT, u'CONTENT 1'), - (ENTER, START, u'bar'), - (INSIDE, TEXT, u'BAR'), - (EXIT, END, u'bar'), - (None, TEXT, u'CONTENT 2'), - (None, END, u'root')] + [(None, START, 'root'), + (None, TEXT, 'ROOT'), + (ENTER, START, 'foo'), + (INSIDE, TEXT, 'FOO'), + (EXIT, END, 'foo'), + (None, TEXT, 'CONTENT 1'), + (ENTER, START, 'bar'), + (INSIDE, TEXT, 'BAR'), + (EXIT, END, 'bar'), + (None, TEXT, 'CONTENT 2'), + (None, END, 'root')] ) def test_after_all(self): self.assertEqual( self._apply('*|text()'), - [(None, START, u'root'), - (OUTSIDE, TEXT, u'ROOT'), - (None, TEXT, u'CONTENT 1'), - (ENTER, START, u'foo'), - (INSIDE, TEXT, u'FOO'), - (EXIT, END, u'foo'), - (None, TEXT, u'CONTENT 2'), - (ENTER, START, u'bar'), - (INSIDE, TEXT, u'BAR'), - (EXIT, END, u'bar'), - (None, TEXT, u'CONTENT 3'), - (None, END, u'root')] + [(None, START, 'root'), + (OUTSIDE, TEXT, 'ROOT'), + (None, TEXT, 'CONTENT 1'), + (ENTER, START, 'foo'), + (INSIDE, TEXT, 'FOO'), + (EXIT, END, 'foo'), + (None, TEXT, 'CONTENT 2'), + (ENTER, START, 'bar'), + (INSIDE, TEXT, 'BAR'), + (EXIT, END, 'bar'), + (None, TEXT, 'CONTENT 3'), + (None, END, 'root')] ) def test_after_with_callback(self): @@ -953,16 +953,16 @@ yield '%2i.' % count[0] self.assertEqual( self._apply('foo/text()', content), - [(None, 'START', u'root'), - (None, 'TEXT', u'ROOT'), - (None, 'START', u'foo'), - ('OUTSIDE', 'TEXT', u'FOO'), - (None, 'TEXT', u' 1.'), - (None, 'END', u'foo'), - (None, 'START', u'bar'), - (None, 'TEXT', u'BAR'), - (None, 'END', u'bar'), - (None, 'END', u'root')] + [(None, 'START', 'root'), + (None, 'TEXT', 'ROOT'), + (None, 'START', 'foo'), + ('OUTSIDE', 'TEXT', 'FOO'), + (None, 'TEXT', ' 1.'), + (None, 'END', 'foo'), + (None, 'START', 'bar'), + (None, 'TEXT', 'BAR'), + (None, 'END', 'bar'), + (None, 'END', 'root')] ) @@ -972,84 +972,84 @@ def test_prepend_element(self): self.assertEqual( self._apply('foo'), - [(None, START, u'root'), - (None, TEXT, u'ROOT'), - (ENTER, START, u'foo'), - (None, TEXT, u'CONTENT 1'), - (INSIDE, TEXT, u'FOO'), - (EXIT, END, u'foo'), - (None, START, u'bar'), - (None, TEXT, u'BAR'), - (None, END, u'bar'), - (None, END, u'root')] + [(None, START, 'root'), + (None, TEXT, 'ROOT'), + (ENTER, START, 'foo'), + (None, TEXT, 'CONTENT 1'), + (INSIDE, TEXT, 'FOO'), + (EXIT, END, 'foo'), + (None, START, 'bar'), + (None, TEXT, 'BAR'), + (None, END, 'bar'), + (None, END, 'root')] ) def test_prepend_text(self): self.assertEqual( self._apply('text()'), - [(None, START, u'root'), - (OUTSIDE, TEXT, u'ROOT'), - (None, START, u'foo'), - (None, TEXT, u'FOO'), - (None, END, u'foo'), - (None, START, u'bar'), - (None, TEXT, u'BAR'), - (None, END, u'bar'), - (None, END, u'root')] + [(None, START, 'root'), + (OUTSIDE, TEXT, 'ROOT'), + (None, START, 'foo'), + (None, TEXT, 'FOO'), + (None, END, 'foo'), + (None, START, 'bar'), + (None, TEXT, 'BAR'), + (None, END, 'bar'), + (None, END, 'root')] ) def test_prepend_context(self): self.assertEqual( self._apply('.'), - [(ENTER, START, u'root'), - (None, TEXT, u'CONTENT 1'), - (INSIDE, TEXT, u'ROOT'), - (INSIDE, START, u'foo'), - (INSIDE, TEXT, u'FOO'), - (INSIDE, END, u'foo'), - (INSIDE, START, u'bar'), - (INSIDE, TEXT, u'BAR'), - (INSIDE, END, u'bar'), - (EXIT, END, u'root')], + [(ENTER, START, 'root'), + (None, TEXT, 'CONTENT 1'), + (INSIDE, TEXT, 'ROOT'), + (INSIDE, START, 'foo'), + (INSIDE, TEXT, 'FOO'), + (INSIDE, END, 'foo'), + (INSIDE, START, 'bar'), + (INSIDE, TEXT, 'BAR'), + (INSIDE, END, 'bar'), + (EXIT, END, 'root')], ) def test_prepend_text_context(self): self.assertEqual( self._apply('.', html='foo'), - [(OUTSIDE, TEXT, u'foo')] + [(OUTSIDE, TEXT, 'foo')] ) def test_prepend_adjacent_elements(self): self.assertEqual( self._apply('*'), - [(None, START, u'root'), - (None, TEXT, u'ROOT'), - (ENTER, START, u'foo'), - (None, TEXT, u'CONTENT 1'), - (INSIDE, TEXT, u'FOO'), - (EXIT, END, u'foo'), - (ENTER, START, u'bar'), - (None, TEXT, u'CONTENT 2'), - (INSIDE, TEXT, u'BAR'), - (EXIT, END, u'bar'), - (None, END, u'root')] + [(None, START, 'root'), + (None, TEXT, 'ROOT'), + (ENTER, START, 'foo'), + (None, TEXT, 'CONTENT 1'), + (INSIDE, TEXT, 'FOO'), + (EXIT, END, 'foo'), + (ENTER, START, 'bar'), + (None, TEXT, 'CONTENT 2'), + (INSIDE, TEXT, 'BAR'), + (EXIT, END, 'bar'), + (None, END, 'root')] ) def test_prepend_all(self): self.assertEqual( self._apply('*|text()'), - [(None, START, u'root'), - (OUTSIDE, TEXT, u'ROOT'), - (ENTER, START, u'foo'), - (None, TEXT, u'CONTENT 1'), - (INSIDE, TEXT, u'FOO'), - (EXIT, END, u'foo'), - (ENTER, START, u'bar'), - (None, TEXT, u'CONTENT 2'), - (INSIDE, TEXT, u'BAR'), - (EXIT, END, u'bar'), - (None, END, u'root')] + [(None, START, 'root'), + (OUTSIDE, TEXT, 'ROOT'), + (ENTER, START, 'foo'), + (None, TEXT, 'CONTENT 1'), + (INSIDE, TEXT, 'FOO'), + (EXIT, END, 'foo'), + (ENTER, START, 'bar'), + (None, TEXT, 'CONTENT 2'), + (INSIDE, TEXT, 'BAR'), + (EXIT, END, 'bar'), + (None, END, 'root')] ) def test_prepend_with_callback(self): @@ -1059,16 +1059,16 @@ yield '%2i.' % count[0] self.assertEqual( self._apply('foo', content), - [(None, 'START', u'root'), - (None, 'TEXT', u'ROOT'), - (ENTER, 'START', u'foo'), - (None, 'TEXT', u' 1.'), - (INSIDE, 'TEXT', u'FOO'), - (EXIT, 'END', u'foo'), - (None, 'START', u'bar'), - (None, 'TEXT', u'BAR'), - (None, 'END', u'bar'), - (None, 'END', u'root')] + [(None, 'START', 'root'), + (None, 'TEXT', 'ROOT'), + (ENTER, 'START', 'foo'), + (None, 'TEXT', ' 1.'), + (INSIDE, 'TEXT', 'FOO'), + (EXIT, 'END', 'foo'), + (None, 'START', 'bar'), + (None, 'TEXT', 'BAR'), + (None, 'END', 'bar'), + (None, 'END', 'root')] ) @@ -1078,84 +1078,84 @@ def test_append_element(self): self.assertEqual( self._apply('foo'), - [(None, START, u'root'), - (None, TEXT, u'ROOT'), - (ENTER, START, u'foo'), - (INSIDE, TEXT, u'FOO'), - (None, TEXT, u'CONTENT 1'), - (EXIT, END, u'foo'), - (None, START, u'bar'), - (None, TEXT, u'BAR'), - (None, END, u'bar'), - (None, END, u'root')] + [(None, START, 'root'), + (None, TEXT, 'ROOT'), + (ENTER, START, 'foo'), + (INSIDE, TEXT, 'FOO'), + (None, TEXT, 'CONTENT 1'), + (EXIT, END, 'foo'), + (None, START, 'bar'), + (None, TEXT, 'BAR'), + (None, END, 'bar'), + (None, END, 'root')] ) def test_append_text(self): self.assertEqual( self._apply('text()'), - [(None, START, u'root'), - (OUTSIDE, TEXT, u'ROOT'), - (None, START, u'foo'), - (None, TEXT, u'FOO'), - (None, END, u'foo'), - (None, START, u'bar'), - (None, TEXT, u'BAR'), - (None, END, u'bar'), - (None, END, u'root')] + [(None, START, 'root'), + (OUTSIDE, TEXT, 'ROOT'), + (None, START, 'foo'), + (None, TEXT, 'FOO'), + (None, END, 'foo'), + (None, START, 'bar'), + (None, TEXT, 'BAR'), + (None, END, 'bar'), + (None, END, 'root')] ) def test_append_context(self): self.assertEqual( self._apply('.'), - [(ENTER, START, u'root'), - (INSIDE, TEXT, u'ROOT'), - (INSIDE, START, u'foo'), - (INSIDE, TEXT, u'FOO'), - (INSIDE, END, u'foo'), - (INSIDE, START, u'bar'), - (INSIDE, TEXT, u'BAR'), - (INSIDE, END, u'bar'), - (None, TEXT, u'CONTENT 1'), - (EXIT, END, u'root')], + [(ENTER, START, 'root'), + (INSIDE, TEXT, 'ROOT'), + (INSIDE, START, 'foo'), + (INSIDE, TEXT, 'FOO'), + (INSIDE, END, 'foo'), + (INSIDE, START, 'bar'), + (INSIDE, TEXT, 'BAR'), + (INSIDE, END, 'bar'), + (None, TEXT, 'CONTENT 1'), + (EXIT, END, 'root')], ) def test_append_text_context(self): self.assertEqual( self._apply('.', html='foo'), - [(OUTSIDE, TEXT, u'foo')] + [(OUTSIDE, TEXT, 'foo')] ) def test_append_adjacent_elements(self): self.assertEqual( self._apply('*'), - [(None, START, u'root'), - (None, TEXT, u'ROOT'), - (ENTER, START, u'foo'), - (INSIDE, TEXT, u'FOO'), - (None, TEXT, u'CONTENT 1'), - (EXIT, END, u'foo'), - (ENTER, START, u'bar'), - (INSIDE, TEXT, u'BAR'), - (None, TEXT, u'CONTENT 2'), - (EXIT, END, u'bar'), - (None, END, u'root')] + [(None, START, 'root'), + (None, TEXT, 'ROOT'), + (ENTER, START, 'foo'), + (INSIDE, TEXT, 'FOO'), + (None, TEXT, 'CONTENT 1'), + (EXIT, END, 'foo'), + (ENTER, START, 'bar'), + (INSIDE, TEXT, 'BAR'), + (None, TEXT, 'CONTENT 2'), + (EXIT, END, 'bar'), + (None, END, 'root')] ) def test_append_all(self): self.assertEqual( self._apply('*|text()'), - [(None, START, u'root'), - (OUTSIDE, TEXT, u'ROOT'), - (ENTER, START, u'foo'), - (INSIDE, TEXT, u'FOO'), - (None, TEXT, u'CONTENT 1'), - (EXIT, END, u'foo'), - (ENTER, START, u'bar'), - (INSIDE, TEXT, u'BAR'), - (None, TEXT, u'CONTENT 2'), - (EXIT, END, u'bar'), - (None, END, u'root')] + [(None, START, 'root'), + (OUTSIDE, TEXT, 'ROOT'), + (ENTER, START, 'foo'), + (INSIDE, TEXT, 'FOO'), + (None, TEXT, 'CONTENT 1'), + (EXIT, END, 'foo'), + (ENTER, START, 'bar'), + (INSIDE, TEXT, 'BAR'), + (None, TEXT, 'CONTENT 2'), + (EXIT, END, 'bar'), + (None, END, 'root')] ) def test_append_with_callback(self): @@ -1165,16 +1165,16 @@ yield '%2i.' % count[0] self.assertEqual( self._apply('foo', content), - [(None, 'START', u'root'), - (None, 'TEXT', u'ROOT'), - (ENTER, 'START', u'foo'), - (INSIDE, 'TEXT', u'FOO'), - (None, 'TEXT', u' 1.'), - (EXIT, 'END', u'foo'), - (None, 'START', u'bar'), - (None, 'TEXT', u'BAR'), - (None, 'END', u'bar'), - (None, 'END', u'root')] + [(None, 'START', 'root'), + (None, 'TEXT', 'ROOT'), + (ENTER, 'START', 'foo'), + (INSIDE, 'TEXT', 'FOO'), + (None, 'TEXT', ' 1.'), + (EXIT, 'END', 'foo'), + (None, 'START', 'bar'), + (None, 'TEXT', 'BAR'), + (None, 'END', 'bar'), + (None, 'END', 'root')] ) @@ -1187,29 +1187,29 @@ def test_set_existing_attr(self): self.assertEqual( self._attr('foo', 'name', 'FOO'), - [(None, START, (u'root', {})), - (None, TEXT, u'ROOT'), - (ENTER, START, (u'foo', {u'name': 'FOO', u'size': '100'})), - (INSIDE, TEXT, u'FOO'), - (EXIT, END, u'foo'), - (None, START, (u'bar', {u'name': u'bar'})), - (None, TEXT, u'BAR'), - (None, END, u'bar'), - (None, END, u'root')] + [(None, START, ('root', {})), + (None, TEXT, 'ROOT'), + (ENTER, START, ('foo', {'name': 'FOO', 'size': '100'})), + (INSIDE, TEXT, 'FOO'), + (EXIT, END, 'foo'), + (None, START, ('bar', {'name': 'bar'})), + (None, TEXT, 'BAR'), + (None, END, 'bar'), + (None, END, 'root')] ) def test_set_new_attr(self): self.assertEqual( self._attr('foo', 'title', 'FOO'), - [(None, START, (u'root', {})), - (None, TEXT, u'ROOT'), - (ENTER, START, (u'foo', {u'name': u'foo', u'title': 'FOO', u'size': '100'})), - (INSIDE, TEXT, u'FOO'), - (EXIT, END, u'foo'), - (None, START, (u'bar', {u'name': u'bar'})), - (None, TEXT, u'BAR'), - (None, END, u'bar'), - (None, END, u'root')] + [(None, START, ('root', {})), + (None, TEXT, 'ROOT'), + (ENTER, START, ('foo', {'name': 'foo', 'title': 'FOO', 'size': '100'})), + (INSIDE, TEXT, 'FOO'), + (EXIT, END, 'foo'), + (None, START, ('bar', {'name': 'bar'})), + (None, TEXT, 'BAR'), + (None, END, 'bar'), + (None, END, 'root')] ) def test_attr_from_function(self): @@ -1219,29 +1219,29 @@ self.assertEqual( self._attr('foo|bar', 'name', set), - [(None, START, (u'root', {})), - (None, TEXT, u'ROOT'), - (ENTER, START, (u'foo', {u'name': 'FOO', u'size': '100'})), - (INSIDE, TEXT, u'FOO'), - (EXIT, END, u'foo'), - (ENTER, START, (u'bar', {u'name': 'BAR'})), - (INSIDE, TEXT, u'BAR'), - (EXIT, END, u'bar'), - (None, END, u'root')] + [(None, START, ('root', {})), + (None, TEXT, 'ROOT'), + (ENTER, START, ('foo', {'name': 'FOO', 'size': '100'})), + (INSIDE, TEXT, 'FOO'), + (EXIT, END, 'foo'), + (ENTER, START, ('bar', {'name': 'BAR'})), + (INSIDE, TEXT, 'BAR'), + (EXIT, END, 'bar'), + (None, END, 'root')] ) def test_remove_attr(self): self.assertEqual( self._attr('foo', 'name', None), - [(None, START, (u'root', {})), - (None, TEXT, u'ROOT'), - (ENTER, START, (u'foo', {u'size': '100'})), - (INSIDE, TEXT, u'FOO'), - (EXIT, END, u'foo'), - (None, START, (u'bar', {u'name': u'bar'})), - (None, TEXT, u'BAR'), - (None, END, u'bar'), - (None, END, u'root')] + [(None, START, ('root', {})), + (None, TEXT, 'ROOT'), + (ENTER, START, ('foo', {'size': '100'})), + (INSIDE, TEXT, 'FOO'), + (EXIT, END, 'foo'), + (None, START, ('bar', {'name': 'bar'})), + (None, TEXT, 'BAR'), + (None, END, 'bar'), + (None, END, 'root')] ) def test_remove_attr_with_function(self): @@ -1250,15 +1250,15 @@ self.assertEqual( self._attr('foo', 'name', set), - [(None, START, (u'root', {})), - (None, TEXT, u'ROOT'), - (ENTER, START, (u'foo', {u'size': '100'})), - (INSIDE, TEXT, u'FOO'), - (EXIT, END, u'foo'), - (None, START, (u'bar', {u'name': u'bar'})), - (None, TEXT, u'BAR'), - (None, END, u'bar'), - (None, END, u'root')] + [(None, START, ('root', {})), + (None, TEXT, 'ROOT'), + (ENTER, START, ('foo', {'size': '100'})), + (INSIDE, TEXT, 'FOO'), + (EXIT, END, 'foo'), + (None, START, ('bar', {'name': 'bar'})), + (None, TEXT, 'BAR'), + (None, END, 'bar'), + (None, END, 'root')] ) @@ -1294,65 +1294,65 @@ def test_copy_element(self): self.assertEqual( self._apply('foo')[1], - [[(None, START, u'foo'), - (None, TEXT, u'FOO'), - (None, END, u'foo')]] + [[(None, START, 'foo'), + (None, TEXT, 'FOO'), + (None, END, 'foo')]] ) def test_copy_adjacent_elements(self): self.assertEqual( self._apply('foo|bar')[1], - [[(None, START, u'foo'), - (None, TEXT, u'FOO'), - (None, END, u'foo')], - [(None, START, u'bar'), - (None, TEXT, u'BAR'), - (None, END, u'bar')]] + [[(None, START, 'foo'), + (None, TEXT, 'FOO'), + (None, END, 'foo')], + [(None, START, 'bar'), + (None, TEXT, 'BAR'), + (None, END, 'bar')]] ) def test_copy_all(self): self.assertEqual( self._apply('*|text()')[1], - [[(None, TEXT, u'ROOT')], - [(None, START, u'foo'), - (None, TEXT, u'FOO'), - (None, END, u'foo')], - [(None, START, u'bar'), - (None, TEXT, u'BAR'), - (None, END, u'bar')]] + [[(None, TEXT, 'ROOT')], + [(None, START, 'foo'), + (None, TEXT, 'FOO'), + (None, END, 'foo')], + [(None, START, 'bar'), + (None, TEXT, 'BAR'), + (None, END, 'bar')]] ) def test_copy_text(self): self.assertEqual( self._apply('*/text()')[1], - [[(None, TEXT, u'FOO')], - [(None, TEXT, u'BAR')]] + [[(None, TEXT, 'FOO')], + [(None, TEXT, 'BAR')]] ) def test_copy_context(self): self.assertEqual( self._apply('.')[1], - [[(None, START, u'root'), - (None, TEXT, u'ROOT'), - (None, START, u'foo'), - (None, TEXT, u'FOO'), - (None, END, u'foo'), - (None, START, u'bar'), - (None, TEXT, u'BAR'), - (None, END, u'bar'), - (None, END, u'root')]] + [[(None, START, 'root'), + (None, TEXT, 'ROOT'), + (None, START, 'foo'), + (None, TEXT, 'FOO'), + (None, END, 'foo'), + (None, START, 'bar'), + (None, TEXT, 'BAR'), + (None, END, 'bar'), + (None, END, 'root')]] ) def test_copy_attribute(self): self.assertEqual( self._apply('foo/@name', with_attrs=True)[1], - [[(None, ATTR, {'name': u'foo'})]] + [[(None, ATTR, {'name': 'foo'})]] ) def test_copy_attributes(self): self.assertEqual( self._apply('foo/@*', with_attrs=True)[1], - [[(None, ATTR, {u'name': u'foo', u'size': u'100'})]] + [[(None, ATTR, {'name': 'foo', 'size': '100'})]] ) @@ -1362,104 +1362,104 @@ def test_cut_element(self): self.assertEqual( self._apply('foo'), - ([(None, START, u'root'), - (None, TEXT, u'ROOT'), - (None, START, u'bar'), - (None, TEXT, u'BAR'), - (None, END, u'bar'), - (None, END, u'root')], - [[(None, START, u'foo'), - (None, TEXT, u'FOO'), - (None, END, u'foo')]]) + ([(None, START, 'root'), + (None, TEXT, 'ROOT'), + (None, START, 'bar'), + (None, TEXT, 'BAR'), + (None, END, 'bar'), + (None, END, 'root')], + [[(None, START, 'foo'), + (None, TEXT, 'FOO'), + (None, END, 'foo')]]) ) def test_cut_adjacent_elements(self): self.assertEqual( self._apply('foo|bar'), - ([(None, START, u'root'), - (None, TEXT, u'ROOT'), + ([(None, START, 'root'), + (None, TEXT, 'ROOT'), (BREAK, BREAK, None), - (None, END, u'root')], - [[(None, START, u'foo'), - (None, TEXT, u'FOO'), - (None, END, u'foo')], - [(None, START, u'bar'), - (None, TEXT, u'BAR'), - (None, END, u'bar')]]) + (None, END, 'root')], + [[(None, START, 'foo'), + (None, TEXT, 'FOO'), + (None, END, 'foo')], + [(None, START, 'bar'), + (None, TEXT, 'BAR'), + (None, END, 'bar')]]) ) def test_cut_all(self): self.assertEqual( self._apply('*|text()'), - ([(None, 'START', u'root'), + ([(None, 'START', 'root'), ('BREAK', 'BREAK', None), ('BREAK', 'BREAK', None), - (None, 'END', u'root')], - [[(None, 'TEXT', u'ROOT')], - [(None, 'START', u'foo'), - (None, 'TEXT', u'FOO'), - (None, 'END', u'foo')], - [(None, 'START', u'bar'), - (None, 'TEXT', u'BAR'), - (None, 'END', u'bar')]]) + (None, 'END', 'root')], + [[(None, 'TEXT', 'ROOT')], + [(None, 'START', 'foo'), + (None, 'TEXT', 'FOO'), + (None, 'END', 'foo')], + [(None, 'START', 'bar'), + (None, 'TEXT', 'BAR'), + (None, 'END', 'bar')]]) ) def test_cut_text(self): self.assertEqual( self._apply('*/text()'), - ([(None, 'START', u'root'), - (None, 'TEXT', u'ROOT'), - (None, 'START', u'foo'), - (None, 'END', u'foo'), - (None, 'START', u'bar'), -RefactoringTool: Refactored ./genshi/filters/tests/test_html.py (None, 'END', u'bar'), - (None, 'END', u'root')], - [[(None, 'TEXT', u'FOO')], - [(None, 'TEXT', u'BAR')]]) + ([(None, 'START', 'root'), + (None, 'TEXT', 'ROOT'), + (None, 'START', 'foo'), + (None, 'END', 'foo'), + (None, 'START', 'bar'), + (None, 'END', 'bar'), + (None, 'END', 'root')], + [[(None, 'TEXT', 'FOO')], + [(None, 'TEXT', 'BAR')]]) ) def test_cut_context(self): self.assertEqual( self._apply('.')[1], - [[(None, 'START', u'root'), - (None, 'TEXT', u'ROOT'), - (None, 'START', u'foo'), - (None, 'TEXT', u'FOO'), - (None, 'END', u'foo'), - (None, 'START', u'bar'), - (None, 'TEXT', u'BAR'), - (None, 'END', u'bar'), - (None, 'END', u'root')]] + [[(None, 'START', 'root'), + (None, 'TEXT', 'ROOT'), + (None, 'START', 'foo'), + (None, 'TEXT', 'FOO'), + (None, 'END', 'foo'), + (None, 'START', 'bar'), + (None, 'TEXT', 'BAR'), + (None, 'END', 'bar'), + (None, 'END', 'root')]] ) def test_cut_attribute(self): self.assertEqual( self._apply('foo/@name', with_attrs=True), - ([(None, START, (u'root', {})), - (None, TEXT, u'ROOT'), - (None, START, (u'foo', {u'size': u'100'})), - (None, TEXT, u'FOO'), - (None, END, u'foo'), - (None, START, (u'bar', {u'name': u'bar'})), - (None, TEXT, u'BAR'), - (None, END, u'bar'), - (None, END, u'root')], - [[(None, ATTR, {u'name': u'foo'})]]) + ([(None, START, ('root', {})), + (None, TEXT, 'ROOT'), + (None, START, ('foo', {'size': '100'})), + (None, TEXT, 'FOO'), + (None, END, 'foo'), + (None, START, ('bar', {'name': 'bar'})), + (None, TEXT, 'BAR'), + (None, END, 'bar'), + (None, END, 'root')], + [[(None, ATTR, {'name': 'foo'})]]) ) def test_cut_attributes(self): self.assertEqual( self._apply('foo/@*', with_attrs=True), - ([(None, START, (u'root', {})), - (None, TEXT, u'ROOT'), - (None, START, (u'foo', {})), - (None, TEXT, u'FOO'), - (None, END, u'foo'), - (None, START, (u'bar', {u'name': u'bar'})), - (None, TEXT, u'BAR'), - (None, END, u'bar'), - (None, END, u'root')], - [[(None, ATTR, {u'name': u'foo', u'size': u'100'})]]) + ([(None, START, ('root', {})), + (None, TEXT, 'ROOT'), + (None, START, ('foo', {})), + (None, TEXT, 'FOO'), + (None, END, 'foo'), + (None, START, ('bar', {'name': 'bar'})), + (None, TEXT, 'BAR'), + (None, END, 'bar'), + (None, END, 'root')], + [[(None, ATTR, {'name': 'foo', 'size': '100'})]]) ) # XXX Test this when the XPath implementation is fixed (#233). --- ./genshi/filters/tests/test_html.py (original) +++ ./genshi/filters/tests/test_html.py (refactored) @@ -21,115 +21,115 @@ class HTMLFormFillerTestCase(unittest.TestCase): def test_fill_input_text_no_value(self): - html = HTML(u"""

+ html = HTML("""

""") | HTMLFormFiller() - self.assertEquals("""

+ self.assertEqual("""

""", html.render()) def test_fill_input_text_single_value(self): - html = HTML(u"""

+ html = HTML("""

""") | HTMLFormFiller(data={'foo': 'bar'}) - self.assertEquals("""

+ self.assertEqual("""

""", html.render()) def test_fill_input_text_multi_value(self): - html = HTML(u"""

+ html = HTML("""

""") | HTMLFormFiller(data={'foo': ['bar']}) - self.assertEquals("""

+ self.assertEqual("""

""", html.render()) def test_fill_input_hidden_no_value(self): - html = HTML(u"""

+ html = HTML("""

""") | HTMLFormFiller() - self.assertEquals("""

+ self.assertEqual("""

""", html.render()) def test_fill_input_hidden_single_value(self): - html = HTML(u"""

+ html = HTML("""

""") | HTMLFormFiller(data={'foo': 'bar'}) - self.assertEquals("""

+ self.assertEqual("""

""", html.render()) def test_fill_input_hidden_multi_value(self): - html = HTML(u"""

+ html = HTML("""

""") | HTMLFormFiller(data={'foo': ['bar']}) - self.assertEquals("""

+ self.assertEqual("""

""", html.render()) def test_fill_textarea_no_value(self): - html = HTML(u"""

+ html = HTML("""

""") | HTMLFormFiller() - self.assertEquals("""

+ self.assertEqual("""

""") | HTMLFormFiller(data={'foo': 'bar'}) - self.assertEquals("""

+ self.assertEqual("""

""", html.render()) def test_fill_textarea_multi_value(self): - html = HTML(u"""

+ html = HTML("""

""") | HTMLFormFiller(data={'foo': ['bar']}) - self.assertEquals("""

+ self.assertEqual("""

""", html.render()) def test_fill_textarea_multiple(self): # Ensure that the subsequent textarea doesn't get the data from the # first - html = HTML(u"""

+ html = HTML("""

""") | HTMLFormFiller(data={'foo': 'Some text'}) - self.assertEquals("""

+ self.assertEqual("""

""") | HTMLFormFiller(data={'foo': 'Some text'}) - self.assertEquals("""

+ self.assertEqual("""

""", html.render()) def test_fill_input_checkbox_single_value_auto_no_value(self): - html = HTML(u"""

+ html = HTML("""

""") | HTMLFormFiller() - self.assertEquals("""

+ self.assertEqual("""

""", html.render()) def test_fill_input_checkbox_single_value_auto(self): - html = HTML(u"""

+ html = HTML("""

""") - self.assertEquals("""

+ self.assertEqual("""

""", (html | HTMLFormFiller(data={'foo': ''})).render()) - self.assertEquals("""

+ self.assertEqual("""

""", (html | HTMLFormFiller(data={'foo': 'on'})).render()) @@ -137,10 +137,10 @@ html = HTML("""

""", encoding='ascii') - self.assertEquals("""

+ self.assertEqual("""

""", (html | HTMLFormFiller(data={'foo': '1'})).render()) - self.assertEquals("""

+ self.assertEqual("""

""", (html | HTMLFormFiller(data={'foo': '2'})).render()) @@ -148,79 +148,79 @@ html = HTML("""

""", encoding='ascii') - self.assertEquals("""

+ self.assertEqual("""

""", (html | HTMLFormFiller(data={'foo': []})).render()) - self.assertEquals("""

+ self.assertEqual("""

""", (html | HTMLFormFiller(data={'foo': ['on']})).render()) def test_fill_input_checkbox_multi_value_defined(self): - html = HTML(u"""

+ html = HTML("""

""") - self.assertEquals("""

+ self.assertEqual("""

""", (html | HTMLFormFiller(data={'foo': ['1']})).render()) - self.assertEquals("""

+ self.assertEqual("""

""", (html | HTMLFormFiller(data={'foo': ['2']})).render()) def test_fill_input_radio_no_value(self): - html = HTML(u"""

+ html = HTML("""

""") | HTMLFormFiller() - self.assertEquals("""

+ self.assertEqual("""

""", html.render()) def test_fill_input_radio_single_value(self): - html = HTML(u"""

+ html = HTML("""

""") - self.assertEquals("""

+ self.assertEqual("""

""", (html | HTMLFormFiller(data={'foo': '1'})).render()) - self.assertEquals("""

+ self.assertEqual("""

""", (html | HTMLFormFiller(data={'foo': '2'})).render()) def test_fill_input_radio_multi_value(self): - html = HTML(u"""

+ html = HTML("""

""") - self.assertEquals("""

+ self.assertEqual("""

""", (html | HTMLFormFiller(data={'foo': ['1']})).render()) - self.assertEquals("""

+ self.assertEqual("""

""", (html | HTMLFormFiller(data={'foo': ['2']})).render()) def test_fill_input_radio_empty_string(self): - html = HTML(u"""

+ html = HTML("""

""") - self.assertEquals("""

+ self.assertEqual("""

""", (html | HTMLFormFiller(data={'foo': ''})).render()) def test_fill_input_radio_multi_empty_string(self): - html = HTML(u"""

+ html = HTML("""

""") - self.assertEquals("""

+ self.assertEqual("""

""", (html | HTMLFormFiller(data={'foo': ['']})).render()) def test_fill_select_no_value_auto(self): - html = HTML(u"""

+ html = HTML("""

""") | HTMLFormFiller() - self.assertEquals("""

+ self.assertEqual("""

""") | HTMLFormFiller() - self.assertEquals("""

+ self.assertEqual("""

""") | HTMLFormFiller(data={'foo': '1'}) - self.assertEquals("""

+ self.assertEqual("""

""") | HTMLFormFiller(data={'foo': '1'}) - self.assertEquals("""

+ self.assertEqual("""

""") | HTMLFormFiller(data={'foo': ['1', '3']}) - self.assertEquals("""

+ self.assertEqual("""

""") | HTMLFormFiller(data={'foo': ['1', '3']}) - self.assertEquals("""

+ self.assertEqual("""

""").generate(x=1) | HTMLFormFiller(data={'foo': '1'}) - self.assertEquals(u"""
+ self.assertEqual(""" @@ -326,37 +326,37 @@
""").generate(x=1) | HTMLFormFiller(data={'foo': 'foo 1 bar'}) - self.assertEquals("""
+ self.assertEqual("""
""", html.render()) def test_fill_option_unicode_value(self): - html = HTML(u"""
+ html = HTML(""" --- ./genshi/filters/tests/i18n.py (original) +++ ./genshi/filters/tests/i18n.py (refactored) @@ -46,7 +46,7 @@ if tmsg is missing: if self._fallback: return self._fallback.ugettext(message) - return unicode(message) + return str(message) return tmsg else: def gettext(self, message): @@ -55,7 +55,7 @@ if tmsg is missing: if self._fallback: return self._fallback.gettext(message) - return unicode(message) + return str(message) return tmsg if IS_PYTHON2: @@ -94,10 +94,10 @@ """ Verify that translated attributes end up in a proper `Attrs` instance. """ - html = HTML(u""" + html = HTML(""" """) - translator = Translator(lambda s: u"Voh") + translator = Translator(lambda s: "Voh") stream = list(html.filter(translator)) kind, data, pos = stream[2] assert isinstance(data[1], Attrs) @@ -139,7 +139,7 @@ translator = Translator() messages = list(translator.extract(tmpl.stream)) self.assertEqual(1, len(messages)) - self.assertEqual((2, 'gettext', u'Gr\xfc\xdfe', []), messages[0]) + self.assertEqual((2, 'gettext', 'Gr\xfc\xdfe', []), messages[0]) def test_extract_included_attribute_text(self): tmpl = MarkupTemplate(""" @@ -237,10 +237,10 @@ Please see Help for details.

""") --- ./genshi/filters/i18n.py (original) +++ ./genshi/filters/i18n.py (refactored) @@ -163,12 +163,12 @@ def _generate(): msgbuf = MessageBuffer(self) - previous = stream.next() + previous = next(stream) if previous[0] is START: yield previous else: msgbuf.append(*previous) - previous = stream.next() + previous = next(stream) for kind, data, pos in stream: msgbuf.append(*previous) previous = kind, data, pos @@ -188,13 +188,13 @@ strip = False stream = iter(stream) - previous = stream.next() + previous = next(stream) if previous[0] is START: for message in translator._extract_attrs(previous, gettext_functions, search_text=search_text): yield message - previous = stream.next() + previous = next(stream) strip = True for event in stream: if event[0] is START: @@ -218,14 +218,14 @@ msgbuf = MessageBuffer(self) stream = _apply_directives(stream, directives, ctxt, vars) - previous = stream.next() + previous = next(stream) if previous[0] is START: yield previous else: msgbuf.append(*previous) try: - previous = stream.next() + previous = next(stream) except StopIteration: # For example or directives yield MSGBUF, (), -1 # the place holder for msgbuf output @@ -246,7 +246,7 @@ def extract(self, translator, stream, gettext_functions=GETTEXT_FUNCTIONS, search_text=True, comment_stack=None, msgbuf=None): stream = iter(stream) - previous = stream.next() + previous = next(stream) if previous[0] is START: # skip the enclosing element @@ -254,7 +254,7 @@ gettext_functions, search_text=search_text): yield message - previous = stream.next() + previous = next(stream) for event in stream: if previous[0] is START: @@ -427,7 +427,7 @@ search_text=True, comment_stack=None): strip = False stream = iter(stream) - previous = stream.next() + previous = next(stream) if previous[0] is START: # skip the enclosing element @@ -435,7 +435,7 @@ gettext_functions, search_text=search_text): yield message - previous = stream.next() + previous = next(stream) strip = True singular_msgbuf = MessageBuffer(self) @@ -480,8 +480,8 @@ # XXX: should we test which form was chosen like this!?!?!? # There should be no match in any catalogue for these singular and # plural test strings - singular = u'O\x85\xbe\xa9\xa8az\xc3?\xe6\xa1\x02n\x84\x93' - plural = u'\xcc\xfb+\xd3Pn\x9d\tT\xec\x1d\xda\x1a\x88\x00' + singular = 'O\x85\xbe\xa9\xa8az\xc3?\xe6\xa1\x02n\x84\x93' + plural = '\xcc\xfb+\xd3Pn\x9d\tT\xec\x1d\xda\x1a\x88\x00' return ngettext(singular, plural, numeral) == plural @@ -702,7 +702,7 @@ if kind is START: tag, attrs = data if tag in self.ignore_tags or \ - isinstance(attrs.get(xml_lang), basestring): + isinstance(attrs.get(xml_lang), str): skip += 1 yield kind, data, pos continue @@ -712,7 +712,7 @@ for name, value in attrs: newval = value - if isinstance(value, basestring): + if isinstance(value, str): if translate_attrs and name in include_attrs: newval = gettext(value) else: @@ -731,7 +731,7 @@ elif translate_text and kind is TEXT: text = data.strip() if text: - data = data.replace(text, unicode(gettext(text))) + RefactoringTool: Refactored ./genshi/filters/html.py data = data.replace(text, str(gettext(text))) yield kind, data, pos elif kind is SUB: @@ -829,7 +829,7 @@ if kind is START and not skip: tag, attrs = data if tag in self.ignore_tags or \ - isinstance(attrs.get(xml_lang), basestring): + isinstance(attrs.get(xml_lang), str): skip += 1 continue @@ -916,7 +916,7 @@ def _extract_attrs(self, event, gettext_functions, search_text): for name, value in event[1][1]: - if search_text and isinstance(value, basestring): + if search_text and isinstance(value, str): if name in self.include_attrs: text = value.strip() if text: @@ -1180,10 +1180,10 @@ and node.func.id in gettext_functions: strings = [] def _add(arg): - if isinstance(arg, _ast.Str) and isinstance(arg.s, unicode): + if isinstance(arg, _ast.Str) and isinstance(arg.s, str): strings.append(arg.s) elif isinstance(arg, _ast.Str): - strings.append(unicode(arg.s, 'utf-8')) + strings.append(str(arg.s, 'utf-8')) elif arg: strings.append(None) [_add(arg) for arg in node.args] @@ -1222,22 +1222,22 @@ :rtype: ``iterator`` """ template_class = options.get('template_class', MarkupTemplate) - if isinstance(template_class, basestring): + if isinstance(template_class, str): module, clsname = template_class.split(':', 1) template_class = getattr(__import__(module, {}, {}, [clsname]), clsname) encoding = options.get('encoding', None) extract_text = options.get('extract_text', True) - if isinstance(extract_text, basestring): + if isinstance(extract_text, str): extract_text = extract_text.lower() in ('1', 'on', 'yes', 'true') ignore_tags = options.get('ignore_tags', Translator.IGNORE_TAGS) - if isinstance(ignore_tags, basestring): + if isinstance(ignore_tags, str): ignore_tags = ignore_tags.split() ignore_tags = [QName(tag) for tag in ignore_tags] include_attrs = options.get('include_attrs', Translator.INCLUDE_ATTRS) - if isinstance(include_attrs, basestring): + if isinstance(include_attrs, str): include_attrs = include_attrs.split() include_attrs = [QName(attr) for attr in include_attrs] --- ./genshi/filters/html.py (original) +++ ./genshi/filters/html.py (refactored) @@ -101,13 +101,13 @@ checked = False if isinstance(value, (list, tuple)): if declval is not None: - checked = declval in [unicode(v) for v + checked = declval in [str(v) for v in value] else: checked = any(value) else: if declval is not None: - checked = declval == unicode(value) + checked = declval == str(value) elif type == 'checkbox': checked = bool(value) if checked: @@ -123,7 +123,7 @@ value = value[0] if value is not None: attrs |= [ - (QName('value'), unicode(value)) + (QName('value'), str(value)) ] elif tagname == 'select': name = attrs.get('namRefactoringTool: No changes to ./genshi/filters/__init__.py RefactoringTool: Refactored ./genshi/core.py e') @@ -166,10 +166,10 @@ select_value = None elif in_select and tagname == 'option': if isinstance(select_value, (tuple, list)): - selected = option_value in [unicode(v) for v + selected = option_value in [str(v) for v in select_value] else: - selected = option_value == unicode(select_value) + selected = option_value == str(select_value) okind, (tag, attrs), opos = option_start if selected: attrs |= [(QName('selected'), 'selected')] @@ -185,7 +185,7 @@ option_text = [] elif in_textarea and tagname == 'textarea': if textarea_value: - yield TEXT, unicode(textarea_value), pos + yield TEXT, str(textarea_value), pos textarea_value = None in_textarea = False yield kind, data, pos @@ -311,7 +311,7 @@ # The set of URI schemes that are considered safe. # IE6 - _EXPRESSION_SEARCH = re.compile(u""" + _EXPRESSION_SEARCH = re.compile(""" [eE \uFF25 # FULLWIDTH LATIN CAPITAL LETTER E \uFF45 # FULLWIDTH LATIN SMALL LETTER E @@ -356,7 +356,7 @@ # IE6 # 7) Particular bit of Unicode characters _URL_FINDITER = re.compile( - u'[Uu][Rr\u0280][Ll\u029F]\s*\(([^)]+)').finditer + '[Uu][Rr\u0280][Ll\u029F]\s*\(([^)]+)').finditer def __call__(self, stream): """Apply the filter to the given stream. @@ -528,7 +528,7 @@ def _repl(match): t = match.group(1) if t: - return unichr(int(t, 16)) + return chr(int(t, 16)) t = match.group(2) if t == '\\': return r'\\' --- ./genshi/core.py (original) +++ ./genshi/core.py (refactored) @@ -270,7 +270,7 @@ def _ensure(stream): """Ensure that every item on the stream is actually a markup event.""" stream = iter(stream) - event = stream.next() + event = next(stream) # Check whether the iterable is a real markup event stream by examining the # first item it yields; if it's not we'll need to do some conversion @@ -279,7 +279,7 @@ if hasattr(event, 'totuple'): event = event.totuple() else: - event = TEXT, unicode(event), (None, -1, -1) + event = TEXT, str(event), (None, -1, -1) yield event return @@ -408,7 +408,7 @@ :return: a new instance with the attribute removed :rtype: `Attrs` """ - if isinstance(names, basestring): + if isinstance(names, str): names = (names,) return Attrs([(name, val) for name, val in self if name not in names]) @@ -442,33 +442,33 @@ return TEXT, ''.join([x[1] for x in self]), (None, -1, -1) -class Markup(unicode): +class Markup(str): """Marks a string as being safe for inclusion in HTML/XML output without needing to be escaped. """ __slots__ = [] def __add__(self, other): - return Markup(unicode.__add__(self, escape(other))) + return Markup(str.__add__(self, escape(other))) def __radd__(self, other): - return Markup(unicode.__add__(escape(other), self)) + return Markup(str.__add__(escape(other), self)) def __mod__(self, args): if isinstance(args, dict): - args = dict(zip(args.keys(), map(escape, args.values()))) + args = dict(list(zip(list(args.keys()), list(map(escape, list(args.values())))))) elif isinstance(args, (list, tuple)): args = tuple(map(escape, args)) else: args = escape(args) - return MarkRefactoringTool: Refactored ./genshi/compat.py RefactoringTool: Refactored ./genshi/builder.py up(unicode.__mod__(self, args)) + return Markup(str.__mod__(self, args)) def __mul__(self, num): - return Markup(unicode.__mul__(self, num)) + return Markup(str.__mul__(self, num)) __rmul__ = __mul__ def __repr__(self): - return "<%s %s>" % (type(self).__name__, unicode.__repr__(self)) + return "<%s %s>" % (type(self).__name__, str.__repr__(self)) def join(self, seq, escape_quotes=True): """Return a `Markup` object which is the concatenation of the strings @@ -485,7 +485,7 @@ :rtype: `Markup` :see: `escape` """ - return Markup(unicode.join(self, [escape(item, quotes=escape_quotes) + return Markup(str.join(self, [escape(item, quotes=escape_quotes) for item in seq])) @classmethod @@ -535,7 +535,7 @@ """ if not self: return '' - return unicode(self).replace('"', '"') \ + return str(self).replace('"', '"') \ .replace('>', '>') \ .replace('<', '<') \ .replace('&', '&') @@ -649,7 +649,7 @@ self.uri = uri def __init__(self, uri): - self.uri = unicode(uri) + self.uri = str(uri) def __contains__(self, qname): return qname.namespace == self.uri @@ -688,7 +688,7 @@ XML_NAMESPACE = Namespace('http://www.w3.org/XML/1998/namespace') -class QName(unicode): +class QName(str): """A qualified element or attribute name. The unicode value of instances of this class contains the qualified name of @@ -726,11 +726,11 @@ qname = qname.lstrip('{') parts = qname.split('}', 1) if len(parts) > 1: - self = unicode.__new__(cls, '{%s' % qname) - self.namespace, self.localname = map(unicode, parts) + self = str.__new__(cls, '{%s' % qname) + self.namespace, self.localname = list(map(str, parts)) else: - self = unicode.__new__(cls, qname) - self.namespace, self.localname = None, unicode(qname) + self = str.__new__(cls, qname) + self.namespace, self.localname = None, str(qname) return self def __getnewargs__(self): --- ./genshi/compat.py (original) +++ ./genshi/compat.py (refactored) @@ -38,9 +38,9 @@ # We need to differentiate between StringIO and BytesIO in places if IS_PYTHON2: - from StringIO import StringIO + from io import StringIO try: - from cStringIO import StringIO as BytesIO + from io import StringIO as BytesIO except ImportError: BytesIO = StringIO else: @@ -93,7 +93,7 @@ next = next except NameError: def next(iterator): - return iterator.next() + return iterator.__next__() # Compatibility fallback implementations for Python < 2.5 --- ./genshi/builder.py (original) +++ ./genshi/builder.py (refactored) @@ -107,7 +107,7 @@ return str(self.generate()) def __unicode__(self): - return unicode(self.generate()) + return str(self.generate()) def __html__(self): return Markup(self.generate()) @@ -118,7 +118,7 @@ :param node: the node to append; can be an `Element`, `Fragment`, or a `Stream`, or a Python string or number """ - if isinstance(node, (Stream, Element, basestring, int, float, long)): + if isinstance(node, (Stream, Element, str, int, float)): # For objects of a known/primitive type, we avoid the check for # whether it is iterable for better performance self.children.append(node) @@ -140,8 +140,8 @@ for event in child: yield event else: - if not isinstance(child, basestring): - child = unicode(child) + if not isinstance(child, str): + child = str(child) yield TEXT, child, (None, -1, -1) RefactoringTool: No changes to ./genshi/__init__.py RefactoringTool: No changes to ./fixes/fix_unicode_in_strings.py RefactoringTool: No changes to ./examples/tutorial/geddit/model.py RefactoringTool: No changes to ./examples/tutorial/geddit/lib/template.py RefactoringTool: No changes to ./examples/tutorial/geddit/lib/ajax.py RefactoringTool: Refactored ./examples/tutorial/geddit/controller.py RefactoringTool: Refactored ./examples/bench/xpath.py RefactoringTool: No changes to ./examples/bench/django/templatetags/bench.py RefactoringTool: Refactored ./examples/bench/bigtable.py def generate(self): @@ -155,10 +155,10 @@ def _kwargs_to_attrs(kwargs): attrs = [] names = set() - for name, value in kwargs.items(): + for name, value in list(kwargs.items()): name = name.rstrip('_').replace('_', '-') if value is not None and name not in names: - attrs.append((QName(name), unicode(value))) + attrs.append((QName(name), str(value))) names.add(name) return Attrs(attrs) --- ./examples/tutorial/geddit/controller.py (original) +++ ./examples/tutorial/geddit/controller.py (refactored) @@ -20,7 +20,7 @@ @cherrypy.expose @template.output('index.html') def index(self): - links = sorted(self.data.values(), key=operator.attrgetter('time')) + links = sorted(list(self.data.values()), key=operator.attrgetter('time')) return template.render(links=links) @cherrypy.expose @@ -35,7 +35,7 @@ link = Link(**data) self.data[link.id] = link raise cherrypy.HTTPRedirect('/') - except Invalid, e: + except Invalid as e: errors = e.unpack_errors() else: errors = {} @@ -69,7 +69,7 @@ raise cherrypy.HTTPRedirect('/info/%s' % link.id) return template.render('_comment.html', comment=comment, num=len(link.comments)) - except Invalid, e: + except Invalid as e: errors = e.unpack_errors() else: errors = {} @@ -89,7 +89,7 @@ raise cherrypy.NotFound() return template.render('info.xml', link=link) else: - links = sorted(self.data.values(), key=operator.attrgetter('time')) + links = sorted(list(self.data.values()), key=operator.attrgetter('time')) return template.render(links=links) --- ./examples/bench/xpath.py (original) +++ ./examples/bench/xpath.py (refactored) @@ -32,7 +32,7 @@ runs = 1 while True: start_time = time_func() - for _ in xrange(runs): + for _ in range(runs): f() dt = time_func() - start_time if dt >= acurate_time: @@ -61,23 +61,23 @@ def test_paths_in_streams(exprs, streams, test_strategies=False): for expr in exprs: - print "Testing path %r" % expr + print("Testing path %r" % expr) for stream, sname in streams: - print '\tRunning on "%s" example:' % sname + print('\tRunning on "%s" example:' % sname) path = Path(expr) def f(): for e in path.select(stream): pass t = spell(benchmark(f)) - print "\t\tselect:\t\t%s" % t + print("\t\tselect:\t\t%s" % t) def f(): path = Path(expr) for e in path.select(stream): pass t = spell(benchmark(f)) - print "\t\tinit + select:\t%s" % t + print("\t\tinit + select:\t%s" % t) if test_strategies and len(path.paths) == 1: from genshi.path import GenericStrategy, SingleStepStrategy, \ @@ -88,13 +88,13 @@ for strategy in strategies: if not strategy.supports(path.paths[0]): continue - print "\t\t%s Strategy"%strategy.__name__ + print("\t\t%s Strategy"%strategy.__name__) fp = FakePath(strategy(path.paths[0])) def f(): for e in fp.select(stream): pass t = spell(benchmark(f)) - print "\t\t\tselect:\t\t%s"%t + print("\t\t\tselect:\t\t%s"%t) def test_documents(test_strategies=False): --- ./examples/bench/bigtable.py (original) +++ ./examples/bench/bigtable.py (refactored) @@ -8,7 +8,7 @@ import cgi import sys import timeit -from StringIO import StringIO RefactoringTool: Refactored ./examples/bench/basic.py +from io import StringIO from genshi.builder import tag from genshi.template import MarkupTemplate, NewTextTemplate @@ -111,7 +111,7 @@ def test_genshi_builder(): """Genshi template + tag builder""" stream = tag.TABLE([ - tag.tr([tag.td(c) for c in row.values()]) + tag.tr([tag.td(c) for c in list(row.values())]) for row in table ]).generate() stream = genshi_tmpl2.generate(table=stream) @@ -121,7 +121,7 @@ """Genshi tag builder""" stream = tag.TABLE([ tag.tr([ - tag.td(c) for c in row.values() + tag.td(c) for c in list(row.values()) ]) for row in table ]).generate() @@ -151,7 +151,7 @@ _table = cet.Element('table') for row in table: td = cet.SubElement(_table, 'tr') - for c in row.values(): + for c in list(row.values()): cet.SubElement(td, 'td').text=str(c) kid_tmpl2.table = _table kid_tmpl2.serialize(output='html') @@ -162,7 +162,7 @@ _table = et.Element('table') for row in table: tr = et.SubElement(_table, 'tr') - for c in row.values(): + for c in list(row.values()): et.SubElement(tr, 'td').text=str(c) et.tostring(_table) @@ -172,7 +172,7 @@ _table = cet.Element('table') for row in table: tr = cet.SubElement(_table, 'tr') - for c in row.values(): + for c in list(row.values()): cet.SubElement(tr, 'td').text=str(c) cet.tostring(_table) @@ -201,7 +201,7 @@ 'test_et', 'test_cet', 'test_clearsilver', 'test_django'] if which: - tests = filter(lambda n: n[5:] in which, tests) + tests = [n for n in tests if n[5:] in which] for test in [t for t in tests if hasattr(sys.modules[__name__], t)]: t = timeit.Timer(setup='from __main__ import %s;' % test, @@ -212,7 +212,7 @@ result = ' (not installed?)' else: result = '%16.2f ms' % (1000 * time) - print '%-35s %s' % (getattr(sys.modules[__name__], test).__doc__, result) + print('%-35s %s' % (getattr(sys.modules[__name__], test).__doc__, result)) if __name__ == '__main__': --- ./examples/bench/basic.py (original) +++ ./examples/bench/basic.py (refactored) @@ -5,7 +5,7 @@ from cgi import escape import os -from StringIO import StringIO +from io import StringIO import sys import timeit @@ -22,7 +22,7 @@ return template.generate(**data).render('xhtml') if verbose: - print render() + print(render()) return render def genshi_text(dirname, verbose=False): @@ -36,14 +36,14 @@ return template.generate(**data).render('text') if verbose: - print render() + print(render()) return render def mako(dirname, verbose=False): try: from mako.lookup import TemplateLookup except ImportError: - print>>sys.stderr, 'Mako not installed, skipping' + print('Mako not installed, skipping', file=sys.stderr) return lambda: None lookup = TemplateLookup(directories=[dirname], filesystem_checks=False) template = lookup.get_template('template.html') @@ -52,7 +52,7 @@ list_items=['Number %d' % num for num in range(1, 15)]) return template.render(**data) if verbose: - print render() + print(render()) return render def cheetah(dirname, verbose=False): @@ -60,7 +60,7 @@ try: from Cheetah.Template import Template except ImportError: - print>>sys.stderr, 'Cheetah not installed, skipping' + print('Cheetah not installed, skipping', file=sys.stderr) return lambda: None class MyTemplate(Template): def serverSidePath(self, path): return os.path.join(dirname, path) @@ -70,18 +70,18 @@ def render(): template = MyTemplate(file=filename, searchList=[{'titRefactoringTool: Refactored ./examples/basic/run.py le': 'Just a test', 'user': 'joe', - 'items': [u'Number %d' % num for num in range(1, 15)]}]) + 'items': ['Number %d' % num for num in range(1, 15)]}]) return template.respond() if verbose: - print render() + print(render()) return render def clearsilver(dirname, verbose=False): try: import neo_cgi except ImportError: - print>>sys.stderr, 'ClearSilver not installed, skipping' + print('ClearSilver not installed, skipping', file=sys.stderr) return lambda: None neo_cgi.update() import neo_util @@ -98,7 +98,7 @@ return cs.render() if verbose: - print render() + print(render()) return render def django(dirname, verbose=False): @@ -106,7 +106,7 @@ from django.conf import settings settings.configure(TEMPLATE_DIRS=[os.path.join(dirname, 'templates')]) except ImportError: - print>>sys.stderr, 'Django not installed, skipping' + print('Django not installed, skipping', file=sys.stderr) return lambda: None from django import template, templatetags from django.template import loader @@ -119,14 +119,14 @@ return tmpl.render(template.Context(data)) if verbose: - print render() + print(render()) return render def kid(dirname, verbose=False): try: import kid except ImportError: - print>>sys.stderr, "Kid not installed, skipping" + print("Kid not installed, skipping", file=sys.stderr) return lambda: None kid.path = kid.TemplatePath([dirname]) template = kid.load_template('template.kid').Template @@ -137,14 +137,14 @@ ).serialize(output='xhtml') if verbose: - print render() + print(render()) return render def simpletal(dirname, verbose=False): try: from simpletal import simpleTAL, simpleTALES except ImportError: - print>>sys.stderr, "SimpleTAL not installed, skipping" + print("SimpleTAL not installed, skipping", file=sys.stderr) return lambda: None fileobj = open(os.path.join(dirname, 'base.html')) base = simpleTAL.compileHTMLTemplate(fileobj) @@ -163,7 +163,7 @@ return buf.getvalue() if verbose: - print render() + print(render()) return render def run(engines, number=2000, verbose=False): @@ -171,19 +171,19 @@ for engine in engines: dirname = os.path.join(basepath, engine) if verbose: - print '%s:' % engine.capitalize() - print '--------------------------------------------------------' + print('%s:' % engine.capitalize()) + print('--------------------------------------------------------') else: - print '%s:' % engine.capitalize(), + print('%s:' % engine.capitalize(), end=' ') t = timeit.Timer(setup='from __main__ import %s; render = %s(r"%s", %s)' % (engine, engine, dirname, verbose), stmt='render()') time = t.timeit(number=number) / number if verbose: - print '--------------------------------------------------------' - print '%.2f ms' % (1000 * time) - if verbose: - print '--------------------------------------------------------' + print('--------------------------------------------------------') + print('%.2f ms' % (1000 * time)) + if verbose: + print('--------------------------------------------------------') if __name__ == '__main__': --- ./examples/basic/run.py (original) +++ ./examples/basic/run.py (refactored) @@ -13,13 +13,13 @@ start = time.clock() tmpl = loader.load('test.html') - print ' --> parse stage: %.4f ms' % ((time.clock() - start) * 1000) + print(' --> parse stage: %.4f ms' % ((time.clock() - start) * 1000)) data = dict(hello='', skin='default', hey='ZYX', boRefactoringTool: Refactored ./examples/basic/kidrun.py RefactoringTool: Refactored ./doc/common/doctools.py RefactoringTool: Files that were modified: RefactoringTool: ./setup.py RefactoringTool: ./scripts/ast_generator.py RefactoringTool: ./genshi/util.py RefactoringTool: ./genshi/tests/util.py RefactoringTool: ./genshi/tests/path.py RefactoringTool: ./genshi/tests/output.py RefactoringTool: ./genshi/tests/input.py RefactoringTool: ./genshi/tests/core.py RefactoringTool: ./genshi/tests/builder.py RefactoringTool: ./genshi/tests/__init__.py RefactoringTool: ./genshi/template/text.py RefactoringTool: ./genshi/template/tests/text.py RefactoringTool: ./genshi/template/tests/plugin.py RefactoringTool: ./genshi/template/tests/markup.py RefactoringTool: ./genshi/template/tests/loader.py RefactoringTool: ./genshi/template/tests/interpolation.py RefactoringTool: ./genshi/template/tests/eval.py RefactoringTool: ./genshi/template/tests/directives.py RefactoringTool: ./genshi/template/tests/base.py RefactoringTool: ./genshi/template/tests/__init__.py RefactoringTool: ./genshi/template/plugin.py RefactoringTool: ./genshi/template/markup.py RefactoringTool: ./genshi/template/loader.py RefactoringTool: ./genshi/template/interpolation.py RefactoringTool: ./genshi/template/eval.py RefactoringTool: ./genshi/template/directives.py RefactoringTool: ./genshi/template/base.py RefactoringTool: ./genshi/template/astutil.py RefactoringTool: ./genshi/template/ast24.py RefactoringTool: ./genshi/template/_ast24.py RefactoringTool: ./genshi/template/__init__.py RefactoringTool: ./genshi/path.py RefactoringTool: ./genshi/output.py RefactoringTool: ./genshi/input.py RefactoringTool: ./genshi/filters/transform.py RefactoringTool: ./genshi/filters/tests/transform.py RefactoringTool: ./genshi/filters/tests/test_html.py RefactoringTool: ./genshi/filters/tests/i18n.py RefactoringTool: ./genshi/filters/tests/__init__.py RefactoringTool: ./genshi/filters/i18n.py RefactoringTool: ./genshi/filters/html.py RefactoringTool: ./genshi/filters/__init__.py RefactoringTool: ./genshi/core.py RefactoringTool: ./genshi/compat.py RefactoringTool: ./genshi/builder.py RefactoringTool: ./genshi/__init__.py RefactoringTool: ./fixes/fix_unicode_in_strings.py RefactoringTool: ./examples/tutorial/geddit/model.py RefactoringTool: ./examples/tutorial/geddit/lib/template.py RefactoringTool: ./examples/tutorial/geddit/lib/ajax.py RefactoringTool: ./examples/tutorial/geddit/controller.py RefactoringTool: ./examples/bench/xpath.py RefactoringTool: ./examples/bench/django/templatetags/bench.py RefactoringTool: ./examples/bench/bigtable.py RefactoringTool: ./examples/bench/basic.py RefactoringTool: ./examples/basic/run.py RefactoringTool: ./examples/basic/kidrun.py RefactoringTool: ./doc/common/doctools.py RefactoringTool: Warnings/messages while refactoring: RefactoringTool: ### In file ./genshi/compat.py ### RefactoringTool: Line 93: Calls to builtin next() possibly shadowed by global binding zz=None, items=['Number %d' % num for num in range(1, 15)], prefix='#') - print tmpl.generate(**data).render(method='html') + print(tmpl.generate(**data).render(method='html')) times = [] for i in range(1000): @@ -28,10 +28,10 @@ times.append(time.clock() - start) sys.stdout.write('.') sys.stdout.flush() - print + print() - print ' --> render stage: %s ms (average)' % ( - (sum(times) / len(times) * 1000)) + print(' --> render stage: %s ms (average)' % ( + (sum(times) / len(times) * 1000))) if __name__ == '__main__': if '-p' in sys.argv: --- ./examples/basic/kidrun.py (original) +++ ./examples/basic/kidrun.py (refactored) @@ -17,11 +17,11 @@ start = time.clock() template = kid.Template(file='test.kid', **ctxt) - print ' --> parse stage: %.4f ms' % ((time.clock() - start) * 1000) + print(' --> parse stage: %.4f ms' % ((time.clock() - start) * 1000)) for output in template.generate(): sys.stdout.write(output) - print + print() times = [] for i in range(1000): @@ -30,10 +30,10 @@ times.append(time.clock() - start) sys.stdout.write('.') sys.stdout.flush() - print + print() - print ' --> render stage: %s ms (average)' % ( - (sum(times) / len(times) * 1000)) + print(' --> render stage: %s ms (average)' % ( + (sum(times) / len(times) * 1000))) if __name__ == '__main__': if '-p' in sys.argv: --- ./doc/common/doctools.py (original) +++ ./doc/common/doctools.py (refactored) @@ -69,7 +69,7 @@ dest = os.path.splitext(source)[0] + '.html' if self.force or not os.path.exists(dest) or \ os.path.getmtime(dest) < os.path.getmtime(source): - print('building documentation file %s' % dest) + print(('building documentation file %s' % dest)) publish_cmdline(writer_name='html', argv=['--config=%s' % docutils_conf, source, dest]) @@ -119,5 +119,5 @@ def run(self): for filename in glob('doc/*.txt'): - print('testing documentation file %s' % filename) + print(('testing documentation file %s' % filename)) doctest.testfile(filename, False, optionflags=doctest.ELLIPSIS) + 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 running build running build_py creating build creating build/lib.linux-x86_64-3.5 creating build/lib.linux-x86_64-3.5/genshi copying genshi/builder.py -> build/lib.linux-x86_64-3.5/genshi copying genshi/compat.py -> build/lib.linux-x86_64-3.5/genshi copying genshi/core.py -> build/lib.linux-x86_64-3.5/genshi copying genshi/input.py -> build/lib.linux-x86_64-3.5/genshi copying genshi/output.py -> build/lib.linux-x86_64-3.5/genshi copying genshi/path.py -> build/lib.linux-x86_64-3.5/genshi copying genshi/util.py -> build/lib.linux-x86_64-3.5/genshi copying genshi/__init__.py -> build/lib.linux-x86_64-3.5/genshi creating build/lib.linux-x86_64-3.5/genshi/filters copying genshi/filters/html.py -> build/lib.linux-x86_64-3.5/genshi/filters copying genshi/filters/i18n.py -> build/lib.linux-x86_64-3.5/genshi/filters copying genshi/filters/transform.py -> build/lib.linux-x86_64-3.5/genshi/filters copying genshi/filters/__init__.py -> build/lib.linux-x86_64-3.5/genshi/filters creating build/lib.linux-x86_64-3.5/genshi/template copying genshi/template/ast24.py -> build/lib.linux-x86_64-3.5/genshi/template copying genshi/template/base.py -> build/lib.linux-x86_64-3.5/genshi/template copying genshi/template/directives.py -> build/lib.linux-x86_64-3.5/genshi/template copying genshi/template/eval.py -> build/lib.linux-x86_64-3.5/genshi/template copying genshi/template/interpolation.py -> build/lib.linux-x86_64-3.5/genshi/template copying genshi/template/loader.py -> build/lib.linux-x86_64-3.5/genshi/template copying genshi/template/markup.py -> build/lib.linux-x86_64-3.5/genshi/template copying genshi/template/plugin.py -> build/lib.linux-x86_64-3.5/genshi/template copying genshi/template/text.py -> build/lib.linux-x86_64-3.5/genshi/template copying genshi/template/astutil.py -> build/lib.linux-x86_64-3.5/genshi/template copying genshi/template/_ast24.py -> build/lib.linux-x86_64-3.5/genshi/template copying genshi/template/__init__.py -> build/lib.linux-x86_64-3.5/genshi/template creating build/lib.linux-x86_64-3.5/genshi/tests copying genshi/tests/core.py -> build/lib.linux-x86_64-3.5/genshi/tests copying genshi/tests/input.py -> build/lib.linux-x86_64-3.5/genshi/tests copying genshi/tests/output.py -> build/lib.linux-x86_64-3.5/genshi/tests copying genshi/tests/path.py -> build/lib.linux-x86_64-3.5/genshi/tests copying genshi/tests/util.py -> build/lib.linux-x86_64-3.5/genshi/tests copying genshi/tests/builder.py -> build/lib.linux-x86_64-3.5/genshi/tests copying genshi/tests/__init__.py -> build/lib.linux-x86_64-3.5/genshi/tests creating build/lib.linux-x86_64-3.5/genshi/filters/tests copying genshi/filters/tests/i18n.py -> build/lib.linux-x86_64-3.5/genshi/filters/tests copying genshi/filters/tests/test_html.py -> build/lib.linux-x86_64-3.5/genshi/filters/tests copying genshi/filters/tests/transform.py -> build/lib.linux-x86_64-3.5/genshi/filters/tests copying genshi/filters/tests/__init__.py -> build/lib.linux-x86_64-3.5/genshi/filters/tests creating build/lib.linux-x86_64-3.5/genshi/template/tests copying genshi/template/tests/directives.py -> build/lib.linux-x86_64-3.5/genshi/template/tests copying genshi/template/tests/eval.py -> build/lib.linux-x86_64-3.5/genshi/template/tests copying genshi/template/tests/interpolation.py -> build/lib.linux-x86_64-3.5/genshi/template/tests copying genshi/template/tests/loader.py -> build/lib.linux-x86_64-3.5/genshi/template/tests copying genshi/template/tests/markup.py -> build/lib.linux-x86_64-3.5/genshi/template/tests copying genshi/template/tests/plugin.py -> build/lib.linux-x86_64-3.5/genshi/template/tests copying genshi/template/tests/text.py -> build/lib.linux-x86_64-3.5/genshi/template/tests copying genshi/template/tests/base.py -> build/lib.linux-x86_64-3.5/genshi/template/tests copying genshi/template/tests/__init__.py -> build/lib.linux-x86_64-3.5/genshi/template/tests creating build/lib.linux-x86_64-3.5/genshi/template/tests/templates copying genshi/template/tests/templates/__init__.py -> build/lib.linux-x86_64-3.5/genshi/template/tests/templates running egg_info writing Genshi.egg-info/PKG-INFO writing top-level names to Genshi.egg-info/top_level.txt writing requirements to Genshi.egg-info/requires.txt writing entry points to Genshi.egg-info/entry_points.txt writing dependency_links to Genshi.egg-info/dependency_links.txt reading manifest file 'Genshi.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '*' found under directory 'doc/logo.lineform' warning: no previously-included files found matching 'doc/2000ft.graffle' warning: no previously-included files matching '*.pyc' found anywhere in distribution writing manifest file 'Genshi.egg-info/SOURCES.txt' copying genshi/_speedups.c -> build/lib.linux-x86_64-3.5/genshi copying genshi/template/tests/templates/functions.html -> build/lib.linux-x86_64-3.5/genshi/template/tests/templates copying genshi/template/tests/templates/functions.txt -> build/lib.linux-x86_64-3.5/genshi/template/tests/templates copying genshi/template/tests/templates/new_syntax.txt -> build/lib.linux-x86_64-3.5/genshi/template/tests/templates copying genshi/template/tests/templates/test.html -> build/lib.linux-x86_64-3.5/genshi/template/tests/templates copying genshi/template/tests/templates/test.txt -> build/lib.linux-x86_64-3.5/genshi/template/tests/templates copying genshi/template/tests/templates/test_no_doctype.html -> build/lib.linux-x86_64-3.5/genshi/template/tests/templates Fixing build/lib.linux-x86_64-3.5/genshi/builder.py build/lib.linux-x86_64-3.5/genshi/compat.py build/lib.linux-x86_64-3.5/genshi/core.py build/lib.linux-x86_64-3.5/genshi/input.py build/lib.linux-x86_64-3.5/genshi/output.py build/lib.linux-x86_64-3.5/genshi/path.py build/lib.linux-x86_64-3.5/genshi/util.py build/lib.linux-x86_64-3.5/genshi/__init__.py build/lib.linux-x86_64-3.5/genshi/filters/html.py build/lib.linux-x86_64-3.5/genshi/filters/i18n.py build/lib.linux-x86_64-3.5/genshi/filters/transform.py build/lib.linux-x86_64-3.5/genshi/filters/__init__.py build/lib.linux-x86_64-3.5/genshi/template/ast24.py build/lib.linux-x86_64-3.5/genshi/template/base.py build/lib.linux-x86_64-3.5/genshi/template/directives.py build/lib.linux-x86_64-3.5/genshi/template/eval.py build/lib.linux-x86_64-3.5/genshi/template/interpolation.py build/lib.linux-x86_64-3.5/genshi/template/loader.py build/lib.linux-x86_64-3.5/genshi/template/markup.py build/lib.linux-x86_64-3.5/genshi/template/plugin.py build/lib.linux-x86_64-3.5/genshi/template/text.py build/lib.linux-x86_64-3.5/genshi/template/astutil.py build/lib.linux-x86_64-3.5/genshi/template/_ast24.py build/lib.linux-x86_64-3.5/genshi/template/__init__.py build/lib.linux-x86_64-3.5/genshi/tests/core.py build/lib.linux-x86_64-3.5/genshi/tests/input.py build/lib.linux-x86_64-3.5/genshi/tests/output.py build/lib.linux-x86_64-3.5/genshi/tests/path.py build/lib.linux-x86_64-3.5/genshi/tests/util.py build/lib.linux-x86_64-3.5/genshi/tests/builder.py build/lib.linux-x86_64-3.5/genshi/tests/__init__.py build/lib.linux-x86_64-3.5/genshi/filters/tests/i18n.py build/lib.linux-x86_64-3.5/genshi/filters/tests/test_html.py build/lib.linux-x86_64-3.5/genshi/filters/tests/transform.py build/lib.linux-x86_64-3.5/genshi/filters/tests/__init__.py build/lib.linux-x86_64-3.5/genshi/template/tests/directives.py build/lib.linux-x86_64-3.5/genshi/template/tests/eval.py build/lib.linux-x86_64-3.5/genshi/template/tests/interpolation.py build/lib.linux-x86_64-3.5/genshi/template/tests/loader.py build/lib.linux-x86_64-3.5/genshi/template/tests/markup.py build/lib.linux-x86_64-3.5/genshi/template/tests/plugin.py build/lib.linux-x86_64-3.5/genshi/template/tests/text.py build/lib.linux-x86_64-3.5/genshi/template/tests/base.py build/lib.linux-x86_64-3.5/genshi/template/tests/__init__.py build/lib.linux-x86_64-3.5/genshi/template/tests/templates/__init__.py Skipping optional fixer: buffer Skipping optional fixer: idioms Skipping optional fixer: set_literal Skipping optional fixer: ws_comma Fixing build/lib.linux-x86_64-3.5/genshi/builder.py build/lib.linux-x86_64-3.5/genshi/compat.py build/lib.linux-x86_64-3.5/genshi/core.py build/lib.linux-x86_64-3.5/genshi/input.py build/lib.linux-x86_64-3.5/genshi/output.py build/lib.linux-x86_64-3.5/genshi/path.py build/lib.linux-x86_64-3.5/genshi/util.py build/lib.linux-x86_64-3.5/genshi/__init__.py build/lib.linux-x86_64-3.5/genshi/filters/html.py build/lib.linux-x86_64-3.5/genshi/filters/i18n.py build/lib.linux-x86_64-3.5/genshi/filters/transform.py build/lib.linux-x86_64-3.5/genshi/filters/__init__.py build/lib.linux-x86_64-3.5/genshi/template/ast24.py build/lib.linux-x86_64-3.5/genshi/template/base.py build/lib.linux-x86_64-3.5/genshi/template/directives.py build/lib.linux-x86_64-3.5/genshi/template/eval.py build/lib.linux-x86_64-3.5/genshi/template/interpolation.py build/lib.linux-x86_64-3.5/genshi/template/loader.py build/lib.linux-x86_64-3.5/genshi/template/markup.py build/lib.linux-x86_64-3.5/genshi/template/plugin.py build/lib.linux-x86_64-3.5/genshi/template/text.py build/lib.linux-x86_64-3.5/genshi/template/astutil.py build/lib.linux-x86_64-3.5/genshi/template/_ast24.py build/lib.linux-x86_64-3.5/genshi/template/__init__.py build/lib.linux-x86_64-3.5/genshi/tests/core.py build/lib.linux-x86_64-3.5/genshi/tests/input.py build/lib.linux-x86_64-3.5/genshi/tests/output.py build/lib.linux-x86_64-3.5/genshi/tests/path.py build/lib.linux-x86_64-3.5/genshi/tests/util.py build/lib.linux-x86_64-3.5/genshi/tests/builder.py build/lib.linux-x86_64-3.5/genshi/tests/__init__.py build/lib.linux-x86_64-3.5/genshi/filters/tests/i18n.py build/lib.linux-x86_64-3.5/genshi/filters/tests/test_html.py build/lib.linux-x86_64-3.5/genshi/filters/tests/transform.py build/lib.linux-x86_64-3.5/genshi/filters/tests/__init__.py build/lib.linux-x86_64-3.5/genshi/template/tests/directives.py build/lib.linux-x86_64-3.5/genshi/template/tests/eval.py build/lib.linux-x86_64-3.5/genshi/template/tests/interpolation.py build/lib.linux-x86_64-3.5/genshi/template/tests/loader.py build/lib.linux-x86_64-3.5/genshi/template/tests/markup.py build/lib.linux-x86_64-3.5/genshi/template/tests/plugin.py build/lib.linux-x86_64-3.5/genshi/template/tests/text.py build/lib.linux-x86_64-3.5/genshi/template/tests/base.py build/lib.linux-x86_64-3.5/genshi/template/tests/__init__.py build/lib.linux-x86_64-3.5/genshi/template/tests/templates/__init__.py Skipping optional fixer: buffer Skipping optional fixer: idioms Skipping optional fixer: set_literal Skipping optional fixer: ws_comma running build_ext building 'genshi._speedups' extension creating build/temp.linux-x86_64-3.5 creating build/temp.linux-x86_64-3.5/genshi x86_64-alt-linux-gcc -pthread -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -pipe -Wall -g -O2 -fPIC -I/usr/include/python3.5m -c genshi/_speedups.c -o build/temp.linux-x86_64-3.5/genshi/_speedups.o genshi/_speedups.c: In function 'escape': genshi/_speedups.c:89:13: error: 'PyUnicodeObject {aka struct }' has no member named 'str' inp = in->str; ^ genshi/_speedups.c:90:24: error: 'PyUnicodeObject {aka struct }' has no member named 'length' while (*(inp) || in->length > inp - in->str) { ^ genshi/_speedups.c:90:43: error: 'PyUnicodeObject {aka struct }' has no member named 'str' while (*(inp) || in->length > inp - in->str) { ^ genshi/_speedups.c:120:13: error: 'PyUnicodeObject {aka struct }' has no member named 'str' inp = in->str; ^ genshi/_speedups.c:121:15: error: 'PyUnicodeObject {aka struct }' has no member named 'str' outp = out->str; ^ genshi/_speedups.c:122:24: error: 'PyUnicodeObject {aka struct }' has no member named 'length' while (*(inp) || in->length > inp - in->str) { ^ genshi/_speedups.c:122:43: error: 'PyUnicodeObject {aka struct }' has no member named 'str' while (*(inp) || in->length > inp - in->str) { ^ In file included from /usr/include/python3.5m/Python.h:77:0, from genshi/_speedups.c:14: genshi/_speedups.c:125:42: error: 'PyUnicodeObject {aka struct }' has no member named 'length' Py_UNICODE_COPY(outp, inp, in->length - (inp - in->str)); ^ /usr/include/python3.5m/unicodeobject.h:175:36: note: in definition of macro 'Py_UNICODE_COPY' Py_MEMCPY((target), (source), (length)*sizeof(Py_UNICODE)) ^ genshi/_speedups.c:125:62: error: 'PyUnicodeObject {aka struct }' has no member named 'str' Py_UNICODE_COPY(outp, inp, in->length - (inp - in->str)); ^ /usr/include/python3.5m/unicodeobject.h:175:36: note: in definition of macro 'Py_UNICODE_COPY' Py_MEMCPY((target), (source), (length)*sizeof(Py_UNICODE)) ^ genshi/_speedups.c:130:65: error: 'PyUnicodeObject {aka struct }' has no member named 'str' Py_UNICODE_COPY(outp, ((PyUnicodeObject *) amp2)->str, 5); ^ /usr/include/python3.5m/unicodeobject.h:175:26: note: in definition of macro 'Py_UNICODE_COPY' Py_MEMCPY((target), (source), (length)*sizeof(Py_UNICODE)) ^ genshi/_speedups.c:136:68: error: 'PyUnicodeObject {aka struct }' has no member named 'str' Py_UNICODE_COPY(outp, ((PyUnicodeObject *) qt2)->str, 5); ^ /usr/include/python3.5m/unicodeobject.h:175:26: note: in definition of macro 'Py_UNICODE_COPY' Py_MEMCPY((target), (source), (length)*sizeof(Py_UNICODE)) ^ genshi/_speedups.c:144:64: error: 'PyUnicodeObject {aka struct }' has no member named 'str' Py_UNICODE_COPY(outp, ((PyUnicodeObject *) lt2)->str, 4); ^ /usr/include/python3.5m/unicodeobject.h:175:26: note: in definition of macro 'Py_UNICODE_COPY' Py_MEMCPY((target), (source), (length)*sizeof(Py_UNICODE)) ^ genshi/_speedups.c:149:64: error: 'PyUnicodeObject {aka struct }' has no member named 'str' Py_UNICODE_COPY(outp, ((PyUnicodeObject *) gt2)->str, 4); ^ /usr/include/python3.5m/unicodeobject.h:175:26: note: in definition of macro 'Py_UNICODE_COPY' Py_MEMCPY((target), (source), (length)*sizeof(Py_UNICODE)) ^ ********************************************************************** WARNING: An optional C extension could not be compiled, speedups will not be available. ********************************************************************** command 'x86_64-alt-linux-gcc' failed with exit status 1 + popd ~/RPM/BUILD/genshi-0.7 + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.23359 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python-module-genshi-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python-module-genshi-buildroot + cd genshi-0.7 + /usr/bin/python2.7 setup.py install --skip-build --root=/usr/src/tmp/python-module-genshi-buildroot --force --optimize=2 --record=INSTALLED_FILES running install running install_lib creating /usr/src/tmp/python-module-genshi-buildroot creating /usr/src/tmp/python-module-genshi-buildroot/usr creating /usr/src/tmp/python-module-genshi-buildroot/usr/lib64 creating /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7 creating /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages creating /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi copying build/lib.linux-x86_64-2.7/genshi/_speedups.so -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi creating /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests copying build/lib.linux-x86_64-2.7/genshi/tests/__init__.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests copying build/lib.linux-x86_64-2.7/genshi/tests/builder.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests copying build/lib.linux-x86_64-2.7/genshi/tests/core.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests copying build/lib.linux-x86_64-2.7/genshi/tests/input.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests copying build/lib.linux-x86_64-2.7/genshi/tests/output.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests copying build/lib.linux-x86_64-2.7/genshi/tests/path.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests copying build/lib.linux-x86_64-2.7/genshi/tests/util.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests creating /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template creating /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests creating /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/templates copying build/lib.linux-x86_64-2.7/genshi/template/tests/templates/__init__.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/templates copying build/lib.linux-x86_64-2.7/genshi/template/tests/__init__.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests copying build/lib.linux-x86_64-2.7/genshi/template/tests/base.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests copying build/lib.linux-x86_64-2.7/genshi/template/tests/directives.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests copying build/lib.linux-x86_64-2.7/genshi/template/tests/eval.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests copying build/lib.linux-x86_64-2.7/genshi/template/tests/interpolation.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests copying build/lib.linux-x86_64-2.7/genshi/template/tests/loader.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests copying build/lib.linux-x86_64-2.7/genshi/template/tests/markup.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests copying build/lib.linux-x86_64-2.7/genshi/template/tests/plugin.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests copying build/lib.linux-x86_64-2.7/genshi/template/tests/text.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests copying build/lib.linux-x86_64-2.7/genshi/template/__init__.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template copying build/lib.linux-x86_64-2.7/genshi/template/_ast24.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template copying build/lib.linux-x86_64-2.7/genshi/template/ast24.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template copying build/lib.linux-x86_64-2.7/genshi/template/astutil.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template copying build/lib.linux-x86_64-2.7/genshi/template/base.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template copying build/lib.linux-x86_64-2.7/genshi/template/directives.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template copying build/lib.linux-x86_64-2.7/genshi/template/eval.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template copying build/lib.linux-x86_64-2.7/genshi/template/interpolation.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template copying build/lib.linux-x86_64-2.7/genshi/template/loader.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template copying build/lib.linux-x86_64-2.7/genshi/template/markup.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template copying build/lib.linux-x86_64-2.7/genshi/template/plugin.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template copying build/lib.linux-x86_64-2.7/genshi/template/text.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template creating /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters creating /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/tests copying build/lib.linux-x86_64-2.7/genshi/filters/tests/__init__.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/tests copying build/lib.linux-x86_64-2.7/genshi/filters/tests/i18n.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/tests copying build/lib.linux-x86_64-2.7/genshi/filters/tests/test_html.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/tests copying build/lib.linux-x86_64-2.7/genshi/filters/tests/transform.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/tests copying build/lib.linux-x86_64-2.7/genshi/filters/__init__.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters copying build/lib.linux-x86_64-2.7/genshi/filters/html.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters copying build/lib.linux-x86_64-2.7/genshi/filters/i18n.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters copying build/lib.linux-x86_64-2.7/genshi/filters/transform.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters copying build/lib.linux-x86_64-2.7/genshi/__init__.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi copying build/lib.linux-x86_64-2.7/genshi/builder.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi copying build/lib.linux-x86_64-2.7/genshi/compat.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi copying build/lib.linux-x86_64-2.7/genshi/core.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi copying build/lib.linux-x86_64-2.7/genshi/input.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi copying build/lib.linux-x86_64-2.7/genshi/output.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi copying build/lib.linux-x86_64-2.7/genshi/path.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi copying build/lib.linux-x86_64-2.7/genshi/util.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests/__init__.py to __init__.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests/builder.py to builder.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests/core.py to core.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests/input.py to input.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests/output.py to output.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests/path.py to path.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests/util.py to util.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/templates/__init__.py to __init__.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/__init__.py to __init__.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/base.py to base.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/directives.py to directives.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/eval.py to eval.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/interpolation.py to interpolation.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/loader.py to loader.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/markup.py to markup.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/plugin.py to plugin.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/text.py to text.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/__init__.py to __init__.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/_ast24.py to _ast24.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/ast24.py to ast24.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/astutil.py to astutil.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/base.py to base.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/directives.py to directives.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/eval.py to eval.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/interpolation.py to interpolation.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/loader.py to loader.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/markup.py to markup.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/plugin.py to plugin.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/text.py to text.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/tests/__init__.py to __init__.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/tests/i18n.py to i18n.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/tests/test_html.py to test_html.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/tests/transform.py to transform.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/__init__.py to __init__.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/html.py to html.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/i18n.py to i18n.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/transform.py to transform.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/__init__.py to __init__.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/builder.py to builder.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/compat.py to compat.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/core.py to core.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/input.py to input.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/output.py to output.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/path.py to path.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/util.py to util.pyc writing byte-compilation script '/usr/src/tmp/tmp_wkILt.py' /usr/bin/python2.7 -OO /usr/src/tmp/tmp_wkILt.py removing /usr/src/tmp/tmp_wkILt.py running install_egg_info running egg_info writing requirements to Genshi.egg-info/requires.txt writing Genshi.egg-info/PKG-INFO writing top-level names to Genshi.egg-info/top_level.txt writing dependency_links to Genshi.egg-info/dependency_links.txt writing entry points to Genshi.egg-info/entry_points.txt reading manifest file 'Genshi.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '*' found under directory 'doc/logo.lineform' warning: no previously-included files found matching 'doc/2000ft.graffle' warning: no previously-included files matching '*.pyc' found anywhere in distribution writing manifest file 'Genshi.egg-info/SOURCES.txt' Copying Genshi.egg-info to /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/Genshi-0.7-py2.7.egg-info running install_scripts writing list of installed files to 'INSTALLED_FILES' + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/genshi-0.7 + python3 setup.py install --skip-build --root=/usr/src/tmp/python-module-genshi-buildroot --force running install running install_lib creating /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3 creating /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages creating /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi copying build/lib.linux-x86_64-3.5/genshi/_speedups.c -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi creating /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests copying build/lib.linux-x86_64-3.5/genshi/tests/__init__.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests copying build/lib.linux-x86_64-3.5/genshi/tests/builder.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests copying build/lib.linux-x86_64-3.5/genshi/tests/util.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests copying build/lib.linux-x86_64-3.5/genshi/tests/path.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests copying build/lib.linux-x86_64-3.5/genshi/tests/output.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests copying build/lib.linux-x86_64-3.5/genshi/tests/input.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests copying build/lib.linux-x86_64-3.5/genshi/tests/core.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests creating /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template creating /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests creating /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/templates copying build/lib.linux-x86_64-3.5/genshi/template/tests/templates/test_no_doctype.html -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/templates copying build/lib.linux-x86_64-3.5/genshi/template/tests/templates/test.txt -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/templates copying build/lib.linux-x86_64-3.5/genshi/template/tests/templates/test.html -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/templates copying build/lib.linux-x86_64-3.5/genshi/template/tests/templates/new_syntax.txt -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/templates copying build/lib.linux-x86_64-3.5/genshi/template/tests/templates/functions.txt -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/templates copying build/lib.linux-x86_64-3.5/genshi/template/tests/templates/functions.html -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/templates copying build/lib.linux-x86_64-3.5/genshi/template/tests/templates/__init__.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/templates copying build/lib.linux-x86_64-3.5/genshi/template/tests/__init__.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests copying build/lib.linux-x86_64-3.5/genshi/template/tests/base.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests copying build/lib.linux-x86_64-3.5/genshi/template/tests/text.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests copying build/lib.linux-x86_64-3.5/genshi/template/tests/plugin.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests copying build/lib.linux-x86_64-3.5/genshi/template/tests/markup.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests copying build/lib.linux-x86_64-3.5/genshi/template/tests/loader.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests copying build/lib.linux-x86_64-3.5/genshi/template/tests/interpolation.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests copying build/lib.linux-x86_64-3.5/genshi/template/tests/eval.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests copying build/lib.linux-x86_64-3.5/genshi/template/tests/directives.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests copying build/lib.linux-x86_64-3.5/genshi/template/__init__.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template copying build/lib.linux-x86_64-3.5/genshi/template/_ast24.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template copying build/lib.linux-x86_64-3.5/genshi/template/astutil.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template copying build/lib.linux-x86_64-3.5/genshi/template/text.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template copying build/lib.linux-x86_64-3.5/genshi/template/plugin.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template copying build/lib.linux-x86_64-3.5/genshi/template/markup.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template copying build/lib.linux-x86_64-3.5/genshi/template/loader.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template copying build/lib.linux-x86_64-3.5/genshi/template/interpolation.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template copying build/lib.linux-x86_64-3.5/genshi/template/eval.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template copying build/lib.linux-x86_64-3.5/genshi/template/directives.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template copying build/lib.linux-x86_64-3.5/genshi/template/base.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template copying build/lib.linux-x86_64-3.5/genshi/template/ast24.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template creating /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters creating /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/tests copying build/lib.linux-x86_64-3.5/genshi/filters/tests/__init__.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/tests copying build/lib.linux-x86_64-3.5/genshi/filters/tests/transform.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/tests copying build/lib.linux-x86_64-3.5/genshi/filters/tests/test_html.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/tests copying build/lib.linux-x86_64-3.5/genshi/filters/tests/i18n.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/tests copying build/lib.linux-x86_64-3.5/genshi/filters/__init__.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters copying build/lib.linux-x86_64-3.5/genshi/filters/transform.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters copying build/lib.linux-x86_64-3.5/genshi/filters/i18n.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters copying build/lib.linux-x86_64-3.5/genshi/filters/html.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters copying build/lib.linux-x86_64-3.5/genshi/__init__.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi copying build/lib.linux-x86_64-3.5/genshi/util.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi copying build/lib.linux-x86_64-3.5/genshi/path.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi copying build/lib.linux-x86_64-3.5/genshi/output.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi copying build/lib.linux-x86_64-3.5/genshi/input.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi copying build/lib.linux-x86_64-3.5/genshi/core.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi copying build/lib.linux-x86_64-3.5/genshi/compat.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi copying build/lib.linux-x86_64-3.5/genshi/builder.py -> /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests/__init__.py to __init__.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests/builder.py to builder.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests/util.py to util.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests/path.py to path.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests/output.py to output.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests/input.py to input.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests/core.py to core.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/templates/__init__.py to __init__.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/__init__.py to __init__.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/base.py to base.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/text.py to text.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/plugin.py to plugin.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/markup.py to markup.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/loader.py to loader.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/interpolation.py to interpolation.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/eval.py to eval.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/directives.py to directives.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/__init__.py to __init__.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/_ast24.py to _ast24.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/astutil.py to astutil.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/text.py to text.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/plugin.py to plugin.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/markup.py to markup.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/loader.py to loader.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/interpolation.py to interpolation.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/eval.py to eval.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/directives.py to directives.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/base.py to base.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/ast24.py to ast24.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/tests/__init__.py to __init__.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/tests/transform.py to transform.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/tests/test_html.py to test_html.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/tests/i18n.py to i18n.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/__init__.py to __init__.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/transform.py to transform.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/i18n.py to i18n.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/html.py to html.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/__init__.py to __init__.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/util.py to util.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/path.py to path.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/output.py to output.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/input.py to input.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/core.py to core.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/compat.py to compat.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/builder.py to builder.cpython-35.pyc running install_egg_info running egg_info writing top-level names to Genshi.egg-info/top_level.txt writing entry points to Genshi.egg-info/entry_points.txt writing Genshi.egg-info/PKG-INFO writing dependency_links to Genshi.egg-info/dependency_links.txt writing requirements to Genshi.egg-info/requires.txt reading manifest file 'Genshi.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '*' found under directory 'doc/logo.lineform' warning: no previously-included files found matching 'doc/2000ft.graffle' warning: no previously-included files matching '*.pyc' found anywhere in distribution writing manifest file 'Genshi.egg-info/SOURCES.txt' Copying Genshi.egg-info to /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/Genshi-0.7-py3.5.egg-info running install_scripts + popd ~/RPM/BUILD/genshi-0.7 + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python-module-genshi-buildroot (auto) mode of './usr/lib64/python2.7/site-packages/genshi/_speedups.so' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) Verifying and fixing files in /usr/src/tmp/python-module-genshi-buildroot (binconfig,pkgconfig,libtool,desktop) Compressing files in /usr/src/tmp/python-module-genshi-buildroot (auto) Adjusting library links in /usr/src/tmp/python-module-genshi-buildroot ./usr/lib64: Verifying ELF objects in /usr/src/tmp/python-module-genshi-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-genshi-buildroot using /usr/bin/python2.7 unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/tests/__init__.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/tests/i18n.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/tests/test_html.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/tests/transform.pyc compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/tests/__init__.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/tests/i18n.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/tests/test_html.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/tests/transform.py unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/__init__.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/html.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/i18n.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/transform.pyc compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/__init__.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/html.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/i18n.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/transform.py unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/templates/__init__.pyc compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/templates/__init__.py unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/__init__.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/base.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/directives.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/eval.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/interpolation.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/loader.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/markup.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/plugin.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/text.pyc compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/__init__.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/base.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/directives.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/eval.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/interpolation.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/loader.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/markup.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/plugin.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/text.py unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/__init__.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/_ast24.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/ast24.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/astutil.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/base.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/directives.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/eval.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/interpolation.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/loader.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/markup.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/plugin.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/text.pyc compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/__init__.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/_ast24.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/ast24.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/astutil.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/base.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/directives.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/eval.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/interpolation.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/loader.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/markup.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/plugin.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/text.py unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests/__init__.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests/builder.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests/core.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests/input.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests/output.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests/path.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests/util.pyc compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests/__init__.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests/builder.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests/core.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests/input.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests/output.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests/path.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests/util.py unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/__init__.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/builder.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/compat.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/core.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/input.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/output.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/path.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/util.pyc compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/__init__.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/builder.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/compat.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/core.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/input.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/output.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/path.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/util.py Bytecompiling python modules with optimization in /usr/src/tmp/python-module-genshi-buildroot using /usr/bin/python2.7 -O unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/tests/__init__.pyo unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/tests/i18n.pyo unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/tests/test_html.pyo unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/tests/transform.pyo compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/tests/__init__.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/tests/i18n.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/tests/test_html.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/tests/transform.py unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/__init__.pyo unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/html.pyo unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/i18n.pyo unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/transform.pyo compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/__init__.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/html.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/i18n.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/transform.py unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/templates/__init__.pyo compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/templates/__init__.py unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/__init__.pyo unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/base.pyo unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/directives.pyo unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/eval.pyo unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/interpolation.pyo unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/loader.pyo unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/markup.pyo unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/plugin.pyo unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/text.pyo compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/__init__.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/base.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/directives.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/eval.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/interpolation.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/loader.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/markup.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/plugin.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/text.py unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/__init__.pyo unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/_ast24.pyo unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/ast24.pyo unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/astutil.pyo unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/base.pyo unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/directives.pyo unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/eval.pyo unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/interpolation.pyo unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/loader.pyo unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/markup.pyo unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/plugin.pyo unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/text.pyo compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/__init__.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/_ast24.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/ast24.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/astutil.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/base.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/directives.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/eval.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/interpolation.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/loader.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/markup.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/plugin.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/text.py unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests/__init__.pyo unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests/builder.pyo unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests/core.pyo unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests/input.pyo unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests/output.pyo unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests/path.pyo unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests/util.pyo compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests/__init__.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests/builder.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests/core.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests/input.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests/output.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests/path.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests/util.py unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/__init__.pyo unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/builder.pyo unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/compat.pyo unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/core.pyo unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/input.pyo unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/output.pyo unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/path.pyo unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/util.pyo compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/__init__.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/builder.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/compat.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/core.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/input.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/output.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/path.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/util.py Bytecompiling python3 modules in /usr/src/tmp/python-module-genshi-buildroot using python3 unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/__pycache__/__init__.cpython-35.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/__pycache__/builder.cpython-35.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/__pycache__/compat.cpython-35.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/__pycache__/core.cpython-35.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/__pycache__/input.cpython-35.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/__pycache__/output.cpython-35.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/__pycache__/path.cpython-35.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/__pycache__/util.cpython-35.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/__pycache__/__init__.cpython-35.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/__pycache__/html.cpython-35.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/__pycache__/i18n.cpython-35.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/__pycache__/transform.cpython-35.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/tests/__pycache__/__init__.cpython-35.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/tests/__pycache__/i18n.cpython-35.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/tests/__pycache__/test_html.cpython-35.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/tests/__pycache__/transform.cpython-35.pyc compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/tests/__init__.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/tests/i18n.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/tests/test_html.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/tests/transform.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/__init__.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/html.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/i18n.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/transform.py unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/__pycache__/__init__.cpython-35.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/__pycache__/_ast24.cpython-35.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/__pycache__/ast24.cpython-35.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/__pycache__/astutil.cpython-35.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/__pycache__/base.cpython-35.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/__pycache__/directives.cpython-35.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/__pycache__/eval.cpython-35.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/__pycache__/interpolation.cpython-35.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/__pycache__/loader.cpython-35.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/__pycache__/markup.cpython-35.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/__pycache__/plugin.cpython-35.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/__pycache__/text.cpython-35.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/__pycache__/__init__.cpython-35.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/__pycache__/base.cpython-35.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/__pycache__/directives.cpython-35.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/__pycache__/eval.cpython-35.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/__pycache__/interpolation.cpython-35.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/__pycache__/loader.cpython-35.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/__pycache__/markup.cpython-35.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/__pycache__/plugin.cpython-35.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/__pycache__/text.cpython-35.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/templates/__pycache__/__init__.cpython-35.pyc compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/templates/__init__.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/__init__.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/base.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/directives.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/eval.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/interpolation.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/loader.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/markup.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/plugin.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/text.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/__init__.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/_ast24.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/ast24.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/astutil.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/base.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/directives.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/eval.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/interpolation.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/loader.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/markup.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/plugin.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/text.py unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests/__pycache__/__init__.cpython-35.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests/__pycache__/builder.cpython-35.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests/__pycache__/core.cpython-35.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests/__pycache__/input.cpython-35.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests/__pycache__/output.cpython-35.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests/__pycache__/path.cpython-35.pyc unlink /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests/__pycache__/util.cpython-35.pyc compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests/__init__.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests/builder.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests/core.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests/input.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests/output.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests/path.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests/util.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/__init__.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/builder.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/compat.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/core.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/input.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/output.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/path.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/util.py Can't list '/usr/src/tmp/python-module-genshi-buildroot/usr/lib/python3/site-packages' Bytecompiling python3 modules with optimization in /usr/src/tmp/python-module-genshi-buildroot using python3 -O Can't list '/usr/src/tmp/python-module-genshi-buildroot/usr/lib/python3/site-packages' compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/tests/__init__.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/tests/i18n.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/tests/test_html.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/tests/transform.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/__init__.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/html.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/i18n.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/transform.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/templates/__init__.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/__init__.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/base.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/directives.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/eval.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/interpolation.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/loader.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/markup.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/plugin.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/text.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/__init__.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/_ast24.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/ast24.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/astutil.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/base.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/directives.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/eval.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/interpolation.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/loader.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/markup.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/plugin.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/text.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests/__init__.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests/builder.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests/core.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests/input.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests/output.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests/path.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests/util.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/__init__.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/builder.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/compat.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/core.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/input.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/output.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/path.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/util.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python-module-genshi-buildroot using python3 -OO Can't list '/usr/src/tmp/python-module-genshi-buildroot/usr/lib/python3/site-packages' compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/tests/__init__.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/tests/i18n.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/tests/test_html.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/tests/transform.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/__init__.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/html.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/i18n.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/transform.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/templates/__init__.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/__init__.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/base.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/directives.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/eval.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/interpolation.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/loader.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/markup.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/plugin.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/text.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/__init__.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/_ast24.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/ast24.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/astutil.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/base.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/directives.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/eval.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/interpolation.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/loader.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/markup.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/plugin.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/text.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests/__init__.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests/builder.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests/core.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests/input.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests/output.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests/path.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests/util.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/__init__.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/builder.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/compat.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/core.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/input.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/output.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/path.py compile /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/util.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib64/python3/site-packages/genshi/__pycache__/util.cpython-35.opt-1.pyc' => './usr/lib64/python3/site-packages/genshi/__pycache__/util.cpython-35.pyc' './usr/lib64/python3/site-packages/genshi/__pycache__/output.cpython-35.opt-1.pyc' => './usr/lib64/python3/site-packages/genshi/__pycache__/output.cpython-35.pyc' './usr/lib64/python3/site-packages/genshi/__pycache__/input.cpython-35.opt-1.pyc' => './usr/lib64/python3/site-packages/genshi/__pycache__/input.cpython-35.pyc' './usr/lib64/python3/site-packages/genshi/__pycache__/core.cpython-35.opt-1.pyc' => './usr/lib64/python3/site-packages/genshi/__pycache__/core.cpython-35.pyc' './usr/lib64/python3/site-packages/genshi/__pycache__/builder.cpython-35.opt-1.pyc' => './usr/lib64/python3/site-packages/genshi/__pycache__/builder.cpython-35.pyc' './usr/lib64/python3/site-packages/genshi/__pycache__/__init__.cpython-35.opt-1.pyc' => './usr/lib64/python3/site-packages/genshi/__pycache__/__init__.cpython-35.pyc' './usr/lib64/python3/site-packages/genshi/filters/__pycache__/html.cpython-35.opt-1.pyc' => './usr/lib64/python3/site-packages/genshi/filters/__pycache__/html.cpython-35.pyc' './usr/lib64/python3/site-packages/genshi/filters/__pycache__/__init__.cpython-35.opt-1.pyc' => './usr/lib64/python3/site-packages/genshi/filters/__pycache__/__init__.cpython-35.pyc' './usr/lib64/python3/site-packages/genshi/filters/tests/__pycache__/transform.cpython-35.opt-1.pyc' => './usr/lib64/python3/site-packages/genshi/filters/tests/__pycache__/transform.cpython-35.pyc' './usr/lib64/python3/site-packages/genshi/filters/tests/__pycache__/test_html.cpython-35.opt-1.pyc' => './usr/lib64/python3/site-packages/genshi/filters/tests/__pycache__/test_html.cpython-35.pyc' './usr/lib64/python3/site-packages/genshi/filters/tests/__pycache__/test_html.cpython-35.opt-2.pyc' => './usr/lib64/python3/site-packages/genshi/filters/tests/__pycache__/test_html.cpython-35.opt-1.pyc' './usr/lib64/python3/site-packages/genshi/filters/tests/__pycache__/__init__.cpython-35.opt-1.pyc' => './usr/lib64/python3/site-packages/genshi/filters/tests/__pycache__/__init__.cpython-35.pyc' './usr/lib64/python3/site-packages/genshi/filters/tests/__pycache__/__init__.cpython-35.opt-2.pyc' => './usr/lib64/python3/site-packages/genshi/filters/tests/__pycache__/__init__.cpython-35.opt-1.pyc' './usr/lib64/python3/site-packages/genshi/template/__pycache__/text.cpython-35.opt-1.pyc' => './usr/lib64/python3/site-packages/genshi/template/__pycache__/text.cpython-35.pyc' './usr/lib64/python3/site-packages/genshi/template/__pycache__/plugin.cpython-35.opt-1.pyc' => './usr/lib64/python3/site-packages/genshi/template/__pycache__/plugin.cpython-35.pyc' './usr/lib64/python3/site-packages/genshi/template/__pycache__/loader.cpython-35.opt-1.pyc' => './usr/lib64/python3/site-packages/genshi/template/__pycache__/loader.cpython-35.pyc' './usr/lib64/python3/site-packages/genshi/template/__pycache__/interpolation.cpython-35.opt-1.pyc' => './usr/lib64/python3/site-packages/genshi/template/__pycache__/interpolation.cpython-35.pyc' './usr/lib64/python3/site-packages/genshi/template/__pycache__/directives.cpython-35.opt-1.pyc' => './usr/lib64/python3/site-packages/genshi/template/__pycache__/directives.cpython-35.pyc' './usr/lib64/python3/site-packages/genshi/template/__pycache__/astutil.cpython-35.opt-1.pyc' => './usr/lib64/python3/site-packages/genshi/template/__pycache__/astutil.cpython-35.pyc' './usr/lib64/python3/site-packages/genshi/template/__pycache__/_ast24.cpython-35.opt-1.pyc' => './usr/lib64/python3/site-packages/genshi/template/__pycache__/_ast24.cpython-35.pyc' './usr/lib64/python3/site-packages/genshi/template/__pycache__/_ast24.cpython-35.opt-2.pyc' => './usr/lib64/python3/site-packages/genshi/template/__pycache__/_ast24.cpython-35.opt-1.pyc' './usr/lib64/python3/site-packages/genshi/template/__pycache__/__init__.cpython-35.opt-1.pyc' => './usr/lib64/python3/site-packages/genshi/template/__pycache__/__init__.cpython-35.pyc' './usr/lib64/python3/site-packages/genshi/template/tests/__pycache__/text.cpython-35.opt-1.pyc' => './usr/lib64/python3/site-packages/genshi/template/tests/__pycache__/text.cpython-35.pyc' './usr/lib64/python3/site-packages/genshi/template/tests/__pycache__/plugin.cpython-35.opt-2.pyc' => './usr/lib64/python3/site-packages/genshi/template/tests/__pycache__/plugin.cpython-35.opt-1.pyc' './usr/lib64/python3/site-packages/genshi/template/tests/__pycache__/markup.cpython-35.opt-1.pyc' => './usr/lib64/python3/site-packages/genshi/template/tests/__pycache__/markup.cpython-35.pyc' './usr/lib64/python3/site-packages/genshi/template/tests/__pycache__/interpolation.cpython-35.opt-1.pyc' => './usr/lib64/python3/site-packages/genshi/template/tests/__pycache__/interpolation.cpython-35.pyc' './usr/lib64/python3/site-packages/genshi/template/tests/__pycache__/interpolation.cpython-35.opt-2.pyc' => './usr/lib64/python3/site-packages/genshi/template/tests/__pycache__/interpolation.cpython-35.opt-1.pyc' './usr/lib64/python3/site-packages/genshi/template/tests/__pycache__/eval.cpython-35.opt-2.pyc' => './usr/lib64/python3/site-packages/genshi/template/tests/__pycache__/eval.cpython-35.opt-1.pyc' './usr/lib64/python3/site-packages/genshi/template/tests/__pycache__/base.cpython-35.opt-1.pyc' => './usr/lib64/python3/site-packages/genshi/template/tests/__pycache__/base.cpython-35.pyc' './usr/lib64/python3/site-packages/genshi/template/tests/__pycache__/base.cpython-35.opt-2.pyc' => './usr/lib64/python3/site-packages/genshi/template/tests/__pycache__/base.cpython-35.opt-1.pyc' './usr/lib64/python3/site-packages/genshi/template/tests/__pycache__/__init__.cpython-35.opt-1.pyc' => './usr/lib64/python3/site-packages/genshi/template/tests/__pycache__/__init__.cpython-35.pyc' './usr/lib64/python3/site-packages/genshi/template/tests/__pycache__/__init__.cpython-35.opt-2.pyc' => './usr/lib64/python3/site-packages/genshi/template/tests/__pycache__/__init__.cpython-35.opt-1.pyc' './usr/lib64/python3/site-packages/genshi/template/tests/templates/__pycache__/__init__.cpython-35.opt-1.pyc' => './usr/lib64/python3/site-packages/genshi/template/tests/templates/__pycache__/__init__.cpython-35.pyc' './usr/lib64/python3/site-packages/genshi/template/tests/templates/__pycache__/__init__.cpython-35.opt-2.pyc' => './usr/lib64/python3/site-packages/genshi/template/tests/templates/__pycache__/__init__.cpython-35.opt-1.pyc' './usr/lib64/python3/site-packages/genshi/tests/__pycache__/util.cpython-35.opt-1.pyc' => './usr/lib64/python3/site-packages/genshi/tests/__pycache__/util.cpython-35.pyc' './usr/lib64/python3/site-packages/genshi/tests/__pycache__/util.cpython-35.opt-2.pyc' => './usr/lib64/python3/site-packages/genshi/tests/__pycache__/util.cpython-35.opt-1.pyc' './usr/lib64/python3/site-packages/genshi/tests/__pycache__/path.cpython-35.opt-1.pyc' => './usr/lib64/python3/site-packages/genshi/tests/__pycache__/path.cpython-35.pyc' './usr/lib64/python3/site-packages/genshi/tests/__pycache__/output.cpython-35.opt-1.pyc' => './usr/lib64/python3/site-packages/genshi/tests/__pycache__/output.cpython-35.pyc' './usr/lib64/python3/site-packages/genshi/tests/__pycache__/output.cpython-35.opt-2.pyc' => './usr/lib64/python3/site-packages/genshi/tests/__pycache__/output.cpython-35.opt-1.pyc' './usr/lib64/python3/site-packages/genshi/tests/__pycache__/input.cpython-35.opt-1.pyc' => './usr/lib64/python3/site-packages/genshi/tests/__pycache__/input.cpython-35.pyc' './usr/lib64/python3/site-packages/genshi/tests/__pycache__/input.cpython-35.opt-2.pyc' => './usr/lib64/python3/site-packages/genshi/tests/__pycache__/input.cpython-35.opt-1.pyc' './usr/lib64/python3/site-packages/genshi/tests/__pycache__/core.cpython-35.opt-2.pyc' => './usr/lib64/python3/site-packages/genshi/tests/__pycache__/core.cpython-35.opt-1.pyc' './usr/lib64/python3/site-packages/genshi/tests/__pycache__/builder.cpython-35.opt-1.pyc' => './usr/lib64/python3/site-packages/genshi/tests/__pycache__/builder.cpython-35.pyc' './usr/lib64/python3/site-packages/genshi/tests/__pycache__/__init__.cpython-35.opt-1.pyc' => './usr/lib64/python3/site-packages/genshi/tests/__pycache__/__init__.cpython-35.pyc' './usr/lib64/python3/site-packages/genshi/tests/__pycache__/__init__.cpython-35.opt-2.pyc' => './usr/lib64/python3/site-packages/genshi/tests/__pycache__/__init__.cpython-35.opt-1.pyc' Hardlinking identical .pyc and .pyo files './usr/lib64/python2.7/site-packages/genshi/util.pyo' => './usr/lib64/python2.7/site-packages/genshi/util.pyc' './usr/lib64/python2.7/site-packages/genshi/output.pyo' => './usr/lib64/python2.7/site-packages/genshi/output.pyc' './usr/lib64/python2.7/site-packages/genshi/input.pyo' => './usr/lib64/python2.7/site-packages/genshi/input.pyc' './usr/lib64/python2.7/site-packages/genshi/core.pyo' => './usr/lib64/python2.7/site-packages/genshi/core.pyc' './usr/lib64/python2.7/site-packages/genshi/builder.pyo' => './usr/lib64/python2.7/site-packages/genshi/builder.pyc' './usr/lib64/python2.7/site-packages/genshi/__init__.pyo' => './usr/lib64/python2.7/site-packages/genshi/__init__.pyc' './usr/lib64/python2.7/site-packages/genshi/filters/html.pyo' => './usr/lib64/python2.7/site-packages/genshi/filters/html.pyc' './usr/lib64/python2.7/site-packages/genshi/filters/__init__.pyo' => './usr/lib64/python2.7/site-packages/genshi/filters/__init__.pyc' './usr/lib64/python2.7/site-packages/genshi/filters/tests/transform.pyo' => './usr/lib64/python2.7/site-packages/genshi/filters/tests/transform.pyc' './usr/lib64/python2.7/site-packages/genshi/filters/tests/test_html.pyo' => './usr/lib64/python2.7/site-packages/genshi/filters/tests/test_html.pyc' './usr/lib64/python2.7/site-packages/genshi/filters/tests/__init__.pyo' => './usr/lib64/python2.7/site-packages/genshi/filters/tests/__init__.pyc' './usr/lib64/python2.7/site-packages/genshi/template/text.pyo' => './usr/lib64/python2.7/site-packages/genshi/template/text.pyc' './usr/lib64/python2.7/site-packages/genshi/template/plugin.pyo' => './usr/lib64/python2.7/site-packages/genshi/template/plugin.pyc' './usr/lib64/python2.7/site-packages/genshi/template/loader.pyo' => './usr/lib64/python2.7/site-packages/genshi/template/loader.pyc' './usr/lib64/python2.7/site-packages/genshi/template/interpolation.pyo' => './usr/lib64/python2.7/site-packages/genshi/template/interpolation.pyc' './usr/lib64/python2.7/site-packages/genshi/template/directives.pyo' => './usr/lib64/python2.7/site-packages/genshi/template/directives.pyc' './usr/lib64/python2.7/site-packages/genshi/template/astutil.pyo' => './usr/lib64/python2.7/site-packages/genshi/template/astutil.pyc' './usr/lib64/python2.7/site-packages/genshi/template/_ast24.pyo' => './usr/lib64/python2.7/site-packages/genshi/template/_ast24.pyc' './usr/lib64/python2.7/site-packages/genshi/template/__init__.pyo' => './usr/lib64/python2.7/site-packages/genshi/template/__init__.pyc' './usr/lib64/python2.7/site-packages/genshi/template/tests/text.pyo' => './usr/lib64/python2.7/site-packages/genshi/template/tests/text.pyc' './usr/lib64/python2.7/site-packages/genshi/template/tests/markup.pyo' => './usr/lib64/python2.7/site-packages/genshi/template/tests/markup.pyc' './usr/lib64/python2.7/site-packages/genshi/template/tests/interpolation.pyo' => './usr/lib64/python2.7/site-packages/genshi/template/tests/interpolation.pyc' './usr/lib64/python2.7/site-packages/genshi/template/tests/base.pyo' => './usr/lib64/python2.7/site-packages/genshi/template/tests/base.pyc' './usr/lib64/python2.7/site-packages/genshi/template/tests/__init__.pyo' => './usr/lib64/python2.7/site-packages/genshi/template/tests/__init__.pyc' './usr/lib64/python2.7/site-packages/genshi/template/tests/templates/__init__.pyo' => './usr/lib64/python2.7/site-packages/genshi/template/tests/templates/__init__.pyc' './usr/lib64/python2.7/site-packages/genshi/tests/util.pyo' => './usr/lib64/python2.7/site-packages/genshi/tests/util.pyc' './usr/lib64/python2.7/site-packages/genshi/tests/path.pyo' => './usr/lib64/python2.7/site-packages/genshi/tests/path.pyc' './usr/lib64/python2.7/site-packages/genshi/tests/output.pyo' => './usr/lib64/python2.7/site-packages/genshi/tests/output.pyc' './usr/lib64/python2.7/site-packages/genshi/tests/input.pyo' => './usr/lib64/python2.7/site-packages/genshi/tests/input.pyc' './usr/lib64/python2.7/site-packages/genshi/tests/builder.pyo' => './usr/lib64/python2.7/site-packages/genshi/tests/builder.pyc' './usr/lib64/python2.7/site-packages/genshi/tests/__init__.pyo' => './usr/lib64/python2.7/site-packages/genshi/tests/__init__.pyc' Processing files: python-module-genshi-0.7-alt1.1.1.1 warning: File listed twice: /usr/lib64/python2.7/site-packages/Genshi-0.7-py2.7.egg-info/PKG-INFO warning: File listed twice: /usr/lib64/python2.7/site-packages/Genshi-0.7-py2.7.egg-info/SOURCES.txt warning: File listed twice: /usr/lib64/python2.7/site-packages/Genshi-0.7-py2.7.egg-info/dependency_links.txt warning: File listed twice: /usr/lib64/python2.7/site-packages/Genshi-0.7-py2.7.egg-info/entry_points.txt warning: File listed twice: /usr/lib64/python2.7/site-packages/Genshi-0.7-py2.7.egg-info/requires.txt warning: File listed twice: /usr/lib64/python2.7/site-packages/Genshi-0.7-py2.7.egg-info/top_level.txt Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.FcJerv 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.2Eg8S2 find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks) python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/__init__.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/__init__.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/builder.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/compat.py: skipping sys /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/compat.py: line=41 IGNORE (for REQ=slight and deep=8) module=StringIO /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/compat.py: line=43 IGNORE (for REQ=slight and deep=12) module=cStringIO /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/compat.py: line=47 IGNORE (for REQ=slight and deep=8) module=io /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/core.py: line=19 IGNORE (for REQ=slight and deep=8) module=functools python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/core.py: skipping sys python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/core.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/core.py: line=180 IGNORE (for REQ=slight and deep=11) module=genshi /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/core.py: line=219 IGNORE (for REQ=slight and deep=11) module=genshi /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/core.py: line=242 IGNORE (for REQ=slight and deep=11) module=genshi /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/core.py: line=568 IGNORE (for REQ=slight and deep=8) module=genshi python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/__init__.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/__init__.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/__init__.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/html.py: line=19 IGNORE (for REQ=slight and deep=8) module=genshi python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/html.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/html.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/i18n.py: line=24 IGNORE (for REQ=slight and deep=8) module=genshi python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/i18n.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/i18n.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/i18n.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/i18n.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/i18n.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/i18n.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/transform.py: skipping sys python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/transform.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/transform.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/transform.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/input.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/input.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/input.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/output.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/output.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/path.py: line=45 IGNORE (for REQ=slight and deep=8) module=functools python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/path.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/path.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/__init__.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/__init__.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/__init__.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/__init__.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/ast24.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/astutil.py: line=17 IGNORE (for REQ=slight and deep=8) module=_ast /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/astutil.py: line=19 IGNORE (for REQ=slight and deep=8) module=genshi python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/astutil.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/base.py: skipping sys python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/base.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/base.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/base.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/base.py: line=440 IGNORE (for REQ=slight and deep=15) module=genshi /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/base.py: line=478 IGNORE (for REQ=slight and deep=11) module=genshi /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/base.py: line=616 IGNORE (for REQ=slight and deep=11) module=genshi python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/directives.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/directives.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/directives.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/directives.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/eval.py: skipping __builtin__ python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/eval.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/eval.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/eval.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/eval.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/eval.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/interpolation.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/interpolation.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/interpolation.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/loader.py: line=18 IGNORE (for REQ=slight and deep=8) module=threading /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/loader.py: line=20 IGNORE (for REQ=slight and deep=8) module=dummy_threading python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/loader.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/loader.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/loader.py: line=111 IGNORE (for REQ=slight and deep=11) module=genshi /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/loader.py: line=302 IGNORE (for REQ=slight and deep=12) module=pkg_resources python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/markup.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/markup.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/markup.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/markup.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/markup.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/markup.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/markup.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/markup.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/plugin.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/plugin.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/plugin.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/plugin.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/plugin.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/plugin.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/plugin.py: line=93 IGNORE (for REQ=slight and deep=19) module=pkg_resources python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/text.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/text.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/text.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/text.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/text.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/text.py: hiding genshi, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/util.py: hiding compat, which SEEMS TO BE SELF-SATISFIED Provides: python2.7-module-genshi = 0.7-alt1.1.1.1, python2.7(genshi), python2.7(genshi._speedups), python2.7(genshi.builder), python2.7(genshi.compat), python2.7(genshi.core), python2.7(genshi.filters), python2.7(genshi.filters.html), python2.7(genshi.filters.i18n), python2.7(genshi.filters.transform), python2.7(genshi.input), python2.7(genshi.output), python2.7(genshi.path), python2.7(genshi.template), python2.7(genshi.template._ast24), python2.7(genshi.template.ast24), python2.7(genshi.template.astutil), python2.7(genshi.template.base), python2.7(genshi.template.directives), python2.7(genshi.template.eval), python2.7(genshi.template.interpolation), python2.7(genshi.template.loader), python2.7(genshi.template.markup), python2.7(genshi.template.plugin), python2.7(genshi.template.text), python2.7(genshi.util) Requires: python = 2.7, /usr/lib64/python2.7/site-packages, libc.so.6(GLIBC_2.14)(64bit), libc.so.6(GLIBC_2.2.5)(64bit), libpython2.7.so.1.0()(64bit) >= set:ojN7QnGTdXfvzh5PskZ8r4sPEdDoRNS4pZslAXRg5KJOGuWCPLZl4yYIDxsZtEVFw4gm84rw5nUzEZHfrYyCLnhLoNA0, python-modules, python2.7(compiler), python2.7(tokenize), python2.7(xml), rtld(GNU_HASH) Requires(rpmlib): rpmlib(SetVersions) Obsoletes: python-module-Genshi Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.NzCdmG Creating python-module-genshi-debuginfo package Processing files: python-module-genshi-tests-0.7-alt1.1.1.1 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.U3YFun 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.b3mu37 find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks) /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/tests/__init__.py: line=18 IGNORE (for REQ=slight and deep=8) module=genshi /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/tests/i18n.py: line=1681 IGNORE (for REQ=slight and deep=11) module=os /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/tests/i18n.py: line=1681 IGNORE (for REQ=slight and deep=11) module=shutil /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/tests/i18n.py: line=1681 IGNORE (for REQ=slight and deep=11) module=tempfile /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/tests/i18n.py: line=1682 IGNORE (for REQ=slight and deep=11) module=genshi /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/tests/i18n.py: line=1764 IGNORE (for REQ=slight and deep=11) module=os /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/tests/i18n.py: line=1764 IGNORE (for REQ=slight and deep=11) module=shutil /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/tests/i18n.py: line=1764 IGNORE (for REQ=slight and deep=11) module=tempfile /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/tests/i18n.py: line=1765 IGNORE (for REQ=slight and deep=11) module=genshi /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/tests/transform.py: line=1485 IGNORE (for REQ=slight and deep=8) module=genshi /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/tests/transform.py: line=1486 IGNORE (for REQ=slight and deep=8) module=genshi /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/filters/tests/transform.py: line=1487 IGNORE (for REQ=slight and deep=8) module=genshi /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/__init__.py: line=18 IGNORE (for REQ=slight and deep=8) module=genshi python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/directives.py: skipping sys python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/eval.py: skipping sys python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/interpolation.py: skipping sys python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/template/tests/markup.py: skipping sys /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests/__init__.py: line=17 IGNORE (for REQ=slight and deep=8) module=genshi /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests/__init__.py: line=18 IGNORE (for REQ=slight and deep=8) module=genshi /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests/__init__.py: line=19 IGNORE (for REQ=slight and deep=8) module=genshi /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests/__init__.py: line=20 IGNORE (for REQ=slight and deep=8) module=genshi python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests/input.py: skipping sys python.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python2.7/site-packages/genshi/tests/output.py: skipping sys Provides: python2.7(genshi.filters.tests), python2.7(genshi.filters.tests.i18n), python2.7(genshi.filters.tests.test_html), python2.7(genshi.filters.tests.transform), python2.7(genshi.template.tests), python2.7(genshi.template.tests.base), python2.7(genshi.template.tests.directives), python2.7(genshi.template.tests.eval), python2.7(genshi.template.tests.interpolation), python2.7(genshi.template.tests.loader), python2.7(genshi.template.tests.markup), python2.7(genshi.template.tests.plugin), python2.7(genshi.template.tests.templates), python2.7(genshi.template.tests.text), python2.7(genshi.tests), python2.7(genshi.tests.builder), python2.7(genshi.tests.core), python2.7(genshi.tests.input), python2.7(genshi.tests.output), python2.7(genshi.tests.path), python2.7(genshi.tests.util) Requires: python-module-genshi = 0.7-alt1.1.1.1, /usr/lib64/python2.7/site-packages, python-modules, python2.7(genshi), python2.7(unittest) Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.05v7AY Processing files: python3-module-genshi-0.7-alt1.1.1.1 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.ZZZ6FS 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.Q9ZQZP find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks) python3.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/compat.py: skipping sys /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/compat.py: line=41 IGNORE (for REQ=slight and deep=8) module=io /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/compat.py: line=43 IGNORE (for REQ=slight and deep=12) module=io /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/compat.py: line=47 IGNORE (for REQ=slight and deep=8) module=io /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/core.py: line=19 IGNORE (for REQ=slight and deep=8) module=functools python3.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/core.py: skipping sys python3.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/core.py: skipping itertools /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/core.py: line=180 IGNORE (for REQ=slight and deep=11) module=genshi /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/core.py: line=219 IGNORE (for REQ=slight and deep=11) module=genshi /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/core.py: line=242 IGNORE (for REQ=slight and deep=11) module=genshi /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/core.py: line=568 IGNORE (for REQ=slight and deep=8) module=genshi /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/html.py: line=19 IGNORE (for REQ=slight and deep=8) module=genshi /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/i18n.py: line=24 IGNORE (for REQ=slight and deep=8) module=genshi /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/i18n.py: line=1227 UNABLE to determine the imported name at parse-time: module /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/i18n.py: line=1227 a form of __import__ was read which gave no deps: [333, [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, '__import__', 1227]], [325, [7, '(', 1227], [333, [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'module', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [25, '{', 1227], [26, '}', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [25, '{', 1227], [26, '}', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [9, '[', 1227], [324, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'clsname', 1227]]]]]]]]]]]]]]]]], [10, ']', 1227]]]]]]]]]]]]]]]]]], [8, ')', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'clsname', 1227]]]]]]]]]]]]]]]]]] /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/i18n.py: line=1227 UNABLE to determine the imported name at parse-time: module /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/i18n.py: line=1227 a form of __import__ was read which gave no deps: [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, '__import__', 1227]], [325, [7, '(', 1227], [333, [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'module', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [25, '{', 1227], [26, '}', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [25, '{', 1227], [26, '}', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [9, '[', 1227], [324, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'clsname', 1227]]]]]]]]]]]]]]]]], [10, ']', 1227]]]]]]]]]]]]]]]]]], [8, ')', 1227]]]]]]]]]]]]]]]]] /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/i18n.py: line=1227 UNABLE to determine the imported name at parse-time: module /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/i18n.py: line=1227 a form of __import__ was read which gave no deps: [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, '__import__', 1227]], [325, [7, '(', 1227], [333, [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'module', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [25, '{', 1227], [26, '}', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [25, '{', 1227], [26, '}', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [9, '[', 1227], [324, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'clsname', 1227]]]]]]]]]]]]]]]]], [10, ']', 1227]]]]]]]]]]]]]]]]]], [8, ')', 1227]]]]]]]]]]]]]]]] /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/i18n.py: line=1227 UNABLE to determine the imported name at parse-time: module /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/i18n.py: line=1227 a form of __import__ was read which gave no deps: [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, '__import__', 1227]], [325, [7, '(', 1227], [333, [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'module', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [25, '{', 1227], [26, '}', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [25, '{', 1227], [26, '}', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [9, '[', 1227], [324, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'clsname', 1227]]]]]]]]]]]]]]]]], [10, ']', 1227]]]]]]]]]]]]]]]]]], [8, ')', 1227]]]]]]]]]]]]]]] /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/i18n.py: line=1227 UNABLE to determine the imported name at parse-time: module /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/i18n.py: line=1227 a form of __import__ was read which gave no deps: [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, '__import__', 1227]], [325, [7, '(', 1227], [333, [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'module', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [25, '{', 1227], [26, '}', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [25, '{', 1227], [26, '}', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [9, '[', 1227], [324, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'clsname', 1227]]]]]]]]]]]]]]]]], [10, ']', 1227]]]]]]]]]]]]]]]]]], [8, ')', 1227]]]]]]]]]]]]]] /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/i18n.py: line=1227 UNABLE to determine the imported name at parse-time: module /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/i18n.py: line=1227 a form of __import__ was read which gave no deps: [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, '__import__', 1227]], [325, [7, '(', 1227], [333, [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'module', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [25, '{', 1227], [26, '}', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [25, '{', 1227], [26, '}', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [9, '[', 1227], [324, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'clsname', 1227]]]]]]]]]]]]]]]]], [10, ']', 1227]]]]]]]]]]]]]]]]]], [8, ')', 1227]]]]]]]]]]]]] /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/i18n.py: line=1227 UNABLE to determine the imported name at parse-time: module /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/i18n.py: line=1227 a form of __import__ was read which gave no deps: [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, '__import__', 1227]], [325, [7, '(', 1227], [333, [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'module', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [25, '{', 1227], [26, '}', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [25, '{', 1227], [26, '}', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [9, '[', 1227], [324, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'clsname', 1227]]]]]]]]]]]]]]]]], [10, ']', 1227]]]]]]]]]]]]]]]]]], [8, ')', 1227]]]]]]]]]]]] /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/i18n.py: line=1227 UNABLE to determine the imported name at parse-time: module /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/i18n.py: line=1227 a form of __import__ was read which gave no deps: [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, '__import__', 1227]], [325, [7, '(', 1227], [333, [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'module', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [25, '{', 1227], [26, '}', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [25, '{', 1227], [26, '}', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [9, '[', 1227], [324, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'clsname', 1227]]]]]]]]]]]]]]]]], [10, ']', 1227]]]]]]]]]]]]]]]]]], [8, ')', 1227]]]]]]]]]]] /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/i18n.py: line=1227 UNABLE to determine the imported name at parse-time: module /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/i18n.py: line=1227 a form of __import__ was read which gave no deps: [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, '__import__', 1227]], [325, [7, '(', 1227], [333, [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'module', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [25, '{', 1227], [26, '}', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [25, '{', 1227], [26, '}', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [9, '[', 1227], [324, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'clsname', 1227]]]]]]]]]]]]]]]]], [10, ']', 1227]]]]]]]]]]]]]]]]]], [8, ')', 1227]]]]]]]]]] /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/i18n.py: line=1227 UNABLE to determine the imported name at parse-time: module /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/i18n.py: line=1227 a form of __import__ was read which gave no deps: [316, [317, [318, [319, [320, [321, [322, [323, [1, '__import__', 1227]], [325, [7, '(', 1227], [333, [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'module', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [25, '{', 1227], [26, '}', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [25, '{', 1227], [26, '}', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [9, '[', 1227], [324, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'clsname', 1227]]]]]]]]]]]]]]]]], [10, ']', 1227]]]]]]]]]]]]]]]]]], [8, ')', 1227]]]]]]]]] /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/i18n.py: line=1227 UNABLE to determine the imported name at parse-time: module /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/i18n.py: line=1227 a form of __import__ was read which gave no deps: [317, [318, [319, [320, [321, [322, [323, [1, '__import__', 1227]], [325, [7, '(', 1227], [333, [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'module', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [25, '{', 1227], [26, '}', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [25, '{', 1227], [26, '}', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [9, '[', 1227], [324, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'clsname', 1227]]]]]]]]]]]]]]]]], [10, ']', 1227]]]]]]]]]]]]]]]]]], [8, ')', 1227]]]]]]]] /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/i18n.py: line=1227 UNABLE to determine the imported name at parse-time: module /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/i18n.py: line=1227 a form of __import__ was read which gave no deps: [318, [319, [320, [321, [322, [323, [1, '__import__', 1227]], [325, [7, '(', 1227], [333, [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'module', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [25, '{', 1227], [26, '}', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [25, '{', 1227], [26, '}', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [9, '[', 1227], [324, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'clsname', 1227]]]]]]]]]]]]]]]]], [10, ']', 1227]]]]]]]]]]]]]]]]]], [8, ')', 1227]]]]]]] /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/i18n.py: line=1227 UNABLE to determine the imported name at parse-time: module /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/i18n.py: line=1227 a form of __import__ was read which gave no deps: [319, [320, [321, [322, [323, [1, '__import__', 1227]], [325, [7, '(', 1227], [333, [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'module', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [25, '{', 1227], [26, '}', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [25, '{', 1227], [26, '}', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [9, '[', 1227], [324, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'clsname', 1227]]]]]]]]]]]]]]]]], [10, ']', 1227]]]]]]]]]]]]]]]]]], [8, ')', 1227]]]]]] /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/i18n.py: line=1227 UNABLE to determine the imported name at parse-time: module /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/i18n.py: line=1227 a form of __import__ was read which gave no deps: [320, [321, [322, [323, [1, '__import__', 1227]], [325, [7, '(', 1227], [333, [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'module', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [25, '{', 1227], [26, '}', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [25, '{', 1227], [26, '}', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [9, '[', 1227], [324, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'clsname', 1227]]]]]]]]]]]]]]]]], [10, ']', 1227]]]]]]]]]]]]]]]]]], [8, ')', 1227]]]]] /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/i18n.py: line=1227 UNABLE to determine the imported name at parse-time: module /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/i18n.py: line=1227 a form of __import__ was read which gave no deps: [321, [322, [323, [1, '__import__', 1227]], [325, [7, '(', 1227], [333, [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'module', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [25, '{', 1227], [26, '}', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [25, '{', 1227], [26, '}', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [9, '[', 1227], [324, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'clsname', 1227]]]]]]]]]]]]]]]]], [10, ']', 1227]]]]]]]]]]]]]]]]]], [8, ')', 1227]]]] /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/i18n.py: line=1227 UNABLE to determine the imported name at parse-time: module /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/i18n.py: line=1227 a form of __import__ was read which gave no deps: [322, [323, [1, '__import__', 1227]], [325, [7, '(', 1227], [333, [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'module', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [25, '{', 1227], [26, '}', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [25, '{', 1227], [26, '}', 1227]]]]]]]]]]]]]]]]], [12, ',', 1227], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [9, '[', 1227], [324, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'clsname', 1227]]]]]]]]]]]]]]]]], [10, ']', 1227]]]]]]]]]]]]]]]]]], [8, ')', 1227]]] python3.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/transform.py: skipping sys python3.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/input.py: skipping itertools python3.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/output.py: skipping itertools /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/path.py: line=45 IGNORE (for REQ=slight and deep=8) module=functools python3.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/path.py: skipping itertools python3.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/ast24.py: skipping compiler python3.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/ast24.py: skipping compiler /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/astutil.py: line=17 IGNORE (for REQ=slight and deep=8) module=_ast /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/astutil.py: line=19 IGNORE (for REQ=slight and deep=8) module=genshi python3.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/base.py: skipping sys /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/base.py: line=439 IGNORE (for REQ=slight and deep=15) module=genshi /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/base.py: line=477 IGNORE (for REQ=slight and deep=11) module=genshi /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/base.py: line=615 IGNORE (for REQ=slight and deep=11) module=genshi python3.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/eval.py: skipping builtins /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/eval.py: line=49 UNABLE to determine the imported name at parse-time: modname /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/eval.py: line=49 a form of __import__ was read which gave no deps: [273, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, '__import__', 49]], [325, [7, '(', 49], [333, [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'modname', 49]]]]]]]]]]]]]]]]], [12, ',', 49], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'None', 49]]]]]]]]]]]]]]]]], [12, ',', 49], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'None', 49]]]]]]]]]]]]]]]]], [12, ',', 49], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [9, '[', 49], [324, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [3, "'__all__'", 49]]]]]]]]]]]]]]]]], [10, ']', 49]]]]]]]]]]]]]]]]]], [8, ')', 49]]]]]]]]]]]]]]]]] /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/eval.py: line=49 UNABLE to determine the imported name at parse-time: modname /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/eval.py: line=49 a form of __import__ was read which gave no deps: [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, '__import__', 49]], [325, [7, '(', 49], [333, [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'modname', 49]]]]]]]]]]]]]]]]], [12, ',', 49], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'None', 49]]]]]]]]]]]]]]]]], [12, ',', 49], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'None', 49]]]]]]]]]]]]]]]]], [12, ',', 49], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [9, '[', 49], [324, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [3, "'__all__'", 49]]]]]]]]]]]]]]]]], [10, ']', 49]]]]]]]]]]]]]]]]]], [8, ')', 49]]]]]]]]]]]]]]]] /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/eval.py: line=49 UNABLE to determine the imported name at parse-time: modname /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/eval.py: line=49 a form of __import__ was read which gave no deps: [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, '__import__', 49]], [325, [7, '(', 49], [333, [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'modname', 49]]]]]]]]]]]]]]]]], [12, ',', 49], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'None', 49]]]]]]]]]]]]]]]]], [12, ',', 49], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'None', 49]]]]]]]]]]]]]]]]], [12, ',', 49], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [9, '[', 49], [324, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [3, "'__all__'", 49]]]]]]]]]]]]]]]]], [10, ']', 49]]]]]]]]]]]]]]]]]], [8, ')', 49]]]]]]]]]]]]]]] /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/eval.py: line=49 UNABLE to determine the imported name at parse-time: modname /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/eval.py: line=49 a form of __import__ was read which gave no deps: [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, '__import__', 49]], [325, [7, '(', 49], [333, [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'modname', 49]]]]]]]]]]]]]]]]], [12, ',', 49], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'None', 49]]]]]]]]]]]]]]]]], [12, ',', 49], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'None', 49]]]]]]]]]]]]]]]]], [12, ',', 49], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [9, '[', 49], [324, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [3, "'__all__'", 49]]]]]]]]]]]]]]]]], [10, ']', 49]]]]]]]]]]]]]]]]]], [8, ')', 49]]]]]]]]]]]]]] /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/eval.py: line=49 UNABLE to determine the imported name at parse-time: modname /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/eval.py: line=49 a form of __import__ was read which gave no deps: [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, '__import__', 49]], [325, [7, '(', 49], [333, [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'modname', 49]]]]]]]]]]]]]]]]], [12, ',', 49], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'None', 49]]]]]]]]]]]]]]]]], [12, ',', 49], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'None', 49]]]]]]]]]]]]]]]]], [12, ',', 49], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [9, '[', 49], [324, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [3, "'__all__'", 49]]]]]]]]]]]]]]]]], [10, ']', 49]]]]]]]]]]]]]]]]]], [8, ')', 49]]]]]]]]]]]]] /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/eval.py: line=49 UNABLE to determine the imported name at parse-time: modname /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/eval.py: line=49 a form of __import__ was read which gave no deps: [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, '__import__', 49]], [325, [7, '(', 49], [333, [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'modname', 49]]]]]]]]]]]]]]]]], [12, ',', 49], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'None', 49]]]]]]]]]]]]]]]]], [12, ',', 49], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'None', 49]]]]]]]]]]]]]]]]], [12, ',', 49], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [9, '[', 49], [324, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [3, "'__all__'", 49]]]]]]]]]]]]]]]]], [10, ']', 49]]]]]]]]]]]]]]]]]], [8, ')', 49]]]]]]]]]]]] /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/eval.py: line=49 UNABLE to determine the imported name at parse-time: modname /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/eval.py: line=49 a form of __import__ was read which gave no deps: [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, '__import__', 49]], [325, [7, '(', 49], [333, [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'modname', 49]]]]]]]]]]]]]]]]], [12, ',', 49], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'None', 49]]]]]]]]]]]]]]]]], [12, ',', 49], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'None', 49]]]]]]]]]]]]]]]]], [12, ',', 49], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [9, '[', 49], [324, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [3, "'__all__'", 49]]]]]]]]]]]]]]]]], [10, ']', 49]]]]]]]]]]]]]]]]]], [8, ')', 49]]]]]]]]]]] /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/eval.py: line=49 UNABLE to determine the imported name at parse-time: modname /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/eval.py: line=49 a form of __import__ was read which gave no deps: [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, '__import__', 49]], [325, [7, '(', 49], [333, [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'modname', 49]]]]]]]]]]]]]]]]], [12, ',', 49], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'None', 49]]]]]]]]]]]]]]]]], [12, ',', 49], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'None', 49]]]]]]]]]]]]]]]]], [12, ',', 49], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [9, '[', 49], [324, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [3, "'__all__'", 49]]]]]]]]]]]]]]]]], [10, ']', 49]]]]]]]]]]]]]]]]]], [8, ')', 49]]]]]]]]]] /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/eval.py: line=49 UNABLE to determine the imported name at parse-time: modname /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/eval.py: line=49 a form of __import__ was read which gave no deps: [316, [317, [318, [319, [320, [321, [322, [323, [1, '__import__', 49]], [325, [7, '(', 49], [333, [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'modname', 49]]]]]]]]]]]]]]]]], [12, ',', 49], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'None', 49]]]]]]]]]]]]]]]]], [12, ',', 49], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'None', 49]]]]]]]]]]]]]]]]], [12, ',', 49], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [9, '[', 49], [324, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [3, "'__all__'", 49]]]]]]]]]]]]]]]]], [10, ']', 49]]]]]]]]]]]]]]]]]], [8, ')', 49]]]]]]]]] /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/eval.py: line=49 UNABLE to determine the imported name at parse-time: modname /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/eval.py: line=49 a form of __import__ was read which gave no deps: [317, [318, [319, [320, [321, [322, [323, [1, '__import__', 49]], [325, [7, '(', 49], [333, [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'modname', 49]]]]]]]]]]]]]]]]], [12, ',', 49], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'None', 49]]]]]]]]]]]]]]]]], [12, ',', 49], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'None', 49]]]]]]]]]]]]]]]]], [12, ',', 49], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [9, '[', 49], [324, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [3, "'__all__'", 49]]]]]]]]]]]]]]]]], [10, ']', 49]]]]]]]]]]]]]]]]]], [8, ')', 49]]]]]]]] /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/eval.py: line=49 UNABLE to determine the imported name at parse-time: modname /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/eval.py: line=49 a form of __import__ was read which gave no deps: [318, [319, [320, [321, [322, [323, [1, '__import__', 49]], [325, [7, '(', 49], [333, [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'modname', 49]]]]]]]]]]]]]]]]], [12, ',', 49], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'None', 49]]]]]]]]]]]]]]]]], [12, ',', 49], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'None', 49]]]]]]]]]]]]]]]]], [12, ',', 49], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [9, '[', 49], [324, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [3, "'__all__'", 49]]]]]]]]]]]]]]]]], [10, ']', 49]]]]]]]]]]]]]]]]]], [8, ')', 49]]]]]]] /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/eval.py: line=49 UNABLE to determine the imported name at parse-time: modname /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/eval.py: line=49 a form of __import__ was read which gave no deps: [319, [320, [321, [322, [323, [1, '__import__', 49]], [325, [7, '(', 49], [333, [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'modname', 49]]]]]]]]]]]]]]]]], [12, ',', 49], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'None', 49]]]]]]]]]]]]]]]]], [12, ',', 49], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'None', 49]]]]]]]]]]]]]]]]], [12, ',', 49], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [9, '[', 49], [324, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [3, "'__all__'", 49]]]]]]]]]]]]]]]]], [10, ']', 49]]]]]]]]]]]]]]]]]], [8, ')', 49]]]]]] /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/eval.py: line=49 UNABLE to determine the imported name at parse-time: modname /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/eval.py: line=49 a form of __import__ was read which gave no deps: [320, [321, [322, [323, [1, '__import__', 49]], [325, [7, '(', 49], [333, [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'modname', 49]]]]]]]]]]]]]]]]], [12, ',', 49], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'None', 49]]]]]]]]]]]]]]]]], [12, ',', 49], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'None', 49]]]]]]]]]]]]]]]]], [12, ',', 49], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [9, '[', 49], [324, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [3, "'__all__'", 49]]]]]]]]]]]]]]]]], [10, ']', 49]]]]]]]]]]]]]]]]]], [8, ')', 49]]]]] /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/eval.py: line=49 UNABLE to determine the imported name at parse-time: modname /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/eval.py: line=49 a form of __import__ was read which gave no deps: [321, [322, [323, [1, '__import__', 49]], [325, [7, '(', 49], [333, [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'modname', 49]]]]]]]]]]]]]]]]], [12, ',', 49], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'None', 49]]]]]]]]]]]]]]]]], [12, ',', 49], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'None', 49]]]]]]]]]]]]]]]]], [12, ',', 49], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [9, '[', 49], [324, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [3, "'__all__'", 49]]]]]]]]]]]]]]]]], [10, ']', 49]]]]]]]]]]]]]]]]]], [8, ')', 49]]]] /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/eval.py: line=49 UNABLE to determine the imported name at parse-time: modname /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/eval.py: line=49 a form of __import__ was read which gave no deps: [322, [323, [1, '__import__', 49]], [325, [7, '(', 49], [333, [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'modname', 49]]]]]]]]]]]]]]]]], [12, ',', 49], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'None', 49]]]]]]]]]]]]]]]]], [12, ',', 49], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'None', 49]]]]]]]]]]]]]]]]], [12, ',', 49], [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [9, '[', 49], [324, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [3, "'__all__'", 49]]]]]]]]]]]]]]]]], [10, ']', 49]]]]]]]]]]]]]]]]]], [8, ')', 49]]] python3.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/interpolation.py: skipping itertools /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/loader.py: line=18 IGNORE (for REQ=slight and deep=8) module=threading /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/loader.py: line=20 IGNORE (for REQ=slight and deep=8) module=dummy_threading /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/loader.py: line=111 IGNORE (for REQ=slight and deep=11) module=genshi /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/loader.py: line=302 IGNORE (for REQ=slight and deep=12) module=pkg_resources python3.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/markup.py: skipping itertools /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/plugin.py: line=93 IGNORE (for REQ=slight and deep=19) module=pkg_resources /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/util.py: line=19 possible relative import from ., UNIMPLEMENTED Provides: python3(genshi), python3(genshi.builder), python3(genshi.compat), python3(genshi.core), python3(genshi.filters), python3(genshi.filters.html), python3(genshi.filters.i18n), python3(genshi.filters.transform), python3(genshi.input), python3(genshi.output), python3(genshi.path), python3(genshi.template), python3(genshi.template._ast24), python3(genshi.template.ast24), python3(genshi.template.astutil), python3(genshi.template.base), python3(genshi.template.directives), python3(genshi.template.eval), python3(genshi.template.interpolation), python3(genshi.template.loader), python3(genshi.template.markup), python3(genshi.template.plugin), python3(genshi.template.text), python3(genshi.util), python3.3(genshi), python3.3(genshi.builder), python3.3(genshi.compat), python3.3(genshi.core), python3.3(genshi.filters), python3.3(genshi.filters.html), python3.3(genshi.filters.i18n), python3.3(genshi.filters.transform), python3.3(genshi.input), python3.3(genshi.output), python3.3(genshi.path), python3.3(genshi.template), python3.3(genshi.template._ast24), python3.3(genshi.template.ast24), python3.3(genshi.template.astutil), python3.3(genshi.template.base), python3.3(genshi.template.directives), python3.3(genshi.template.eval), python3.3(genshi.template.interpolation), python3.3(genshi.template.loader), python3.3(genshi.template.markup), python3.3(genshi.template.plugin), python3.3(genshi.template.text), python3.3(genshi.util) Requires: /usr/lib64/python3/site-packages, python3(codecs) < 0, python3(collections) < 0, python3(gettext) < 0, python3(math) < 0, python3(operator) < 0, python3(os) < 0, python3(re) < 0, python3(textwrap) < 0, python3(tokenize) < 0, python3(types) < 0, python3(xml) < 0 Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.pUZva6 Processing files: python3-module-genshi-tests-0.7-alt1.1.1.1 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.4bDIkp 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.7ztKwL find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks) /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/tests/__init__.py: line=18 IGNORE (for REQ=slight and deep=8) module=genshi /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/tests/i18n.py: line=1681 IGNORE (for REQ=slight and deep=11) module=os /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/tests/i18n.py: line=1681 IGNORE (for REQ=slight and deep=11) module=shutil /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/tests/i18n.py: line=1681 IGNORE (for REQ=slight and deep=11) module=tempfile /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/tests/i18n.py: line=1682 IGNORE (for REQ=slight and deep=11) module=genshi /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/tests/i18n.py: line=1764 IGNORE (for REQ=slight and deep=11) module=os /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/tests/i18n.py: line=1764 IGNORE (for REQ=slight and deep=11) module=shutil /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/tests/i18n.py: line=1764 IGNORE (for REQ=slight and deep=11) module=tempfile /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/tests/i18n.py: line=1765 IGNORE (for REQ=slight and deep=11) module=genshi /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/tests/transform.py: line=1485 IGNORE (for REQ=slight and deep=8) module=genshi /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/tests/transform.py: line=1486 IGNORE (for REQ=slight and deep=8) module=genshi /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/filters/tests/transform.py: line=1487 IGNORE (for REQ=slight and deep=8) module=genshi /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/__init__.py: line=18 IGNORE (for REQ=slight and deep=8) module=genshi python3.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/directives.py: skipping sys python3.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/eval.py: skipping sys python3.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/interpolation.py: skipping sys python3.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/template/tests/markup.py: skipping sys /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests/__init__.py: line=17 IGNORE (for REQ=slight and deep=8) module=genshi /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests/__init__.py: line=18 IGNORE (for REQ=slight and deep=8) module=genshi /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests/__init__.py: line=19 IGNORE (for REQ=slight and deep=8) module=genshi /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests/__init__.py: line=20 IGNORE (for REQ=slight and deep=8) module=genshi python3.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests/input.py: skipping sys python3.req: /usr/src/tmp/python-module-genshi-buildroot/usr/lib64/python3/site-packages/genshi/tests/output.py: skipping sys Provides: python3(genshi.filters.tests), python3(genshi.filters.tests.i18n), python3(genshi.filters.tests.test_html), python3(genshi.filters.tests.transform), python3(genshi.template.tests), python3(genshi.template.tests.base), python3(genshi.template.tests.directives), python3(genshi.template.tests.eval), python3(genshi.template.tests.interpolation), python3(genshi.template.tests.loader), python3(genshi.template.tests.markup), python3(genshi.template.tests.plugin), python3(genshi.template.tests.templates), python3(genshi.template.tests.text), python3(genshi.tests), python3(genshi.tests.builder), python3(genshi.tests.core), python3(genshi.tests.input), python3(genshi.tests.output), python3(genshi.tests.path), python3(genshi.tests.util), python3.3(genshi.filters.tests), python3.3(genshi.filters.tests.i18n), python3.3(genshi.filters.tests.test_html), python3.3(genshi.filters.tests.transform), python3.3(genshi.template.tests), python3.3(genshi.template.tests.base), python3.3(genshi.template.tests.directives), python3.3(genshi.template.tests.eval), python3.3(genshi.template.tests.interpolation), python3.3(genshi.template.tests.loader), python3.3(genshi.template.tests.markup), python3.3(genshi.template.tests.plugin), python3.3(genshi.template.tests.templates), python3.3(genshi.template.tests.text), python3.3(genshi.tests), python3.3(genshi.tests.builder), python3.3(genshi.tests.core), python3.3(genshi.tests.input), python3.3(genshi.tests.output), python3.3(genshi.tests.path), python3.3(genshi.tests.util) Requires: python3-module-genshi = 0.7-alt1.1.1.1, /usr/lib64/python3/site-packages, python3(datetime) < 0, python3(doctest) < 0, python3(genshi) < 0, python3(gettext) < 0, python3(os) < 0, python3(pickle) < 0, python3(pprint) < 0, python3(re) < 0, python3(shutil) < 0, python3(tempfile) < 0, python3(unittest) < 0 Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.0kYx6A Processing files: python-module-genshi-doc-0.7-alt1.1.1.1 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.41518 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd genshi-0.7 + DOCDIR=/usr/src/tmp/python-module-genshi-buildroot/usr/share/doc/python-module-genshi-doc-0.7 + export DOCDIR + rm -rf /usr/src/tmp/python-module-genshi-buildroot/usr/share/doc/python-module-genshi-doc-0.7 + /bin/mkdir -p /usr/src/tmp/python-module-genshi-buildroot/usr/share/doc/python-module-genshi-doc-0.7 + cp -prL doc /usr/src/tmp/python-module-genshi-buildroot/usr/share/doc/python-module-genshi-doc-0.7 + chmod -R go-w /usr/src/tmp/python-module-genshi-buildroot/usr/share/doc/python-module-genshi-doc-0.7 + chmod -R a+rX /usr/src/tmp/python-module-genshi-buildroot/usr/share/doc/python-module-genshi-doc-0.7 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.Dna8Qu 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.WZzWHr find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks) Processing files: python-module-genshi-examples-0.7-alt1.1.1.1 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.95967 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd genshi-0.7 + DOCDIR=/usr/src/tmp/python-module-genshi-buildroot/usr/share/doc/python-module-genshi-examples-0.7 + export DOCDIR + rm -rf /usr/src/tmp/python-module-genshi-buildroot/usr/share/doc/python-module-genshi-examples-0.7 + /bin/mkdir -p /usr/src/tmp/python-module-genshi-buildroot/usr/share/doc/python-module-genshi-examples-0.7 + cp -prL examples /usr/src/tmp/python-module-genshi-buildroot/usr/share/doc/python-module-genshi-examples-0.7 + chmod -R go-w /usr/src/tmp/python-module-genshi-buildroot/usr/share/doc/python-module-genshi-examples-0.7 + chmod -R a+rX /usr/src/tmp/python-module-genshi-buildroot/usr/share/doc/python-module-genshi-examples-0.7 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.PW6ddt 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.cl2JYx find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks) Processing files: python-module-genshi-debuginfo-0.7-alt1.1.1.1 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.R6SX3F find-provides: running scripts (debuginfo) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.IMbnhR find-requires: running scripts (debuginfo) Requires: python-module-genshi = 0.7-alt1.1.1.1, debug64(libc.so.6), debug64(libpython2.7.so.1.0) Removing 1 extra deps from python-module-genshi-tests due to dependency on python-module-genshi Removing 1 extra deps from python3-module-genshi-tests due to dependency on python3-module-genshi Removing 2 extra deps from python-module-genshi-tests due to repentancy on python-module-genshi Removing 4 extra deps from python3-module-genshi-tests due to repentancy on python3-module-genshi Wrote: /usr/src/RPM/RPMS/x86_64/python-module-genshi-0.7-alt1.1.1.1.x86_64.rpm Wrote: /usr/src/RPM/RPMS/x86_64/python-module-genshi-tests-0.7-alt1.1.1.1.x86_64.rpm Wrote: /usr/src/RPM/RPMS/x86_64/python3-module-genshi-0.7-alt1.1.1.1.x86_64.rpm Wrote: /usr/src/RPM/RPMS/x86_64/python3-module-genshi-tests-0.7-alt1.1.1.1.x86_64.rpm Wrote: /usr/src/RPM/RPMS/noarch/python-module-genshi-doc-0.7-alt1.1.1.1.noarch.rpm Wrote: /usr/src/RPM/RPMS/noarch/python-module-genshi-examples-0.7-alt1.1.1.1.noarch.rpm Wrote: /usr/src/RPM/RPMS/x86_64/python-module-genshi-debuginfo-0.7-alt1.1.1.1.x86_64.rpm 49.03user 1.87system 1:17.76elapsed 65%CPU (0avgtext+0avgdata 59836maxresident)k 0inputs+0outputs (0major+701407minor)pagefaults 0swaps 53.99user 4.57system 1:27.79elapsed 66%CPU (0avgtext+0avgdata 121824maxresident)k 0inputs+0outputs (0major+1043319minor)pagefaults 0swaps --- python3-module-genshi-0.7-alt1.1.1.1.x86_64.rpm.repo 2016-04-11 18:45:13.000000000 +0000 +++ python3-module-genshi-0.7-alt1.1.1.1.x86_64.rpm.hasher 2019-04-14 02:15:04.778667476 +0000 @@ -12,2 +12,3 @@ /usr/lib64/python3/site-packages/genshi/__pycache__/__init__.cpython-35.opt-2.pyc 100644 +/usr/lib64/python3/site-packages/genshi/__pycache__/__init__.cpython-35.pyc 100644 /usr/lib64/python3/site-packages/genshi/__pycache__/builder.cpython-35.opt-1.pyc 100644 @@ -42,2 +43,3 @@ /usr/lib64/python3/site-packages/genshi/filters/__pycache__/__init__.cpython-35.opt-2.pyc 100644 +/usr/lib64/python3/site-packages/genshi/filters/__pycache__/__init__.cpython-35.pyc 100644 /usr/lib64/python3/site-packages/genshi/filters/__pycache__/html.cpython-35.opt-1.pyc 100644 @@ -62,2 +64,3 @@ /usr/lib64/python3/site-packages/genshi/template/__pycache__/__init__.cpython-35.opt-2.pyc 100644 +/usr/lib64/python3/site-packages/genshi/template/__pycache__/__init__.cpython-35.pyc 100644 /usr/lib64/python3/site-packages/genshi/template/__pycache__/_ast24.cpython-35.opt-1.pyc 100644 @@ -108,13 +111,13 @@ Requires: /usr/lib64/python3/site-packages -Requires: python3(codecs) -Requires: python3(collections) -Requires: python3(gettext) -Requires: python3(math) -Requires: python3(operator) -Requires: python3(os) -Requires: python3(re) -Requires: python3(textwrap) -Requires: python3(tokenize) -Requires: python3(types) -Requires: python3(xml) +Requires: python3(codecs) < 0 +Requires: python3(collections) < 0 +Requires: python3(gettext) < 0 +Requires: python3(math) < 0 +Requires: python3(operator) < 0 +Requires: python3(os) < 0 +Requires: python3(re) < 0 +Requires: python3(textwrap) < 0 +Requires: python3(tokenize) < 0 +Requires: python3(types) < 0 +Requires: python3(xml) < 0 Requires: rpmlib(PayloadIsLzma) --- python3-module-genshi-tests-0.7-alt1.1.1.1.x86_64.rpm.repo 2016-04-11 18:45:13.000000000 +0000 +++ python3-module-genshi-tests-0.7-alt1.1.1.1.x86_64.rpm.hasher 2019-04-14 02:15:04.915666000 +0000 @@ -5,2 +5,3 @@ /usr/lib64/python3/site-packages/genshi/filters/tests/__pycache__/__init__.cpython-35.opt-2.pyc 100644 +/usr/lib64/python3/site-packages/genshi/filters/tests/__pycache__/__init__.cpython-35.pyc 100644 /usr/lib64/python3/site-packages/genshi/filters/tests/__pycache__/i18n.cpython-35.opt-1.pyc 100644 @@ -22,2 +23,3 @@ /usr/lib64/python3/site-packages/genshi/template/tests/__pycache__/__init__.cpython-35.opt-2.pyc 100644 +/usr/lib64/python3/site-packages/genshi/template/tests/__pycache__/__init__.cpython-35.pyc 100644 /usr/lib64/python3/site-packages/genshi/template/tests/__pycache__/base.cpython-35.opt-1.pyc 100644 @@ -58,2 +60,3 @@ /usr/lib64/python3/site-packages/genshi/template/tests/templates/__pycache__/__init__.cpython-35.opt-2.pyc 100644 +/usr/lib64/python3/site-packages/genshi/template/tests/templates/__pycache__/__init__.cpython-35.pyc 100644 /usr/lib64/python3/site-packages/genshi/template/tests/templates/functions.html 100644 @@ -70,2 +73,3 @@ /usr/lib64/python3/site-packages/genshi/tests/__pycache__/__init__.cpython-35.opt-2.pyc 100644 +/usr/lib64/python3/site-packages/genshi/tests/__pycache__/__init__.cpython-35.pyc 100644 /usr/lib64/python3/site-packages/genshi/tests/__pycache__/builder.cpython-35.opt-1.pyc 100644 @@ -95,9 +99,9 @@ Requires: python3-module-genshi = 0.7-alt1.1.1.1 -Requires: python3(datetime) -Requires: python3(doctest) -Requires: python3(pickle) -Requires: python3(pprint) -Requires: python3(shutil) -Requires: python3(tempfile) -Requires: python3(unittest) +Requires: python3(datetime) < 0 +Requires: python3(doctest) < 0 +Requires: python3(pickle) < 0 +Requires: python3(pprint) < 0 +Requires: python3(shutil) < 0 +Requires: python3(tempfile) < 0 +Requires: python3(unittest) < 0 Requires: rpmlib(PayloadIsLzma)