86>Aug 8 00:47:02 userdel[1935903]: delete user 'rooter' <86>Aug 8 00:47:02 userdel[1935903]: removed group 'rooter' owned by 'rooter' <86>Aug 8 00:47:02 userdel[1935903]: removed shadow group 'rooter' owned by 'rooter' <86>Aug 8 00:47:02 groupadd[1935925]: group added to /etc/group: name=rooter, GID=993 <86>Aug 8 00:47:02 groupadd[1935925]: group added to /etc/gshadow: name=rooter <86>Aug 8 00:47:02 groupadd[1935925]: new group: name=rooter, GID=993 <86>Aug 8 00:47:02 useradd[1935940]: new user: name=rooter, UID=993, GID=993, home=/root, shell=/bin/bash <86>Aug 8 00:47:02 userdel[1935956]: delete user 'builder' <86>Aug 8 00:47:02 userdel[1935956]: removed group 'builder' owned by 'builder' <86>Aug 8 00:47:02 userdel[1935956]: removed shadow group 'builder' owned by 'builder' <86>Aug 8 00:47:02 groupadd[1935969]: group added to /etc/group: name=builder, GID=994 <86>Aug 8 00:47:02 groupadd[1935969]: group added to /etc/gshadow: name=builder <86>Aug 8 00:47:02 groupadd[1935969]: new group: name=builder, GID=994 <86>Aug 8 00:47:02 useradd[1935975]: new user: name=builder, UID=994, GID=994, home=/usr/src, shell=/bin/bash /usr/src/in/srpm/python3-module-ClientForm-0.2.10-alt5.src.rpm: license not found in '/usr/share/license' directory: BSD-like <13>Aug 8 00:47:03 rpmi: libgdbm-1.8.3-alt10 sisyphus+278100.1600.1.1 1626058413 installed <13>Aug 8 00:47:03 rpmi: mpdecimal-2.5.1-alt1 sisyphus+291245.40.54.1 1643293433 installed <13>Aug 8 00:47:03 rpmi: libpython-2.7.18-alt10 sisyphus+302234.100.1.1 1655470122 installed <13>Aug 8 00:47:03 rpmi: python2-base-2.7.18-alt10 sisyphus+302234.100.1.1 1655470122 installed <13>Aug 8 00:47:03 rpmi: libexpat-2.4.7-alt1 sisyphus+296417.100.1.1 1646812525 installed <13>Aug 8 00:47:03 rpmi: libp11-kit-0.24.1-alt1 sisyphus+293720.100.1.1 1642535264 installed <13>Aug 8 00:47:03 rpmi: libtasn1-4.18.0-alt2 sisyphus+301112.100.1.1 1654185763 installed <13>Aug 8 00:47:03 rpmi: rpm-macros-alternatives-0.5.2-alt1 sisyphus+300869.100.1.1 1653844113 installed <13>Aug 8 00:47:03 rpmi: alternatives-0.5.2-alt1 sisyphus+300869.100.1.1 1653844113 installed <13>Aug 8 00:47:03 rpmi: ca-certificates-2022.07.22-alt1 sisyphus+304126.100.1.2 1658509204 installed <13>Aug 8 00:47:03 rpmi: ca-trust-0.1.3-alt1 sisyphus+299449.100.1.1 1651660001 installed <13>Aug 8 00:47:03 rpmi: p11-kit-trust-0.24.1-alt1 sisyphus+293720.100.1.1 1642535264 installed <13>Aug 8 00:47:03 rpmi: libcrypto1.1-1.1.1q-alt1 sisyphus+303203.100.1.1 1657026987 installed <13>Aug 8 00:47:03 rpmi: libssl1.1-1.1.1q-alt1 sisyphus+303203.100.1.1 1657026987 installed <13>Aug 8 00:47:03 rpmi: python-modules-encodings-2.7.18-alt10 sisyphus+302234.100.1.1 1655470122 installed <13>Aug 8 00:47:03 rpmi: python-modules-compiler-2.7.18-alt10 sisyphus+302234.100.1.1 1655470122 installed <13>Aug 8 00:47:03 rpmi: python-modules-email-2.7.18-alt10 sisyphus+302234.100.1.1 1655470122 installed <13>Aug 8 00:47:03 rpmi: python-modules-unittest-2.7.18-alt10 sisyphus+302234.100.1.1 1655470122 installed <13>Aug 8 00:47:03 rpmi: python-modules-2.7.18-alt10 sisyphus+302234.100.1.1 1655470122 installed <13>Aug 8 00:47:04 rpmi: python3-3.10.6-alt1 sisyphus+304753.100.1.1 1659607050 installed <13>Aug 8 00:47:04 rpmi: python3-base-3.10.6-alt1 sisyphus+304753.100.1.1 1659607050 installed <13>Aug 8 00:47:04 rpmi: tests-for-installed-python3-pkgs-0.1.19-alt1 sisyphus+301407.500.9.1 1658259230 installed <13>Aug 8 00:47:04 rpmi: python-modules-ctypes-2.7.18-alt10 sisyphus+302234.100.1.1 1655470122 installed <13>Aug 8 00:47:04 rpmi: python-modules-multiprocessing-2.7.18-alt10 sisyphus+302234.100.1.1 1655470122 installed <13>Aug 8 00:47:04 rpmi: python-modules-logging-2.7.18-alt10 sisyphus+302234.100.1.1 1655470122 installed <13>Aug 8 00:47:04 rpmi: python-tools-2to3-2.7.18-alt10 sisyphus+302234.100.1.1 1655470122 installed <13>Aug 8 00:47:04 rpmi: rpm-build-python3-0.1.19-alt1 sisyphus+301407.500.9.1 1658259230 installed WARNING: %python3_build is deprecated and will be removed in future, please use %pyproject_build instead WARNING: %python3_install is deprecated and will be removed in future, please use %pyproject_install instead WARNING: %python3_build is deprecated and will be removed in future, please use %pyproject_build instead WARNING: %python3_install is deprecated and will be removed in future, please use %pyproject_install instead Building target platforms: x86_64 Building for target x86_64 Wrote: /usr/src/in/nosrpm/python3-module-ClientForm-0.2.10-alt5.nosrc.rpm (w1.gzdio) <13>Aug 8 00:47:06 rpmi: python3-module-pkg_resources-1:62.0.0-alt1 sisyphus+297628.2400.4.1 1649344501 installed <13>Aug 8 00:47:07 rpmi: libpython3-3.10.6-alt1 sisyphus+304753.100.1.1 1659607050 installed <13>Aug 8 00:47:07 rpmi: libncurses-6.3.20220618-alt1 sisyphus+302449.100.1.1 1655835246 installed <13>Aug 8 00:47:07 rpmi: libtinfo-devel-6.3.20220618-alt1 sisyphus+302449.100.1.1 1655835246 installed <13>Aug 8 00:47:07 rpmi: libncurses-devel-6.3.20220618-alt1 sisyphus+302449.100.1.1 1655835246 installed <13>Aug 8 00:47:07 rpmi: python3-dev-3.10.6-alt1 sisyphus+304753.100.1.1 1659607050 installed <13>Aug 8 00:47:07 rpmi: python3-module-setuptools-1:62.0.0-alt1 sisyphus+297628.2400.4.1 1649344501 installed WARNING: %python3_build is deprecated and will be removed in future, please use %pyproject_build instead WARNING: %python3_install is deprecated and will be removed in future, please use %pyproject_install instead Installing python3-module-ClientForm-0.2.10-alt5.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.65698 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf ClientForm-0.2.10 + echo 'Source #0 (ClientForm-0.2.10.tar.gz):' Source #0 (ClientForm-0.2.10.tar.gz): + /bin/gzip -dc /usr/src/RPM/SOURCES/ClientForm-0.2.10.tar.gz + /bin/tar -xf - + cd ClientForm-0.2.10 + /bin/chmod -c -Rf u+rwX,go-w . + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.65698 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd ClientForm-0.2.10 + find . -type f -name '*.py' -exec 2to3 -w -n '{}' + RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: Refactored ./test/test_clientform.py --- ./test/test_clientform.py (original) +++ ./test/test_clientform.py (refactored) @@ -8,7 +8,7 @@ import unittest, string from unittest import TestCase -from cStringIO import StringIO +from io import StringIO import ClientForm from ClientForm import ControlNotFoundError, ItemNotFoundError, \ @@ -107,13 +107,13 @@ def test_unescape_charref(self): from ClientForm import unescape_charref, get_entitydefs - mdash_utf8 = u"\u2014".encode("utf-8") + mdash_utf8 = "\u2014".encode("utf-8") for ref, codepoint, utf8, latin1 in [ - ("38", 38, u"&".encode("utf-8"), "&"), + ("38", 38, "&".encode("utf-8"), "&"), ("x2014", 0x2014, mdash_utf8, "—"), ("8212", 8212, mdash_utf8, "—"), ]: - self.assertEqual(unescape_charref(ref, None), unichr(codepoint)) + self.assertEqual(unescape_charref(ref, None), chr(codepoint)) self.assertEqual(unescape_charref(ref, 'latin-1'), latin1) self.assertEqual(unescape_charref(ref, 'utf-8'), utf8) @@ -121,19 +121,19 @@ from ClientForm import get_entitydefs ed = get_entitydefs() for name, char in [ - ("&", u"&"), - ("<", u"<"), - (">", u">"), - ("—", u"\u2014"), - ("♠", u"\u2660"), + ("&", "&"), + ("<", "<"), + (">", ">"), + ("—", "\u2014"), + ("♠", "\u2660"), ]: self.assertEqual(ed[name], char) def test_unescape1(self): - import htmlentitydefs + import html.entities from ClientForm import unescape, get_entitydefs data = "& < — — —" - mdash_utf8 = u"\u2014".encode("utf-8") + mdash_utf8 = "\u2014".encode("utf-8") ue = unescape(data, get_entitydefs(), "utf-8") self.assertEqual("& < %s %s %s" % ((mdash_utf8,)*3), ue) @@ -160,7 +160,7 @@ self.assertEqual(unescape("&", {}), "&") for encoding, expected in [ - ("utf-8", u"&\u06aa\u2014\u2014".encode("utf-8")), + ("utf-8", "&\u06aa\u2014\u2014".encode("utf-8")), ("latin-1", "&ڪ——")]: self.assertEqual( expected, @@ -175,7 +175,7 @@ forms = ClientForm.ParseFile(file, "http://localhost/", backwards_compat=False, encoding="utf-8") form = forms[0] - test_string = "&"+(u"\u2014".encode('utf8')*3) + test_string = "&"+("\u2014".encode('utf8')*3) self.assertEqual(form.action, "http://localhost/"+test_string) control = form.find_control(type="textarea", nr=0) self.assertEqual(control.value, "val"+test_string) @@ -193,7 +193,7 @@ forms = ClientForm.ParseFileEx( f, "http://localhost/", encoding="utf-8") form = forms[1] - test_string = "&"+(u"\u2014".encode('utf8')*3) + test_string = "&"+("\u2014".encode('utf8')*3) control = form.find_control(nr=0) for ii in range(len(control.items)): item = control.items[ii] @@ -221,7 +221,7 @@ def testEmptyParse(self): forms = ClientForm.ParseFile(StringIO(""), "http://localhost", backwards_compat=False) - self.assert_(len(forms) == 0) + self.assertTrue(len(forms) == 0) def _forms(self): file = StringIO("""