Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-beautifulsoup4.spec'], chrootPath='/var/lib/mock/fedora-rawhide-x86_64-1674298874.467549/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.ycujvzrp:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.ycujvzrp:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '97615132b9bd4ffd896e5a1fc7701024', '-D', '/var/lib/mock/fedora-rawhide-x86_64-1674298874.467549/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.ycujvzrp:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-beautifulsoup4.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1674172800 Wrote: /builddir/build/SRPMS/python-beautifulsoup4-4.11.1-2.fc38.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-beautifulsoup4.spec'], chrootPath='/var/lib/mock/fedora-rawhide-x86_64-1674298874.467549/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.ycujvzrp:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.ycujvzrp:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '60b362283b7e40efae90a5c8c6923686', '-D', '/var/lib/mock/fedora-rawhide-x86_64-1674298874.467549/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.ycujvzrp:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-beautifulsoup4.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1674172800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.32pMas + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf beautifulsoup4-4.11.1 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/beautifulsoup4-4.11.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd beautifulsoup4-4.11.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -rf /builddir/build/BUILD/python3-python-beautifulsoup4-4.11.1-2.fc38 + cp -a . /builddir/build/BUILD/python3-python-beautifulsoup4-4.11.1-2.fc38 + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.hnNqDb + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd beautifulsoup4-4.11.1 + pushd /builddir/build/BUILD/python3-python-beautifulsoup4-4.11.1-2.fc38 ~/build/BUILD/python3-python-beautifulsoup4-4.11.1-2.fc38 ~/build/BUILD/beautifulsoup4-4.11.1 + 2to3 --write --nobackups . /usr/bin/2to3:3: DeprecationWarning: lib2to3 package is deprecated and may not be able to parse Python 3.10+ from lib2to3.main import main RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: No changes to ./setup.py RefactoringTool: No changes to ./bs4/__init__.py RefactoringTool: No changes to ./bs4/dammit.py RefactoringTool: No changes to ./bs4/diagnose.py RefactoringTool: No changes to ./bs4/element.py RefactoringTool: No changes to ./bs4/formatter.py RefactoringTool: No changes to ./bs4/builder/__init__.py RefactoringTool: No changes to ./bs4/builder/_html5lib.py RefactoringTool: No changes to ./bs4/builder/_htmlparser.py RefactoringTool: Refactored ./bs4/builder/_lxml.py RefactoringTool: Refactored ./bs4/tests/__init__.py RefactoringTool: No changes to ./bs4/tests/test_builder.py RefactoringTool: No changes to ./bs4/tests/test_builder_registry.py RefactoringTool: Refactored ./bs4/tests/test_dammit.py RefactoringTool: No changes to ./bs4/tests/test_docs.py RefactoringTool: No changes to ./bs4/tests/test_element.py RefactoringTool: No changes to ./bs4/tests/test_formatter.py RefactoringTool: Refactored ./bs4/tests/test_html5lib.py RefactoringTool: Refactored ./bs4/tests/test_htmlparser.py RefactoringTool: No changes to ./bs4/tests/test_lxml.py RefactoringTool: No changes to ./bs4/tests/test_navigablestring.py RefactoringTool: No changes to ./bs4/tests/test_pageelement.py RefactoringTool: No changes to ./bs4/tests/test_soup.py RefactoringTool: No changes to ./bs4/tests/test_tag.py RefactoringTool: No changes to ./bs4/tests/test_tree.py RefactoringTool: Refactored ./doc/source/conf.py --- ./bs4/builder/_lxml.py (original) +++ ./bs4/builder/_lxml.py (refactored) @@ -190,7 +190,7 @@ # TODO: This is a workaround for # https://bugs.launchpad.net/lxml/+bug/1948551. # We can remove it once the upstream issue is fixed. - if len(markup) > 0 and markup[0] == u'\N{BYTE ORDER MARK}': + if len(markup) > 0 and markup[0] == '\N{BYTE ORDER MARK}': markup = markup[1:] yield markup, None, document_declared_encoding, False --- ./bs4/tests/__init__.py (original) +++ ./bs4/tests/__init__.py (refactored) @@ -60,8 +60,8 @@
This document contains a surprise doctype
-
Tag name contains Unicode characters
- +
Tag name contains Unicode characters
+ """ @@ -642,7 +642,7 @@ # not. self.assert_soup( "

• AT&T is in the s&p 500

", - "

\u2022 AT&T is in the s&p 500

" + "

\\u2022 AT&T is in the s&p 500

" ) def test_apos_entity(self): --- ./bs4/tests/test_dammit.py (original) +++ ./bs4/tests/test_dammit.py (refactored) @@ -20,7 +20,7 @@ def test_smart_quotes_to_unicode(self): markup = b"\x91\x92\x93\x94" dammit = UnicodeDammit(markup) - assert dammit.unicode_markup == "\u2018\u2019\u201c\u201d" + assert dammit.unicode_markup == "\\u2018\\u2019\\u201c\\u201d" def test_smart_quotes_to_xml_entities(self): markup = b"\x91\x92\x93\x94" @@ -47,7 +47,7 @@ hebrew = b"\xed\xe5\xec\xf9" dammit = UnicodeDammit(hebrew, ["iso-8859-8"]) assert dammit.original_encoding.lower() == 'iso-8859-8' - assert dammit.unicode_markup == '\u05dd\u05d5\u05dc\u05e9' + assert dammit.unicode_markup == '\\u05dd\\u05d5\\u05dc\\u05e9' def test_dont_see_smart_quotes_where_there_are_none(self): utf_8 = b"\343\202\261\343\203\274\343\202\277\343\202\244 Watch" @@ -125,7 +125,7 @@ bs4.dammit.chardet_dammit = noop dammit = UnicodeDammit(doc) assert True == dammit.contains_replacement_characters - assert "\ufffd" in dammit.unicode_markup + assert "\\ufffd" in dammit.unicode_markup soup = BeautifulSoup(doc, "html.parser") assert soup.contains_replacement_characters @@ -278,7 +278,7 @@ def test_simple_html_substitution(self): # Unicode characters corresponding to named HTML entites # are substituted, and no others. - s = "foo\u2200\N{SNOWMAN}\u00f5bar" + s = "foo\\u2200\N{SNOWMAN}\\u00f5bar" assert self.sub.substitute_html(s) == "foo∀\N{SNOWMAN}õbar" def test_smart_quote_substitution(self): @@ -296,11 +296,11 @@ # A few spot checks of our ability to recognize # special character sequences and convert them # to named entities. - ('⊧', '\u22a7'), - ('𝔑', '\U0001d511'), - ('≧̸', '\u2267\u0338'), + ('⊧', '\\u22a7'), + ('𝔑', '\\U0001d511'), + ('≧̸', '\\u2267\\u0338'), ('¬', '\xac'), - ('⫬', '\u2aec'), + ('⫬', '\\u2aec'), # We _could_ convert | to &verbarr;, but we don't, because # | is an ASCII character. @@ -325,11 +325,11 @@ # Some HTML5 entities correspond either to a single-character # Unicode sequence _or_ to the same character plus U+FE00, # VARIATION SELECTOR 1. We can handle this. - data = "fjords \u2294 penguins" + data = "fjords \\u2294 penguins" markup = "fjords ⊔ penguins" assert self.sub.substitute_html(data) == markup - data = "fjords \u2294\ufe00 penguins" + data = "fjords \\u2294\\ufe00 penguins" markup = "fjords ⊔︀ penguins" assert self.sub.substitute_html(data) == markup --- ./bs4/tests/test_html5lib.py (original) +++ ./bs4/tests/test_html5lib.py (refactored) @@ -196,19 +196,19 @@ # HTMLParserTreeBuilderSmokeTest. It's not in the superclass # because the lxml HTML TreeBuilder _doesn't_ work this way. for input_element, output_unicode, output_element in ( - ("⇄", '\u21c4', b'⇄'), - ('⊧', '\u22a7', b'⊧'), - ('𝔑', '\U0001d511', b'𝔑'), - ('≧̸', '\u2267\u0338', b'≧̸'), + ("⇄", '\\u21c4', b'⇄'), + ('⊧', '\\u22a7', b'⊧'), + ('𝔑', '\\U0001d511', b'𝔑'), + ('≧̸', '\\u2267\\u0338', b'≧̸'), ('¬', '\xac', b'¬'), - ('⫬', '\u2aec', b'⫬'), + ('⫬', '\\u2aec', b'⫬'), ('"', '"', b'"'), - ('∴', '\u2234', b'∴'), - ('∴', '\u2234', b'∴'), - ('∴', '\u2234', b'∴'), + ('∴', '\\u2234', b'∴'), + ('∴', '\\u2234', b'∴'), + ('∴', '\\u2234', b'∴'), ("fj", 'fj', b'fj'), - ("⊔", '\u2294', b'⊔'), - ("⊔︀", '\u2294\ufe00', b'⊔︀'), + ("⊔", '\\u2294', b'⊔'), + ("⊔︀", '\\u2294\\ufe00', b'⊔︀'), ("'", "'", b"'"), ("|", "|", b"|"), ): --- ./bs4/tests/test_htmlparser.py (original) +++ ./bs4/tests/test_htmlparser.py (refactored) @@ -97,19 +97,19 @@ # convert those Unicode characters to a (potentially # different) named entity on the way out. for input_element, output_unicode, output_element in ( - ("⇄", '\u21c4', b'⇄'), - ('⊧', '\u22a7', b'⊧'), - ('𝔑', '\U0001d511', b'𝔑'), - ('≧̸', '\u2267\u0338', b'≧̸'), + ("⇄", '\\u21c4', b'⇄'), + ('⊧', '\\u22a7', b'⊧'), + ('𝔑', '\\U0001d511', b'𝔑'), + ('≧̸', '\\u2267\\u0338', b'≧̸'), ('¬', '\xac', b'¬'), - ('⫬', '\u2aec', b'⫬'), + ('⫬', '\\u2aec', b'⫬'), ('"', '"', b'"'), - ('∴', '\u2234', b'∴'), - ('∴', '\u2234', b'∴'), - ('∴', '\u2234', b'∴'), + ('∴', '\\u2234', b'∴'), + ('∴', '\\u2234', b'∴'), + ('∴', '\\u2234', b'∴'), ("fj", 'fj', b'fj'), - ("⊔", '\u2294', b'⊔'), - ("⊔︀", '\u2294\ufe00', b'⊔︀'), + ("⊔", '\\u2294', b'⊔'), + ("⊔︀", '\\u2294\\ufe00', b'⊔︀'), ("'", "'", b"'"), ("|", "|", b"|"), ): --- ./doc/source/conf.py (original) +++ ./doc/source/conf.py (refactored) @@ -40,8 +40,8 @@ master_doc = 'index' # General information about the project. RefactoringTool: Refactored ./doc.ptbr/source/conf.py RefactoringTool: Refactored ./doc.ru/source/conf.py RefactoringTool: Refactored ./doc.zh/source/conf.py RefactoringTool: Refactored ./scripts/demonstrate_parser_differences.py -project = u'Beautiful Soup' -copyright = u'2004-2020, Leonard Richardson' +project = 'Beautiful Soup' +copyright = '2004-2020, Leonard Richardson' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the @@ -178,8 +178,8 @@ # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, author, documentclass [howto/manual]). latex_documents = [ - ('index', 'BeautifulSoup.tex', u'Beautiful Soup Documentation', - u'Leonard Richardson', 'manual'), + ('index', 'BeautifulSoup.tex', 'Beautiful Soup Documentation', + 'Leonard Richardson', 'manual'), ] # The name of an image file (relative to this directory) to place at the top of @@ -211,18 +211,18 @@ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ - ('index', 'beautifulsoup', u'Beautiful Soup Documentation', - [u'Leonard Richardson'], 1) + ('index', 'beautifulsoup', 'Beautiful Soup Documentation', + ['Leonard Richardson'], 1) ] # -- Options for Epub output --------------------------------------------------- # Bibliographic Dublin Core info. -epub_title = u'Beautiful Soup' -epub_author = u'Leonard Richardson' -epub_publisher = u'Leonard Richardson' -epub_copyright = u'2012, Leonard Richardson' +epub_title = 'Beautiful Soup' +epub_author = 'Leonard Richardson' +epub_publisher = 'Leonard Richardson' +epub_copyright = '2012, Leonard Richardson' # The language of the text. It defaults to the language option # or en if the language is not set. --- ./doc.ptbr/source/conf.py (original) +++ ./doc.ptbr/source/conf.py (refactored) @@ -40,8 +40,8 @@ master_doc = 'index' # General information about the project. -project = u'Beautiful Soup' -copyright = u'2004-2015, Leonard Richardson' +project = 'Beautiful Soup' +copyright = '2004-2015, Leonard Richardson' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the @@ -178,8 +178,8 @@ # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, author, documentclass [howto/manual]). latex_documents = [ - ('index', 'BeautifulSoup.tex', u'Beautiful Soup Documentation', - u'Leonard Richardson', 'manual'), + ('index', 'BeautifulSoup.tex', 'Beautiful Soup Documentation', + 'Leonard Richardson', 'manual'), ] # The name of an image file (relative to this directory) to place at the top of @@ -211,18 +211,18 @@ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ - ('index', 'beautifulsoup', u'Beautiful Soup Documentation', - [u'Leonard Richardson'], 1) + ('index', 'beautifulsoup', 'Beautiful Soup Documentation', + ['Leonard Richardson'], 1) ] # -- Options for Epub output --------------------------------------------------- # Bibliographic Dublin Core info. -epub_title = u'Beautiful Soup' -epub_author = u'Leonard Richardson' -epub_publisher = u'Leonard Richardson' -epub_copyright = u'2012, Leonard Richardson' +epub_title = 'Beautiful Soup' +epub_author = 'Leonard Richardson' +epub_publisher = 'Leonard Richardson' +epub_copyright = '2012, Leonard Richardson' # The language of the text. It defaults to the language option # or en if the language is not set. --- ./doc.ru/source/conf.py (original) +++ ./doc.ru/source/conf.py (refactored) @@ -40,8 +40,8 @@ master_doc = 'index' # General information about the project. -project = u'Beautiful Soup' -copyright = u'2004-2020, Leonard Richardson' +project = 'Beautiful Soup' +copyright = '2004-2020, Leonard Richardson' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the @@ -178,8 +178,8 @@ # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, author, documentclass [howto/manual]). latex_documents = [ - ('index', 'BeautifulSoup.tex', u'Beautiful Soup Documentation', - u'Leonard Richardson', 'manual'), + ('index', 'BeautifulSoup.tex', 'Beautiful Soup Documentation', + 'Leonard Richardson', 'manual'), ] # The name of an image file (relative to this directory) to place at the top of @@ -211,18 +211,18 @@ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ - ('index', 'beautifulsoup', u'Beautiful Soup Documentation', - [u'Leonard Richardson'], 1) + ('index', 'beautifulsoup', 'Beautiful Soup Documentation', + ['Leonard Richardson'], 1) ] # -- Options for Epub output --------------------------------------------------- # Bibliographic Dublin Core info. -epub_title = u'Beautiful Soup' -epub_author = u'Leonard Richardson' -epub_publisher = u'Leonard Richardson' -epub_copyright = u'2012, Leonard Richardson' +epub_title = 'Beautiful Soup' +epub_author = 'Leonard Richardson' +epub_publisher = 'Leonard Richardson' +epub_copyright = '2012, Leonard Richardson' # The language of the text. It defaults to the language option # or en if the language is not set. --- ./doc.zh/source/conf.py (original) +++ ./doc.zh/source/conf.py (refactored) @@ -40,8 +40,8 @@ master_doc = 'index' # General information about the project. -project = u'Beautiful Soup' -copyright = u'2012, Leonard Richardson' +project = 'Beautiful Soup' +copyright = '2012, Leonard Richardson' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the @@ -178,8 +178,8 @@ # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, author, documentclass [howto/manual]). latex_documents = [ - ('index', 'BeautifulSoup.tex', u'Beautiful Soup Documentation', - u'Leonard Richardson', 'manual'), + ('index', 'BeautifulSoup.tex', 'Beautiful Soup Documentation', + 'Leonard Richardson', 'manual'), ] # The name of an image file (relative to this directory) to place at the top of @@ -211,18 +211,18 @@ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ - ('index', 'beautifulsoup', u'Beautiful Soup Documentation', - [u'Leonard Richardson'], 1) + ('index', 'beautifulsoup', 'Beautiful Soup Documentation', + ['Leonard Richardson'], 1) ] # -- Options for Epub output --------------------------------------------------- # Bibliographic Dublin Core info. -epub_title = u'Beautiful Soup' -epub_author = u'Leonard Richardson' -epub_publisher = u'Leonard Richardson' -epub_copyright = u'2012, Leonard Richardson' +epub_title = 'Beautiful Soup' +epub_author = 'Leonard Richardson' +epub_publisher = 'Leonard Richardson' +epub_copyright = '2012, Leonard Richardson' # The language of the text. It defaults to the language option # or en if the language is not set. --- ./scripts/demonstrate_parser_differences.py (original) +++ ./scripts/demonstrate_parser_differences.py (refactored) @@ -22,13 +22,13 @@ try: from bs4.builder import _lxml parsers.append('lxml') -except ImportError, e: +except ImportError as e: pass try: from bs4.builder import _html5lib parsers.append('html5lib') -except ImportError, e: +except ImportError as e: pass class Demonstration(object): @@ -47,7 +47,7 @@ output = soup.div else: output = soup - except Exception, e: + except Exception as e: output = "[EXCEPTION] %s" % str(e) self.results[parser] = output if previous_output is None: @@ -57,15 +57,15 @@ return uniform_results def dump(self): - print "%s: %s" % ("Markup".rjust(13), self.markup.encode("utf8")) - for parser, output in self.results.items(): - print "%s: %s" % (parser.rjust(13), output.encode("utf8")) + print("%s: %s" % ("Markup".rjust(13), self.markup.encode("utf8"))) + for parser, output in list(self.results.items()): + print("%s: %s" % (parser.rjust(13), output.encode("utf8"))) different_results = [] uniform_results = [] -print "= Testing the following parsers: %s =" % ", ".join(parsers) -print +print("= Testing the following parsers: %s =" % ", ".join(parsers)) +print() input_file = sys.stdin if sys.stdin.isatty(): @@ -83,13 +83,13 @@ else: different_results.append(demo) -print "== Markup that's handled the same in every parser ==" -print +print("== Markup that's handled the same in every parser ==") +print() for demo in uniform_results: demo.dump() - print -print "== Markup that's not handled the same in every parser ==" -print + print() +print("== Markup that's not handled the same in every parser ==") +print() for demo in different_results: demo.dump() - print + print() RefactoringTool: Files that were modified: RefactoringTool: ./setup.py RefactoringTool: ./bs4/__init__.py RefactoringTool: ./bs4/dammit.py RefactoringTool: ./bs4/diagnose.py RefactoringTool: ./bs4/element.py RefactoringTool: ./bs4/formatter.py RefactoringTool: ./bs4/builder/__init__.py RefactoringTool: ./bs4/builder/_html5lib.py RefactoringTool: ./bs4/builder/_htmlparser.py RefactoringTool: ./bs4/builder/_lxml.py RefactoringTool: ./bs4/tests/__init__.py RefactoringTool: ./bs4/tests/test_builder.py RefactoringTool: ./bs4/tests/test_builder_registry.py RefactoringTool: ./bs4/tests/test_dammit.py RefactoringTool: ./bs4/tests/test_docs.py RefactoringTool: ./bs4/tests/test_element.py RefactoringTool: ./bs4/tests/test_formatter.py RefactoringTool: ./bs4/tests/test_html5lib.py RefactoringTool: ./bs4/tests/test_htmlparser.py RefactoringTool: ./bs4/tests/test_lxml.py RefactoringTool: ./bs4/tests/test_navigablestring.py RefactoringTool: ./bs4/tests/test_pageelement.py RefactoringTool: ./bs4/tests/test_soup.py RefactoringTool: ./bs4/tests/test_tag.py RefactoringTool: ./bs4/tests/test_tree.py RefactoringTool: ./doc/source/conf.py RefactoringTool: ./doc.ptbr/source/conf.py RefactoringTool: ./doc.ru/source/conf.py RefactoringTool: ./doc.zh/source/conf.py RefactoringTool: ./scripts/demonstrate_parser_differences.py + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -sP' running build running build_py creating build creating build/lib creating build/lib/bs4 copying bs4/formatter.py -> build/lib/bs4 copying bs4/element.py -> build/lib/bs4 copying bs4/diagnose.py -> build/lib/bs4 copying bs4/dammit.py -> build/lib/bs4 copying bs4/__init__.py -> build/lib/bs4 creating build/lib/bs4/builder copying bs4/builder/_lxml.py -> build/lib/bs4/builder copying bs4/builder/_htmlparser.py -> build/lib/bs4/builder copying bs4/builder/_html5lib.py -> build/lib/bs4/builder copying bs4/builder/__init__.py -> build/lib/bs4/builder creating build/lib/bs4/tests copying bs4/tests/test_tree.py -> build/lib/bs4/tests copying bs4/tests/test_tag.py -> build/lib/bs4/tests copying bs4/tests/test_soup.py -> build/lib/bs4/tests copying bs4/tests/test_pageelement.py -> build/lib/bs4/tests copying bs4/tests/test_navigablestring.py -> build/lib/bs4/tests copying bs4/tests/test_lxml.py -> build/lib/bs4/tests copying bs4/tests/test_htmlparser.py -> build/lib/bs4/tests copying bs4/tests/test_html5lib.py -> build/lib/bs4/tests copying bs4/tests/test_formatter.py -> build/lib/bs4/tests copying bs4/tests/test_element.py -> build/lib/bs4/tests copying bs4/tests/test_docs.py -> build/lib/bs4/tests copying bs4/tests/test_dammit.py -> build/lib/bs4/tests copying bs4/tests/test_builder_registry.py -> build/lib/bs4/tests copying bs4/tests/test_builder.py -> build/lib/bs4/tests copying bs4/tests/__init__.py -> build/lib/bs4/tests + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.gTbTuS + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64 ++ dirname /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer' + export CFLAGS ~/build/BUILD/python3-python-beautifulsoup4-4.11.1-2.fc38 ~/build/BUILD/beautifulsoup4-4.11.1 + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd beautifulsoup4-4.11.1 + pushd /builddir/build/BUILD/python3-python-beautifulsoup4-4.11.1-2.fc38 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes' + /usr/bin/python3 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64 --prefix /usr running install /usr/lib/python3.11/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( running install_lib creating /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr creating /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib creating /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11 creating /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages creating /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4 creating /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4/tests copying build/lib/bs4/tests/__init__.py -> /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4/tests copying build/lib/bs4/tests/test_builder.py -> /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4/tests copying build/lib/bs4/tests/test_builder_registry.py -> /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4/tests copying build/lib/bs4/tests/test_dammit.py -> /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4/tests copying build/lib/bs4/tests/test_docs.py -> /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4/tests copying build/lib/bs4/tests/test_element.py -> /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4/tests copying build/lib/bs4/tests/test_formatter.py -> /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4/tests copying build/lib/bs4/tests/test_html5lib.py -> /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4/tests copying build/lib/bs4/tests/test_htmlparser.py -> /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4/tests copying build/lib/bs4/tests/test_lxml.py -> /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4/tests copying build/lib/bs4/tests/test_navigablestring.py -> /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4/tests copying build/lib/bs4/tests/test_pageelement.py -> /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4/tests copying build/lib/bs4/tests/test_soup.py -> /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4/tests copying build/lib/bs4/tests/test_tag.py -> /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4/tests copying build/lib/bs4/tests/test_tree.py -> /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4/tests creating /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4/builder copying build/lib/bs4/builder/__init__.py -> /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4/builder copying build/lib/bs4/builder/_html5lib.py -> /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4/builder copying build/lib/bs4/builder/_htmlparser.py -> /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4/builder copying build/lib/bs4/builder/_lxml.py -> /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4/builder copying build/lib/bs4/__init__.py -> /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4 copying build/lib/bs4/dammit.py -> /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4 copying build/lib/bs4/diagnose.py -> /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4 copying build/lib/bs4/element.py -> /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4 copying build/lib/bs4/formatter.py -> /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4 byte-compiling /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4/tests/__init__.py to __init__.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4/tests/test_builder.py to test_builder.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4/tests/test_builder_registry.py to test_builder_registry.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4/tests/test_dammit.py to test_dammit.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4/tests/test_docs.py to test_docs.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4/tests/test_element.py to test_element.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4/tests/test_formatter.py to test_formatter.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4/tests/test_html5lib.py to test_html5lib.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4/tests/test_htmlparser.py to test_htmlparser.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4/tests/test_lxml.py to test_lxml.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4/tests/test_navigablestring.py to test_navigablestring.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4/tests/test_pageelement.py to test_pageelement.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4/tests/test_soup.py to test_soup.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4/tests/test_tag.py to test_tag.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4/tests/test_tree.py to test_tree.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4/builder/__init__.py to __init__.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4/builder/_html5lib.py to _html5lib.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4/builder/_htmlparser.py to _htmlparser.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4/builder/_lxml.py to _lxml.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4/__init__.py to __init__.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4/dammit.py to dammit.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4/diagnose.py to diagnose.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4/element.py to element.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/bs4/formatter.py to formatter.cpython-311.pyc writing byte-compilation script '/tmp/tmpzqfs5mb7.py' /usr/bin/python3 /tmp/tmpzqfs5mb7.py removing /tmp/tmpzqfs5mb7.py running install_egg_info running egg_info writing beautifulsoup4.egg-info/PKG-INFO writing dependency_links to beautifulsoup4.egg-info/dependency_links.txt writing requirements to beautifulsoup4.egg-info/requires.txt writing top-level names to beautifulsoup4.egg-info/top_level.txt reading manifest file 'beautifulsoup4.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' adding license file 'COPYING.txt' writing manifest file 'beautifulsoup4.egg-info/SOURCES.txt' Copying beautifulsoup4.egg-info to /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages/beautifulsoup4-4.11.1-py3.11.egg-info running install_scripts + rm -rfv /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/bin/__pycache__ + /usr/bin/find-debuginfo -j2 --strict-build-id -m -i --build-id-seed 4.11.1-2.fc38 --unique-debug-suffix -4.11.1-2.fc38.x86_64 --unique-debug-src-base python-beautifulsoup4-4.11.1-2.fc38.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S debugsourcefiles.list /builddir/build/BUILD/beautifulsoup4-4.11.1 find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/brp-remove-la-files + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j2 Bytecompiling .py files below /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11 using python3.11 + /usr/lib/rpm/redhat/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.S04kXx + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd beautifulsoup4-4.11.1 + PATH=/builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/bin:/builddir/.local/bin:/builddir/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin + PYTHONPATH=/builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib64/python3.11/site-packages:/builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages + _PYTHONSITE=/builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib64/python3.11/site-packages:/builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/lib/python3.11/site-packages + PYTHONDONTWRITEBYTECODE=1 + /usr/bin/python3 -sP /usr/lib/rpm/redhat/import_all_modules.py bs4 Check import: bs4 + pushd /builddir/build/BUILD/python3-python-beautifulsoup4-4.11.1-2.fc38 ~/build/BUILD/python3-python-beautifulsoup4-4.11.1-2.fc38 ~/build/BUILD/beautifulsoup4-4.11.1 + /usr/bin/python3 -m unittest discover -s bs4 E ====================================================================== ERROR: tests (unittest.loader._FailedTest.tests) ---------------------------------------------------------------------- ImportError: Failed to import test module: tests Traceback (most recent call last): File "/usr/lib64/python3.11/unittest/loader.py", line 440, in _find_test_path package = self._get_module_from_name(name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/unittest/loader.py", line 350, in _get_module_from_name __import__(name) File "/builddir/build/BUILD/python3-python-beautifulsoup4-4.11.1-2.fc38/bs4/tests/__init__.py", line 11, in import pytest ModuleNotFoundError: No module named 'pytest' ---------------------------------------------------------------------- Ran 1 test in 0.000s FAILED (errors=1) + : + RPM_EC=0 ++ jobs -p + exit 0 Processing files: python3-beautifulsoup4-4.11.1-2.fc38.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.9g25OJ + umask 022 + cd /builddir/build/BUILD + cd beautifulsoup4-4.11.1 + DOCDIR=/builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/share/doc/python3-beautifulsoup4 + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/share/doc/python3-beautifulsoup4 + cp -pr NEWS.txt /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/share/doc/python3-beautifulsoup4 + RPM_EC=0 ++ jobs -p + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.lXszXU + umask 022 + cd /builddir/build/BUILD + cd beautifulsoup4-4.11.1 + LICENSEDIR=/builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/share/licenses/python3-beautifulsoup4 + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/share/licenses/python3-beautifulsoup4 + cp -pr COPYING.txt /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64/usr/share/licenses/python3-beautifulsoup4 + RPM_EC=0 ++ jobs -p + exit 0 Provides: python-beautifulsoup4 = 4.11.1-2.fc38 python3-beautifulsoup4 = 4.11.1-2.fc38 python3.11-beautifulsoup4 = 4.11.1-2.fc38 python3.11dist(beautifulsoup4) = 4.11.1 python3dist(beautifulsoup4) = 4.11.1 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: python(abi) = 3.11 python3.11dist(soupsieve) > 1.2.0 Obsoletes: python-beautifulsoup4 < 4.11.1-2.fc38 python3-BeautifulSoup < 1:3.2.1-2 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64 Wrote: /builddir/build/RPMS/python3-beautifulsoup4-4.11.1-2.fc38.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.M9KbcX + umask 022 + cd /builddir/build/BUILD + cd beautifulsoup4-4.11.1 + /usr/bin/rm -rf /builddir/build/BUILDROOT/python-beautifulsoup4-4.11.1-2.fc38.x86_64 + RPM_EC=0 ++ jobs -p + exit 0 Executing(rmbuild): /bin/sh -e /var/tmp/rpm-tmp.ujygrw + umask 022 + cd /builddir/build/BUILD + rm -rf beautifulsoup4-4.11.1 beautifulsoup4-4.11.1.gemspec + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0