86>Aug 1 09:52:03 userdel[3087273]: delete user 'rooter'
<86>Aug 1 09:52:03 userdel[3087273]: removed group 'rooter' owned by 'rooter'
<86>Aug 1 09:52:03 userdel[3087273]: removed shadow group 'rooter' owned by 'rooter'
<86>Aug 1 09:52:03 groupadd[3087278]: group added to /etc/group: name=rooter, GID=633
<86>Aug 1 09:52:03 groupadd[3087278]: group added to /etc/gshadow: name=rooter
<86>Aug 1 09:52:03 groupadd[3087278]: new group: name=rooter, GID=633
<86>Aug 1 09:52:03 useradd[3087282]: new user: name=rooter, UID=633, GID=633, home=/root, shell=/bin/bash
<86>Aug 1 09:52:03 userdel[3087288]: delete user 'builder'
<86>Aug 1 09:52:03 userdel[3087288]: removed group 'builder' owned by 'builder'
<86>Aug 1 09:52:03 userdel[3087288]: removed shadow group 'builder' owned by 'builder'
<86>Aug 1 09:52:03 groupadd[3087293]: group added to /etc/group: name=builder, GID=634
<86>Aug 1 09:52:03 groupadd[3087293]: group added to /etc/gshadow: name=builder
<86>Aug 1 09:52:03 groupadd[3087293]: new group: name=builder, GID=634
<86>Aug 1 09:52:03 useradd[3087297]: new user: name=builder, UID=634, GID=634, home=/usr/src, shell=/bin/bash
<13>Aug 1 09:52:07 rpmi: libgdbm-1.8.3-alt10 1454943334 installed
<13>Aug 1 09:52:07 rpmi: libexpat-2.2.10-alt1 p9+261554.100.1.1 1605103337 installed
<13>Aug 1 09:52:07 rpmi: libp11-kit-0.23.15-alt2 p9+254920.2400.19.1 1601385903 installed
<13>Aug 1 09:52:07 rpmi: libtasn1-4.14-alt1 p9+235792.100.2.1 1565425233 installed
<13>Aug 1 09:52:07 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed
<13>Aug 1 09:52:07 rpmi: alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed
<13>Aug 1 09:52:07 rpmi: ca-certificates-2020.06.29-alt1 p9+258899.100.3.1 1601998604 installed
<13>Aug 1 09:52:07 rpmi: ca-trust-0.1.2-alt1 p9+233349.100.1.1 1561655062 installed
<13>Aug 1 09:52:07 rpmi: p11-kit-trust-0.23.15-alt2 p9+254920.2400.19.1 1601385903 installed
<13>Aug 1 09:52:07 rpmi: libcrypto1.1-1.1.1k-alt1 p9+268376.100.3.1 1616721011 installed
<13>Aug 1 09:52:07 rpmi: libssl1.1-1.1.1k-alt1 p9+268376.100.3.1 1616721011 installed
<13>Aug 1 09:52:07 rpmi: python3-3.7.4-alt3 p9+249932.100.2.1 1587127349 installed
<13>Aug 1 09:52:07 rpmi: libpython3-3.7.4-alt3 p9+249932.100.2.1 1587127349 installed
<13>Aug 1 09:52:08 rpmi: python3-base-3.7.4-alt3 p9+249932.100.2.1 1587127349 installed
<13>Aug 1 09:52:08 rpmi: tests-for-installed-python3-pkgs-0.1.13.1-alt2 1535450458 installed
<13>Aug 1 09:52:08 rpmi: rpm-build-python3-0.1.13.1-alt2 1535450458 installed
<13>Aug 1 09:52:14 rpmi: python3-module-pkg_resources-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed
<13>Aug 1 09:52:14 rpmi: python-modules-curses-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed
<13>Aug 1 09:52:14 rpmi: libtinfo-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686226 installed
<13>Aug 1 09:52:14 rpmi: libncurses-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686226 installed
<13>Aug 1 09:52:14 rpmi: python3-dev-3.7.4-alt3 p9+249932.100.2.1 1587127349 installed
<13>Aug 1 09:52:14 rpmi: libverto-0.3.0-alt1_7 sisyphus+225932.100.1.1 1553994919 installed
<13>Aug 1 09:52:14 rpmi: libkeyutils-1.6-alt2 sisyphus+226520.100.2.1 1554512089 installed
<13>Aug 1 09:52:14 rpmi: libcom_err-1.44.6-alt1 sisyphus+224154.100.1.1 1552091678 installed
<86>Aug 1 09:52:14 groupadd[3092182]: group added to /etc/group: name=_keytab, GID=499
<86>Aug 1 09:52:14 groupadd[3092182]: group added to /etc/gshadow: name=_keytab
<86>Aug 1 09:52:14 groupadd[3092182]: new group: name=_keytab, GID=499
<13>Aug 1 09:52:15 rpmi: libkrb5-1.17.2-alt2 p9+280683.100.2.1 1627489307 installed
<13>Aug 1 09:52:15 rpmi: libtirpc-1.0.3-alt1 1532008017 installed
<13>Aug 1 09:52:15 rpmi: libnsl2-1.1.0-alt1_1 1511548749 installed
<13>Aug 1 09:52:15 rpmi: python-modules-compiler-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed
<13>Aug 1 09:52:15 rpmi: python-modules-email-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed
<13>Aug 1 09:52:15 rpmi: python-modules-unittest-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed
<13>Aug 1 09:52:15 rpmi: python-modules-encodings-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed
<13>Aug 1 09:52:15 rpmi: python-modules-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed
<13>Aug 1 09:52:15 rpmi: python-modules-nis-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed
<13>Aug 1 09:52:15 rpmi: python-modules-ctypes-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed
<13>Aug 1 09:52:15 rpmi: python-modules-multiprocessing-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed
<13>Aug 1 09:52:15 rpmi: python-modules-logging-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed
<13>Aug 1 09:52:15 rpmi: python-tools-2to3-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed
<13>Aug 1 09:52:15 rpmi: python-modules-xml-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed
<13>Aug 1 09:52:15 rpmi: python-modules-hotshot-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed
<13>Aug 1 09:52:15 rpmi: python-modules-bsddb-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed
<13>Aug 1 09:52:15 rpmi: python-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed
<13>Aug 1 09:52:15 rpmi: python-modules-distutils-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed
<13>Aug 1 09:52:15 rpmi: python-module-pkg_resources-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed
<13>Aug 1 09:52:15 rpmi: libnsl2-devel-1.1.0-alt1_1 1511548749 installed
<13>Aug 1 09:52:15 rpmi: python-dev-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed
<13>Aug 1 09:52:15 rpmi: python-module-setuptools-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed
<13>Aug 1 09:52:15 rpmi: python3-module-setuptools-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed
Building target platforms: i586
Building for target i586
Wrote: /usr/src/in/nosrpm/python-module-zc.comment-0.1.0-alt3.2.nosrc.rpm (w1.gzdio)
Installing python-module-zc.comment-0.1.0-alt3.2.src.rpm
Building target platforms: i586
Building for target i586
Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.98800
+ umask 022
+ /bin/mkdir -p /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ rm -rf python-module-zc.comment-0.1.0
+ echo 'Source #0 (python-module-zc.comment-0.1.0.tar):'
Source #0 (python-module-zc.comment-0.1.0.tar):
+ /bin/tar -xf /usr/src/RPM/SOURCES/python-module-zc.comment-0.1.0.tar
+ cd python-module-zc.comment-0.1.0
+ /bin/chmod -c -Rf u+rwX,go-w .
+ cp -fR . ../python3
+ find ../python3 -type f -name '*.py' -exec 2to3 -w -n '{}' +
RefactoringTool: Skipping optional fixer: buffer
RefactoringTool: Skipping optional fixer: idioms
RefactoringTool: Skipping optional fixer: set_literal
RefactoringTool: Skipping optional fixer: ws_comma
RefactoringTool: No changes to ../python3/src/zc/comment/tests.py
RefactoringTool: Refactored ../python3/src/zc/comment/interfaces.py
RefactoringTool: No changes to ../python3/src/zc/comment/i18n.py
RefactoringTool: No changes to ../python3/src/zc/comment/comment.py
RefactoringTool: Refactored ../python3/src/zc/comment/browser/widget.py
RefactoringTool: Refactored ../python3/src/zc/comment/browser/views.py
RefactoringTool: Refactored ../python3/src/zc/comment/browser/tests.py
--- ../python3/src/zc/comment/interfaces.py (original)
+++ ../python3/src/zc/comment/interfaces.py (refactored)
@@ -23,7 +23,7 @@
import zope.lifecycleevent.interfaces
from zope.interface.common.sequence import IReadSequence
-from i18n import _
+from .i18n import _
class ICommentText(zope.schema.interfaces.IText):
@@ -71,8 +71,8 @@
"""
comment = zope.schema.Object(
- title=u'Comment',
- description=u'The comment object that has been created.',
+ title='Comment',
+ description='The comment object that has been created.',
schema=IComment)
--- ../python3/src/zc/comment/browser/widget.py (original)
+++ ../python3/src/zc/comment/browser/widget.py (refactored)
@@ -25,7 +25,7 @@
"""
__docformat__ = "reStructuredText"
-import HTMLParser
+import html.parser
import xml.sax.saxutils
import zope.app.form.browser.textwidgets
@@ -90,10 +90,10 @@
return value
-class ConversionParser(HTMLParser.HTMLParser):
+class ConversionParser(html.parser.HTMLParser):
def __init__(self):
- HTMLParser.HTMLParser.__init__(self)
+ html.parser.HTMLParser.__init__(self)
self.__buffer = []
def handle_data(self, data):
--- ../python3/src/zc/comment/browser/views.py (original)
+++ ../python3/src/zc/comment/browser/views.py (refactored)
@@ -75,7 +75,7 @@
comment = self.widgets.get('comment')
if comment is not None:
comment.style="width: 50ex; height: 6em;"
- comment.setRenderedValue(u'')
+ comment.setRenderedValue('')
@zope.cachedescriptors.property.Lazy
def formatter(self):
@@ -96,7 +96,7 @@
class CommentsSubPage(zope.formlib.form.SubPageForm, Comments):
- label = u''
+ label = ''
template = ViewPageTemplateFile('commentssub.pt')
--- ../python3/src/zc/comment/browser/tests.py (original)
+++ ../python3/src/zc/comment/browser/tests.py (refactored)
@@ -44,14 +44,14 @@
class IFace(zope.interface.Interface):
foo = zc.comment.interfaces.CommentText(
- title=u"Foo",
- description=u"Foo description",
+ title="Foo",
+ description="Foo description",
)
class Face(object):
- foo = (u"Foo
\n"
- u"\n"
- u"Bar < & >")
+ foo = ("Foo
\n"
+ "\n"
+ "Bar < & >")
class MyContent(persistent.Persistent):
@@ -81,13 +81,13 @@
w = zope.component.getMultiAdapter(
(self.bound_field, self.request),
zope.app.form.interfaces.IDisplayWidget)
- self.failUnless(isinstance(w, zc.comment.browser.widget.Display))
+ self.assertTrue(isinstance(w, zc.comment.browser.widget.Display))
def test_input_widget_lookup(self):
w = zope.component.getMultiAdapter(
(self.bound_field, self.request),
zope.app.form.interfaces.IInputWidget)
- self.failUnless(isinstance(w, zc.comment.browser.widget.Input))
+ self.assertTrue(isinstance(w, zc.comment.browser.widget.Input))
class TestBase(object):
@@ -130,22 +130,22 @@
del form["field.foo"]
def test_hasInput(self):
- self.failIf(self._widget.hasInput())
+ self.assertFalse(self._widget.hasInput())
form = self._widget.request.form
- form["field.foo"] = u'some text'
- self.failUnless(self._widget.hasInput())
- self._widget.setRenderedValue(u"other text")
- self.failUnless(self._widget.hasInput())
+ form["field.foo"] = 'some text'
+ self.assertTrue(self._widget.hasInput())
+ self._widget.setRenderedValue("other text")
+ self.assertTrue(self._widget.hasInput())
self.clearForm()
- self.failIf(self._widget.hasInput())
+ self.assertFalse(self._widget.hasInput())
def test_getInputValue_one_line(self):
- self._widget.request.form["field.foo"] = u'line of text'
- self.assertEqual(self._widget.getInputValue(), u'line of text')
+ self._widget.request.form["field.foo"] = 'line of text'
+ RefactoringTool: No changes to ../python3/src/zc/__init__.py
RefactoringTool: No changes to ../python3/setup.py
RefactoringTool: Refactored ../python3/bootstrap.py
RefactoringTool: Files that were modified:
RefactoringTool: ../python3/src/zc/comment/tests.py
RefactoringTool: ../python3/src/zc/comment/interfaces.py
RefactoringTool: ../python3/src/zc/comment/i18n.py
RefactoringTool: ../python3/src/zc/comment/comment.py
RefactoringTool: ../python3/src/zc/comment/browser/widget.py
RefactoringTool: ../python3/src/zc/comment/browser/views.py
RefactoringTool: ../python3/src/zc/comment/browser/tests.py
RefactoringTool: ../python3/src/zc/__init__.py
RefactoringTool: ../python3/setup.py
RefactoringTool: ../python3/bootstrap.py
self.assertEqual(self._widget.getInputValue(), 'line of text')
def test_getInputValue_multi_line(self):
- self._widget.request.form["field.foo"] = u'line 1\rline 2'
- self.assertEqual(self._widget.getInputValue(), u'line 1
\nline 2')
+ self._widget.request.form["field.foo"] = 'line 1\rline 2'
+ self.assertEqual(self._widget.getInputValue(), 'line 1
\nline 2')
def test_render_missing_value(self):
self._widget.setRenderedValue(self._widget.context.missing_value)
@@ -162,8 +162,8 @@
inorder=True)
def test_render_multi_line(self):
- self._widget.setRenderedValue(u"line 1
\n
\nline 3"
- u" < & > ")
+ self._widget.setRenderedValue("line 1
\n
\nline 3"
+ " < & > ")
self.verifyResult(self._widget(),
['