<86>Jan 14 02:30:04 userdel[28966]: delete user 'rooter' <86>Jan 14 02:30:04 userdel[28966]: removed shadow group 'rooter' owned by 'rooter' <86>Jan 14 02:30:04 groupadd[28978]: group added to /etc/group: name=rooter, GID=585 <86>Jan 14 02:30:04 groupadd[28978]: group added to /etc/gshadow: name=rooter <86>Jan 14 02:30:04 groupadd[28978]: new group: name=rooter, GID=585 <86>Jan 14 02:30:04 useradd[28988]: new user: name=rooter, UID=585, GID=585, home=/root, shell=/bin/bash <86>Jan 14 02:30:04 userdel[29004]: delete user 'builder' <86>Jan 14 02:30:04 userdel[29004]: removed group 'builder' owned by 'builder' <86>Jan 14 02:30:04 userdel[29004]: removed shadow group 'builder' owned by 'builder' <86>Jan 14 02:30:04 groupadd[29017]: group added to /etc/group: name=builder, GID=586 <86>Jan 14 02:30:04 groupadd[29017]: group added to /etc/gshadow: name=builder <86>Jan 14 02:30:04 groupadd[29017]: new group: name=builder, GID=586 <86>Jan 14 02:30:04 useradd[29025]: new user: name=builder, UID=586, GID=586, home=/usr/src, shell=/bin/bash <13>Jan 14 02:30:09 rpmi: libgdbm-1.8.3-alt10 1454943313 installed <13>Jan 14 02:30:09 rpmi: libexpat-2.2.4-alt1 1503305341 installed <13>Jan 14 02:30:09 rpmi: libp11-kit-0.23.15-alt1 sisyphus+226408.100.2.1 1554288187 installed <13>Jan 14 02:30:09 rpmi: libtasn1-4.15.0-alt1 sisyphus+241940.100.1.1 1574959862 installed <13>Jan 14 02:30:09 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Jan 14 02:30:09 rpmi: alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Jan 14 02:30:09 rpmi: ca-certificates-2019.10.28-alt1 sisyphus+239875.300.1.1 1572267834 installed <13>Jan 14 02:30:09 rpmi: ca-trust-0.1.2-alt1 sisyphus+233348.100.1.1 1561653823 installed <13>Jan 14 02:30:09 rpmi: p11-kit-trust-0.23.15-alt1 sisyphus+226408.100.2.1 1554288187 installed <13>Jan 14 02:30:09 rpmi: libcrypto1.1-1.1.1d-alt1.1 sisyphus+237931.100.2.1 1569235630 installed <13>Jan 14 02:30:09 rpmi: libssl1.1-1.1.1d-alt1.1 sisyphus+237931.100.2.1 1569235630 installed <13>Jan 14 02:30:09 rpmi: python3-3.7.4-alt2 sisyphus+239418.100.1.1 1571389791 installed <13>Jan 14 02:30:10 rpmi: libpython3-3.7.4-alt2 sisyphus+239418.100.1.1 1571389791 installed <13>Jan 14 02:30:10 rpmi: python3-base-3.7.4-alt2 sisyphus+239418.100.1.1 1571389791 installed <13>Jan 14 02:30:10 rpmi: tests-for-installed-python3-pkgs-0.1.13.1-alt2 1535450458 installed <13>Jan 14 02:30:10 rpmi: rpm-build-python3-0.1.13.1-alt2 1535450458 installed <13>Jan 14 02:30:15 rpmi: libverto-0.3.0-alt1_7 sisyphus+225932.100.1.1 1553994917 installed <13>Jan 14 02:30:15 rpmi: libkeyutils-1.6-alt2 sisyphus+226520.100.2.1 1554512088 installed <13>Jan 14 02:30:15 rpmi: libcom_err-1.44.6-alt1 sisyphus+224154.100.1.1 1552091653 installed <86>Jan 14 02:30:15 groupadd[7907]: group added to /etc/group: name=_keytab, GID=499 <86>Jan 14 02:30:15 groupadd[7907]: group added to /etc/gshadow: name=_keytab <86>Jan 14 02:30:15 groupadd[7907]: new group: name=_keytab, GID=499 <13>Jan 14 02:30:15 rpmi: libkrb5-1.17.1-alt1 sisyphus+242784.100.1.1 1576137160 installed <13>Jan 14 02:30:15 rpmi: libtirpc-1.0.3-alt1 1532008015 installed <13>Jan 14 02:30:15 rpmi: libnsl2-1.1.0-alt1_1 1511548748 installed <13>Jan 14 02:30:15 rpmi: python-modules-encodings-2.7.17-alt3 sisyphus+240580.200.5.1 1573517270 installed <13>Jan 14 02:30:15 rpmi: python-modules-compiler-2.7.17-alt3 sisyphus+240580.200.5.1 1573517270 installed <13>Jan 14 02:30:15 rpmi: python-modules-email-2.7.17-alt3 sisyphus+240580.200.5.1 1573517270 installed <13>Jan 14 02:30:15 rpmi: python-modules-unittest-2.7.17-alt3 sisyphus+240580.200.5.1 1573517270 installed <13>Jan 14 02:30:15 rpmi: python-modules-2.7.17-alt3 sisyphus+240580.200.5.1 1573517270 installed <13>Jan 14 02:30:15 rpmi: python-modules-nis-2.7.17-alt3 sisyphus+240580.200.5.1 1573517270 installed <13>Jan 14 02:30:15 rpmi: python-modules-ctypes-2.7.17-alt3 sisyphus+240580.200.5.1 1573517270 installed <13>Jan 14 02:30:15 rpmi: python-modules-multiprocessing-2.7.17-alt3 sisyphus+240580.200.5.1 1573517270 installed <13>Jan 14 02:30:15 rpmi: python-modules-logging-2.7.17-alt3 sisyphus+240580.200.5.1 1573517270 installed <13>Jan 14 02:30:15 rpmi: python-tools-2to3-2.7.17-alt3 sisyphus+240580.200.5.1 1573517270 installed Building target platforms: x86_64 Building for target x86_64 Wrote: /usr/src/in/nosrpm/python3-module-flask-canvas-0.1-alt2.nosrc.rpm <13>Jan 14 02:30:18 rpmi: python3-module-pkg_resources-1:41.4.0-alt1 sisyphus+238787.100.2.1 1570608044 installed <13>Jan 14 02:30:18 rpmi: libtinfo-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686221 installed <13>Jan 14 02:30:18 rpmi: libncurses-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686221 installed <13>Jan 14 02:30:18 rpmi: python3-dev-3.7.4-alt2 sisyphus+239418.100.1.1 1571389791 installed <13>Jan 14 02:30:19 rpmi: python3-module-setuptools-1:41.4.0-alt1 sisyphus+238787.100.2.1 1570608044 installed Installing python3-module-flask-canvas-0.1-alt2.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.75445 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python3-module-flask-canvas-0.1 + echo 'Source #0 (python3-module-flask-canvas-0.1.tar):' Source #0 (python3-module-flask-canvas-0.1.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/python3-module-flask-canvas-0.1.tar + cd python3-module-flask-canvas-0.1 + /bin/chmod -c -Rf u+rwX,go-w . + 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: No changes to ./tests.py RefactoringTool: No changes to ./setup.py RefactoringTool: Refactored ./flask_canvas.py RefactoringTool: No changes to ./example/app.py RefactoringTool: Refactored ./docs/source/conf.py RefactoringTool: Files that were modified: RefactoringTool: ./tests.py RefactoringTool: ./setup.py RefactoringTool: ./flask_canvas.py RefactoringTool: ./example/app.py RefactoringTool: ./docs/source/conf.py --- ./flask_canvas.py (original) +++ ./flask_canvas.py (refactored) @@ -9,7 +9,7 @@ except ImportError: from json import loads from inspect import getargspec -from urllib2 import urlopen, Request +from urllib.request import urlopen, Request from flask import (Flask, abort, current_app as app, request as flask_request, redirect) @@ -48,7 +48,7 @@ Checks the current user permission set against the one being requested by the application. """ - perms = self.request('/me/permissions')['data'][0].keys() + perms = list(self.request('/me/permissions')['data'][0].keys()) return all(k in perms for k in app.config[ 'CANVAS_SCOPE'].split(',')) --- ./docs/source/conf.py (original) +++ ./docs/source/conf.py (refactored) @@ -41,8 +41,8 @@ master_doc = 'index' # General information about the project. -project = u'flask-canvas' -copyright = u'2013, Demian Brecht' +project = 'flask-canvas' +copyright = '2013, Demian Brecht' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the @@ -184,8 +184,8 @@ # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, author, documentclass [howto/manual]). latex_documents = [ - ('index', 'flask-canvas.tex', u'flask-canvas Documentation', - u'Demian Brecht', 'manual'), + ('index', 'flask-canvas.tex', 'flask-canvas Documentation', + 'Demian Brecht', 'manual'), ] # The name of an image file (relative to this directory) to place at the top of @@ -214,8 +214,8 @@ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ - ('index', 'flask-canvas', u'flask-canvas Documentation', - [u'Demian Brecht'], 1) + ('index', 'flask-canvas', 'flask-canvas Documentation', + ['Demian Brecht'], 1) ] # If true, show URL addresses after external links. @@ -228,8 +228,8 @@ # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ - ('index', 'flask-canvas', u'flask-canvas Documentation', - u'Demian Brecht', 'flask-canvas', 'One line description of project.', + ('index', 'flask-canvas', 'flask-canvas Documentation', + 'Demian Brecht', 'flask-canvas', 'One line description of project.', 'Miscellaneous'), ] + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.6530 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python3-module-flask-canvas-0.1 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2' + export FFLAGS + /usr/bin/python3 setup.py build --debug running build running build_py creating build creating build/lib copying flask_canvas.py -> build/lib running egg_info creating flask_canvas.egg-info writing flask_canvas.egg-info/PKG-INFO writing dependency_links to flask_canvas.egg-info/dependency_links.txt writing requirements to flask_canvas.egg-info/requires.txt writing top-level names to flask_canvas.egg-info/top_level.txt writing manifest file 'flask_canvas.egg-info/SOURCES.txt' reading manifest file 'flask_canvas.egg-info/SOURCES.txt' writing manifest file 'flask_canvas.egg-info/SOURCES.txt' + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.31286 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python3-module-flask-canvas-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python3-module-flask-canvas-buildroot + cd python3-module-flask-canvas-0.1 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2' + export FFLAGS + /usr/bin/python3 setup.py install --skip-build --root=/usr/src/tmp/python3-module-flask-canvas-buildroot --force running install running install_lib creating /usr/src/tmp/python3-module-flask-canvas-buildroot creating /usr/src/tmp/python3-module-flask-canvas-buildroot/usr creating /usr/src/tmp/python3-module-flask-canvas-buildroot/usr/lib creating /usr/src/tmp/python3-module-flask-canvas-buildroot/usr/lib/python3 creating /usr/src/tmp/python3-module-flask-canvas-buildroot/usr/lib/python3/site-packages copying build/lib/flask_canvas.py -> /usr/src/tmp/python3-module-flask-canvas-buildroot/usr/lib/python3/site-packages byte-compiling /usr/src/tmp/python3-module-flask-canvas-buildroot/usr/lib/python3/site-packages/flask_canvas.py to flask_canvas.cpython-37.pyc running install_egg_info running egg_info writing flask_canvas.egg-info/PKG-INFO writing dependency_links to flask_canvas.egg-info/dependency_links.txt writing requirements to flask_canvas.egg-info/requires.txt writing top-level names to flask_canvas.egg-info/top_level.txt reading manifest file 'flask_canvas.egg-info/SOURCES.txt' writing manifest file 'flask_canvas.egg-info/SOURCES.txt' Copying flask_canvas.egg-info to /usr/src/tmp/python3-module-flask-canvas-buildroot/usr/lib/python3/site-packages/flask_canvas-0.1-py3.7.egg-info running install_scripts + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python3-module-flask-canvas-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python3-module-flask-canvas-buildroot (binconfig,pkgconfig,libtool,desktop) Checking contents of files in /usr/src/tmp/python3-module-flask-canvas-buildroot/ (default) Compressing files in /usr/src/tmp/python3-module-flask-canvas-buildroot (auto) Adjusting library links in /usr/src/tmp/python3-module-flask-canvas-buildroot ./usr/lib: Verifying ELF objects in /usr/src/tmp/python3-module-flask-canvas-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) Bytecompiling python modules in /usr/src/tmp/python3-module-flask-canvas-buildroot using /usr/bin/python2.7 Bytecompiling python modules with optimization in /usr/src/tmp/python3-module-flask-canvas-buildroot using /usr/bin/python2.7 -O Bytecompiling python3 modules in /usr/src/tmp/python3-module-flask-canvas-buildroot using /usr/bin/python3 unlink /usr/src/tmp/python3-module-flask-canvas-buildroot/usr/lib/python3/site-packages/__pycache__/flask_canvas.cpython-37.pyc compile /usr/src/tmp/python3-module-flask-canvas-buildroot/usr/lib/python3/site-packages/flask_canvas.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python3-module-flask-canvas-buildroot using /usr/bin/python3 -O compile /usr/src/tmp/python3-module-flask-canvas-buildroot/usr/lib/python3/site-packages/flask_canvas.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python3-module-flask-canvas-buildroot using /usr/bin/python3 -OO compile /usr/src/tmp/python3-module-flask-canvas-buildroot/usr/lib/python3/site-packages/flask_canvas.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/__pycache__/flask_canvas.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/__pycache__/flask_canvas.cpython-37.pyc' Hardlinking identical .pyc and .pyo files Processing files: python3-module-flask-canvas-0.1-alt2 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.86022 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python3-module-flask-canvas-0.1 + DOCDIR=/usr/src/tmp/python3-module-flask-canvas-buildroot/usr/share/doc/python3-module-flask-canvas-0.1 + export DOCDIR + rm -rf /usr/src/tmp/python3-module-flask-canvas-buildroot/usr/share/doc/python3-module-flask-canvas-0.1 + /bin/mkdir -p /usr/src/tmp/python3-module-flask-canvas-buildroot/usr/share/doc/python3-module-flask-canvas-0.1 + cp -prL docs/source/index.rst README example /usr/src/tmp/python3-module-flask-canvas-buildroot/usr/share/doc/python3-module-flask-canvas-0.1 + chmod -R go-w /usr/src/tmp/python3-module-flask-canvas-buildroot/usr/share/doc/python3-module-flask-canvas-0.1 + chmod -R a+rX /usr/src/tmp/python3-module-flask-canvas-buildroot/usr/share/doc/python3-module-flask-canvas-0.1 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.T6NIJM 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.1eXbYK find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services) /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-flask-canvas-buildroot/usr/lib/python3/site-packages/flask_canvas.py: line=8 IGNORE (for REQ=slight and deep=8) module=simplejson /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-flask-canvas-buildroot/usr/lib/python3/site-packages/flask_canvas.py: line=10 IGNORE (for REQ=slight and deep=8) module=json Provides: python3(flask_canvas) Requires: /usr/lib/python3/site-packages, python3(base64) < 0, python3(flask) < 0, python3(hashlib) < 0, python3(hmac) < 0, python3(inspect) < 0, python3(urllib.request) < 0 Wrote: /usr/src/RPM/RPMS/noarch/python3-module-flask-canvas-0.1-alt2.noarch.rpm 6.05user 0.96system 0:09.63elapsed 72%CPU (0avgtext+0avgdata 27200maxresident)k 0inputs+0outputs (0major+165142minor)pagefaults 0swaps 17.89user 7.53system 0:30.46elapsed 83%CPU (0avgtext+0avgdata 109896maxresident)k 0inputs+0outputs (0major+618876minor)pagefaults 0swaps