<86>Jan 18 09:20:27 userdel[4095524]: delete user 'rooter' <86>Jan 18 09:20:27 userdel[4095524]: removed group 'rooter' owned by 'rooter' <86>Jan 18 09:20:27 userdel[4095524]: removed shadow group 'rooter' owned by 'rooter' <86>Jan 18 09:20:27 groupadd[4095552]: group added to /etc/group: name=rooter, GID=693 <86>Jan 18 09:20:27 groupadd[4095552]: group added to /etc/gshadow: name=rooter <86>Jan 18 09:20:27 groupadd[4095552]: new group: name=rooter, GID=693 <86>Jan 18 09:20:27 useradd[4095567]: new user: name=rooter, UID=693, GID=693, home=/root, shell=/bin/bash <86>Jan 18 09:20:27 userdel[4095588]: delete user 'builder' <86>Jan 18 09:20:27 userdel[4095588]: removed group 'builder' owned by 'builder' <86>Jan 18 09:20:27 userdel[4095588]: removed shadow group 'builder' owned by 'builder' <86>Jan 18 09:20:27 groupadd[4095611]: group added to /etc/group: name=builder, GID=694 <86>Jan 18 09:20:27 groupadd[4095611]: group added to /etc/gshadow: name=builder <86>Jan 18 09:20:27 groupadd[4095611]: new group: name=builder, GID=694 <86>Jan 18 09:20:27 useradd[4095622]: new user: name=builder, UID=694, GID=694, home=/usr/src, shell=/bin/bash <13>Jan 18 09:20:29 rpmi: libgdbm-1.8.3-alt10 1454943334 installed <13>Jan 18 09:20:29 rpmi: libexpat-2.2.10-alt1 sisyphus+259966.100.1.1 1602824518 installed <13>Jan 18 09:20:29 rpmi: libp11-kit-0.23.15-alt2 sisyphus+252784.100.2.2 1591274901 installed <13>Jan 18 09:20:29 rpmi: libtasn1-4.16.0-alt1 sisyphus+245480.100.1.1 1580825062 installed <13>Jan 18 09:20:29 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Jan 18 09:20:29 rpmi: alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Jan 18 09:20:29 rpmi: ca-certificates-2020.10.22-alt1 sisyphus+260224.300.2.1 1603549301 installed <13>Jan 18 09:20:29 rpmi: ca-trust-0.1.2-alt1 sisyphus+233348.100.1.1 1561653823 installed <13>Jan 18 09:20:29 rpmi: p11-kit-trust-0.23.15-alt2 sisyphus+252784.100.2.2 1591274901 installed <13>Jan 18 09:20:29 rpmi: libcrypto1.1-1.1.1i-alt1 sisyphus+263103.100.1.1 1607445576 installed <13>Jan 18 09:20:29 rpmi: libssl1.1-1.1.1i-alt1 sisyphus+263103.100.1.1 1607445576 installed <13>Jan 18 09:20:29 rpmi: python3-3.8.6-alt1 sisyphus+259085.100.2.1 1601904174 installed <13>Jan 18 09:20:30 rpmi: python3-base-3.8.6-alt1 sisyphus+259085.100.2.1 1601904174 installed <13>Jan 18 09:20:30 rpmi: libpython3-3.8.6-alt1 sisyphus+259085.100.2.1 1601904174 installed <13>Jan 18 09:20:30 rpmi: tests-for-installed-python3-pkgs-0.1.13.1-alt2 1535450458 installed <13>Jan 18 09:20:30 rpmi: rpm-build-python3-0.1.13.1-alt2 1535450458 installed <13>Jan 18 09:20:33 rpmi: python-modules-compiler-2.7.18-alt3 sisyphus+263690.140.6.1 1608730167 installed <13>Jan 18 09:20:33 rpmi: python-modules-email-2.7.18-alt3 sisyphus+263690.140.6.1 1608730167 installed <13>Jan 18 09:20:33 rpmi: python-modules-unittest-2.7.18-alt3 sisyphus+263690.140.6.1 1608730167 installed <13>Jan 18 09:20:33 rpmi: python-modules-2.7.18-alt3 sisyphus+263690.140.6.1 1608730167 installed <13>Jan 18 09:20:33 rpmi: python-modules-encodings-2.7.18-alt3 sisyphus+263690.140.6.1 1608730167 installed <13>Jan 18 09:20:33 rpmi: python-modules-ctypes-2.7.18-alt3 sisyphus+263690.140.6.1 1608730167 installed <13>Jan 18 09:20:33 rpmi: python-modules-multiprocessing-2.7.18-alt3 sisyphus+263690.140.6.1 1608730167 installed <13>Jan 18 09:20:33 rpmi: python-modules-logging-2.7.18-alt3 sisyphus+263690.140.6.1 1608730167 installed <13>Jan 18 09:20:33 rpmi: python-tools-2to3-2.7.18-alt3 sisyphus+263690.140.6.1 1608730167 installed Building target platforms: i586 Building for target i586 Wrote: /usr/src/in/nosrpm/python3-module-flask-canvas-0.1-alt2.nosrc.rpm (w1.gzdio) <13>Jan 18 09:20:36 rpmi: python3-module-pkg_resources-1:46.1.3-alt2 sisyphus+260458.600.6.1 1603876498 installed <13>Jan 18 09:20:36 rpmi: libtinfo-devel-6.2.20201107-alt1 sisyphus+261749.100.1.1 1605292929 installed <13>Jan 18 09:20:36 rpmi: libncurses-devel-6.2.20201107-alt1 sisyphus+261749.100.1.1 1605292929 installed <13>Jan 18 09:20:36 rpmi: python3-dev-3.8.6-alt1 sisyphus+259085.100.2.1 1601904174 installed <13>Jan 18 09:20:36 rpmi: python3-module-setuptools-1:46.1.3-alt2 sisyphus+260458.600.6.1 1603876498 installed Installing python3-module-flask-canvas-0.1-alt2.src.rpm Building target platforms: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.42170 + 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.4360 + 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 -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + 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.3695 + 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 + PATH=/usr/libexec/rpm-build:/usr/src/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games + cd python3-module-flask-canvas-0.1 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + 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-38.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.8.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,gnuconfig) 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: (from :0) 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-38.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-38.opt-1.pyc' => './usr/lib/python3/site-packages/__pycache__/flask_canvas.cpython-38.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.39010 + 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.7T8omH 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.otdZxI 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 (w2.lzdio) 5.06user 0.55system 0:07.31elapsed 76%CPU (0avgtext+0avgdata 18948maxresident)k 0inputs+0outputs (0major+123342minor)pagefaults 0swaps 13.47user 4.71system 0:21.38elapsed 85%CPU (0avgtext+0avgdata 106696maxresident)k 0inputs+0outputs (0major+562903minor)pagefaults 0swaps --- python3-module-flask-canvas-0.1-alt2.noarch.rpm.repo 2019-11-12 14:31:12.000000000 +0000 +++ python3-module-flask-canvas-0.1-alt2.noarch.rpm.hasher 2021-01-18 09:20:45.863064401 +0000 @@ -1,11 +1,11 @@ /usr/lib/python3/site-packages/__pycache__ 40755 -/usr/lib/python3/site-packages/__pycache__/flask_canvas.cpython-37.opt-1.pyc 100644 -/usr/lib/python3/site-packages/__pycache__/flask_canvas.cpython-37.opt-2.pyc 100644 -/usr/lib/python3/site-packages/__pycache__/flask_canvas.cpython-37.pyc 100644 -/usr/lib/python3/site-packages/flask_canvas-0.1-py3.7.egg-info 40755 -/usr/lib/python3/site-packages/flask_canvas-0.1-py3.7.egg-info/PKG-INFO 100644 -/usr/lib/python3/site-packages/flask_canvas-0.1-py3.7.egg-info/SOURCES.txt 100644 -/usr/lib/python3/site-packages/flask_canvas-0.1-py3.7.egg-info/dependency_links.txt 100644 -/usr/lib/python3/site-packages/flask_canvas-0.1-py3.7.egg-info/requires.txt 100644 -/usr/lib/python3/site-packages/flask_canvas-0.1-py3.7.egg-info/top_level.txt 100644 +/usr/lib/python3/site-packages/__pycache__/flask_canvas.cpython-38.opt-1.pyc 100644 +/usr/lib/python3/site-packages/__pycache__/flask_canvas.cpython-38.opt-2.pyc 100644 +/usr/lib/python3/site-packages/__pycache__/flask_canvas.cpython-38.pyc 100644 +/usr/lib/python3/site-packages/flask_canvas-0.1-py3.8.egg-info 40755 +/usr/lib/python3/site-packages/flask_canvas-0.1-py3.8.egg-info/PKG-INFO 100644 +/usr/lib/python3/site-packages/flask_canvas-0.1-py3.8.egg-info/SOURCES.txt 100644 +/usr/lib/python3/site-packages/flask_canvas-0.1-py3.8.egg-info/dependency_links.txt 100644 +/usr/lib/python3/site-packages/flask_canvas-0.1-py3.8.egg-info/requires.txt 100644 +/usr/lib/python3/site-packages/flask_canvas-0.1-py3.8.egg-info/top_level.txt 100644 /usr/lib/python3/site-packages/flask_canvas.py 100644