<86>Feb 15 11:22:44 userdel[3336931]: delete user 'rooter' <86>Feb 15 11:22:44 userdel[3336931]: removed group 'rooter' owned by 'rooter' <86>Feb 15 11:22:44 groupadd[3336942]: group added to /etc/group: name=rooter, GID=585 <86>Feb 15 11:22:44 groupadd[3336942]: group added to /etc/gshadow: name=rooter <86>Feb 15 11:22:44 groupadd[3336942]: new group: name=rooter, GID=585 <86>Feb 15 11:22:45 useradd[3336947]: new user: name=rooter, UID=585, GID=585, home=/root, shell=/bin/bash <86>Feb 15 11:22:45 userdel[3336959]: delete user 'builder' <86>Feb 15 11:22:45 userdel[3336959]: removed group 'builder' owned by 'builder' <86>Feb 15 11:22:45 userdel[3336959]: removed shadow group 'builder' owned by 'builder' <86>Feb 15 11:22:45 groupadd[3336965]: group added to /etc/group: name=builder, GID=586 <86>Feb 15 11:22:45 groupadd[3336965]: group added to /etc/gshadow: name=builder <86>Feb 15 11:22:45 groupadd[3336965]: new group: name=builder, GID=586 <86>Feb 15 11:22:45 useradd[3336973]: new user: name=builder, UID=586, GID=586, home=/usr/src, shell=/bin/bash <13>Feb 15 11:22:49 rpmi: libgdbm-1.8.3-alt10 1454943334 installed <13>Feb 15 11:22:49 rpmi: libexpat-2.2.4-alt1 1503305345 installed <13>Feb 15 11:22:49 rpmi: libp11-kit-0.23.15-alt1 sisyphus+226408.100.2.1 1554288204 installed <13>Feb 15 11:22:49 rpmi: libtasn1-4.16.0-alt1 sisyphus+245480.100.1.1 1580825062 installed <13>Feb 15 11:22:49 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Feb 15 11:22:49 rpmi: alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Feb 15 11:22:49 rpmi: ca-certificates-2020.01.23-alt1 sisyphus+244791.300.2.1 1580285500 installed <13>Feb 15 11:22:49 rpmi: ca-trust-0.1.2-alt1 sisyphus+233348.100.1.1 1561653823 installed <13>Feb 15 11:22:49 rpmi: p11-kit-trust-0.23.15-alt1 sisyphus+226408.100.2.1 1554288204 installed <13>Feb 15 11:22:49 rpmi: libcrypto1.1-1.1.1d-alt1.1 sisyphus+237931.100.2.1 1569235729 installed <13>Feb 15 11:22:49 rpmi: libssl1.1-1.1.1d-alt1.1 sisyphus+237931.100.2.1 1569235729 installed <13>Feb 15 11:22:49 rpmi: python3-3.7.4-alt2 sisyphus+239418.100.1.1 1571389913 installed <13>Feb 15 11:22:50 rpmi: libpython3-3.7.4-alt2 sisyphus+239418.100.1.1 1571389913 installed <13>Feb 15 11:22:52 rpmi: python3-base-3.7.4-alt2 sisyphus+239418.100.1.1 1571389913 installed <13>Feb 15 11:22:52 rpmi: tests-for-installed-python3-pkgs-0.1.13.1-alt2 1535450458 installed <13>Feb 15 11:22:52 rpmi: rpm-build-python3-0.1.13.1-alt2 1535450458 installed <13>Feb 15 11:22:59 rpmi: libverto-0.3.0-alt1_7 sisyphus+225932.100.1.1 1553994919 installed <13>Feb 15 11:22:59 rpmi: libkeyutils-1.6-alt2 sisyphus+226520.100.2.1 1554512089 installed <13>Feb 15 11:22:59 rpmi: libcom_err-1.44.6-alt1 sisyphus+224154.100.1.1 1552091678 installed <86>Feb 15 11:22:59 groupadd[3356787]: group added to /etc/group: name=_keytab, GID=499 <86>Feb 15 11:22:59 groupadd[3356787]: group added to /etc/gshadow: name=_keytab <86>Feb 15 11:22:59 groupadd[3356787]: new group: name=_keytab, GID=499 <13>Feb 15 11:22:59 rpmi: libkrb5-1.17.1-alt1 sisyphus+242784.100.1.1 1576137330 installed <13>Feb 15 11:22:59 rpmi: libtirpc-1.0.3-alt1 1532008017 installed <13>Feb 15 11:22:59 rpmi: libnsl2-1.1.0-alt1_1 1511548749 installed <13>Feb 15 11:23:00 rpmi: python-modules-encodings-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Feb 15 11:23:00 rpmi: python-modules-compiler-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Feb 15 11:23:00 rpmi: python-modules-email-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Feb 15 11:23:00 rpmi: python-modules-unittest-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Feb 15 11:23:01 rpmi: python-modules-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Feb 15 11:23:01 rpmi: python-modules-nis-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Feb 15 11:23:01 rpmi: python-modules-ctypes-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Feb 15 11:23:01 rpmi: python-modules-multiprocessing-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Feb 15 11:23:01 rpmi: python-modules-logging-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Feb 15 11:23:01 rpmi: python-tools-2to3-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed Building target platforms: i586 Building for target i586 Wrote: /usr/src/in/nosrpm/scato-0.3.7-alt2.nosrc.rpm <13>Feb 15 11:23:05 rpmi: python3-module-pkg_resources-1:41.4.0-alt1 sisyphus+238787.100.2.1 1570608044 installed <13>Feb 15 11:23:05 rpmi: libtinfo-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686226 installed <13>Feb 15 11:23:05 rpmi: libncurses-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686226 installed <13>Feb 15 11:23:05 rpmi: python3-dev-3.7.4-alt2 sisyphus+239418.100.1.1 1571389913 installed <13>Feb 15 11:23:05 rpmi: python3-module-setuptools-1:41.4.0-alt1 sisyphus+238787.100.2.1 1570608044 installed Installing scato-0.3.7-alt2.src.rpm Building target platforms: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.73153 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf scato-0.3.7 + echo 'Source #0 (scato-0.3.7.tar.gz):' Source #0 (scato-0.3.7.tar.gz): + /bin/gzip -dc /usr/src/RPM/SOURCES/scato-0.3.7.tar.gz + /bin/tar -xf - + cd scato-0.3.7 + /bin/chmod -c -Rf u+rwX,go-w . + tar xvf /usr/src/RPM/SOURCES/doc.tar doc/ doc/code.google.com/ doc/code.google.com/p/ doc/code.google.com/p/scato/ doc/code.google.com/p/scato/logo?cct=1238219352 doc/code.google.com/p/scato/wiki/ doc/code.google.com/p/scato/wiki/BNF.html doc/code.google.com/p/scato/wiki/BNF.orig doc/code.google.com/p/scato/wiki/BNF_ru.html doc/code.google.com/p/scato/wiki/BNF_ru.orig doc/code.google.com/p/scato/wiki/examples.html doc/code.google.com/p/scato/wiki/examples.orig doc/code.google.com/p/scato/wiki/features_and_changes.html doc/code.google.com/p/scato/wiki/features_and_changes.orig doc/code.google.com/p/scato/wiki/features_and_changes_ru.html doc/code.google.com/p/scato/wiki/features_and_changes_ru.orig doc/code.google.com/p/scato/wiki/history_ru.html doc/code.google.com/p/scato/wiki/history_ru.orig doc/code.google.com/p/scato/wiki/implementation_ru.html doc/code.google.com/p/scato/wiki/implementation_ru.orig doc/code.google.com/p/scato/wiki/language_manual_ru.html doc/code.google.com/p/scato/wiki/language_manual_ru.orig doc/code.google.com/p/scato/wiki/menu_overview.html doc/code.google.com/p/scato/wiki/menu_overview.orig doc/code.google.com/p/scato/wiki/menu_overview_ru.html doc/code.google.com/p/scato/wiki/menu_overview_ru.orig doc/code.google.com/p/scato/wiki/overview_ru.html doc/code.google.com/p/scato/wiki/overview_ru.orig doc/code.google.com/robots.txt doc/scato.googlecode.com/ doc/scato.googlecode.com/svn/ doc/scato.googlecode.com/svn/wiki/ doc/scato.googlecode.com/svn/wiki/example-1-1-1.png doc/scato.googlecode.com/svn/wiki/example-1-1-2.png doc/scato.googlecode.com/svn/wiki/example-1-2-1.png doc/scato.googlecode.com/svn/wiki/example-1-2-2.png doc/scato.googlecode.com/svn/wiki/example-1-3-1.png doc/scato.googlecode.com/svn/wiki/example-1-3-2.png doc/scato.googlecode.com/svn/wiki/example-1-4.png doc/scato.googlecode.com/svn/wiki/example-1-5-1.png doc/scato.googlecode.com/svn/wiki/example-1-5-2.png doc/scato.googlecode.com/svn/wiki/example-1-6-1.png doc/scato.googlecode.com/svn/wiki/example-1-6-2.png doc/scato.googlecode.com/svn/wiki/example-1-6-3.png doc/scato.googlecode.com/svn/wiki/example-1-6-4.png doc/scato.googlecode.com/svn/wiki/example-1-7-1-1.png doc/scato.googlecode.com/svn/wiki/example-1-7-1-2.png doc/scato.googlecode.com/svn/wiki/example-1-7-2-1.png doc/scato.googlecode.com/svn/wiki/example-1-7-2-2.png doc/scato.googlecode.com/svn/wiki/example-1-7-2-3.png doc/scato.googlecode.com/svn/wiki/example-1-8-1-1.png doc/scato.googlecode.com/svn/wiki/example-1-8-1-2.png doc/scato.googlecode.com/svn/wiki/example-1-8-2.png doc/scato.googlecode.com/svn/wiki/example-1-8-3.png doc/scato.googlecode.com/svn/wiki/example-1-9-1.png doc/scato.googlecode.com/svn/wiki/example-1-9-2.png doc/scato.googlecode.com/svn/wiki/example-1-9-3.png doc/scato.googlecode.com/svn/wiki/example-1-9-4.png doc/scato.googlecode.com/svn/wiki/example-1-9-5.png doc/scato.googlecode.com/svn/wiki/example-1-a-1.png doc/scato.googlecode.com/svn/wiki/example-1-a-2.png doc/scato.googlecode.com/svn/wiki/example-1-a-3.png doc/scato.googlecode.com/svn/wiki/example-1-b-1.png doc/scato.googlecode.com/svn/wiki/example-1-b-2.png doc/scato.googlecode.com/svn/wiki/example-2-1-1.png doc/scato.googlecode.com/svn/wiki/example-2-1-2.png doc/scato.googlecode.com/svn/wiki/example-2-1-3.png doc/scato.googlecode.com/svn/wiki/example-2-1-4.png doc/scato.googlecode.com/svn/wiki/example-2-1-5.png doc/scato.googlecode.com/svn/wiki/example-2-1-6.png doc/scato.googlecode.com/svn/wiki/example-2-1-7.png doc/scato.googlecode.com/svn/wiki/example-2-1-8.png doc/scato.googlecode.com/svn/wiki/example-2-1-9.png doc/scato.googlecode.com/svn/wiki/example-2-2-1.png doc/scato.googlecode.com/svn/wiki/example-2-2-2.png doc/scato.googlecode.com/svn/wiki/example-2-2-3.png doc/scato.googlecode.com/svn/wiki/example-2-2-4.png doc/scato.googlecode.com/svn/wiki/example-2-2-5.png doc/scato.googlecode.com/svn/wiki/example-2-2-6.png doc/scato.googlecode.com/svn/wiki/example-2-2-7.png doc/scato.googlecode.com/svn/wiki/example-2-2-8.png doc/scato.googlecode.com/svn/wiki/example-2-2-9.png doc/scato.googlecode.com/svn/wiki/example-2-2-a.png doc/scato.googlecode.com/svn/wiki/example-2-2-b.png doc/scato.googlecode.com/svn/wiki/example-2-3-1.png doc/scato.googlecode.com/svn/wiki/example-2-3-2.png doc/scato.googlecode.com/svn/wiki/example-2-3-3.png doc/scato.googlecode.com/svn/wiki/example-2-3-4.png doc/scato.googlecode.com/svn/wiki/example-2-3-5.png doc/scato.googlecode.com/svn/wiki/example-2-3-6.png doc/scato.googlecode.com/svn/wiki/example-2-3-7.png doc/scato.googlecode.com/svn/wiki/example-2-3-8-1.png doc/scato.googlecode.com/svn/wiki/example-2-3-8-2.png doc/scato.googlecode.com/svn/wiki/example-2-3-8-3.png doc/scato.googlecode.com/svn/wiki/example-2-3-8-4.png doc/scato.googlecode.com/svn/wiki/example-2-3-8-5.png doc/scato.googlecode.com/svn/wiki/example-2-3-9-1.png doc/scato.googlecode.com/svn/wiki/example-2-3-9-2.png doc/scato.googlecode.com/svn/wiki/example-2-3-9-3.png doc/scato.googlecode.com/svn/wiki/example-2-3-9-4.png doc/scato.googlecode.com/svn/wiki/example-2-3-9-5.png doc/scato.googlecode.com/svn/wiki/example-2-3-a.png doc/scato.googlecode.com/svn/wiki/example-2-3-b.png doc/scato.googlecode.com/svn/wiki/example-2-3-c.png doc/scato.googlecode.com/svn/wiki/example-2-3-d-1.png doc/scato.googlecode.com/svn/wiki/example-2-3-d-2.png doc/scato.googlecode.com/svn/wiki/example-2-3-d-3.png doc/scato.googlecode.com/svn/wiki/example-2-3-e-1.png doc/scato.googlecode.com/svn/wiki/example-2-3-e-2.png doc/scato.googlecode.com/svn/wiki/example-2-3-e-3.png doc/scato.googlecode.com/svn/wiki/example-2-3-e-4.png doc/scato.googlecode.com/svn/wiki/example-2-3-f.png doc/scato.googlecode.com/svn/wiki/example-2-3-g.png doc/scato.googlecode.com/svn/wiki/example-2-3-h.png doc/scato.googlecode.com/svn/wiki/examples-demo.png doc/scato.googlecode.com/svn/wiki/examples-learning.png doc/www.gstatic.com/ doc/www.gstatic.com/robots.txt + echo 'Patch #0 (port-on-python3.patch):' Patch #0 (port-on-python3.patch): + /usr/bin/patch -p2 patching file scato/ui/status.py + 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 ./setup.py RefactoringTool: Refactored ./scato/ui/status.py RefactoringTool: Refactored ./scato/ui/window.py --- ./scato/ui/status.py (original) +++ ./scato/ui/status.py (refactored) @@ -1,4 +1,4 @@ -import Tkinter +import tkinter from scato import __version__ @@ -7,17 +7,13 @@ def __init__(self, root, sched_gen): self.sched_gen = sched_gen - self.label = Tkinter.Label(root, + self.label = tkinter.Label(root, width=2, - relief=Tkinter.RAISED, + relief=tkinter.RAISED, text='Version ' + __version__, anchor='w') - self.def_bg, self.def_fg = map( - lambda k: map(lambda v: v/256, - self.label.winfo_rgb(self.label.cget(k))), - ('background', 'foreground') - ) - self.label.pack(fill=Tkinter.X, side=Tkinter.BOTTOM) + self.def_bg, self.def_fg = [[v/256 for v in self.label.winfo_rgb(self.label.cget(k))] for k in ('background', 'foreground')] + self.label.pack(fill=tkinter.X, side=tkinter.BOTTOM) self.state = 0 self.timer = None @@ -46,8 +42,8 @@ k_fg = (120 - self.state)/30. c_fl = True if c_fl: - bg = map(lambda x: int(x[0]+k_bg*(x[1]-x[0])), zip((255, 255, 0), self.def_bg)) - fg = map(lambda x: int(x[0]+k_fg*(x[1]-x[0])), zip(self.def_bg, self.def_fg)) + bg = [int(x[0]+k_bg*(x[1]-x[0])) for x in zip((255, 255, 0), self.def_bg)] + fg = [int(x[0]+k_fg*(x[1]-x[0])) for x in zip(self.def_bg, self.def_fg)] self.label.configure(bg='#%02x%02x%02x' % tuple(bg), fg='#%02x%02x%02x' % tuple(fg)) if self.state < 120: --- ./scato/ui/window.py (original) +++ ./scato/ui/window.py (refactored) @@ -1,4 +1,4 @@ -import Tkinter +import tkinter import traceback import sys @@ -22,7 +22,7 @@ ''' % (__email__, __version__)) + ''.join(a), 60, 30))) def __call__(self, title, fillers): - root = Tkinter.Toplevel() + root = tkinter.Toplevel() root.title('Scato: ' + title) for f in fillers: f(root) @@ -39,10 +39,10 @@ self.height = height def insert_text(self): - self.txt.configure(state=Tkinter.NORMAL) - self.txt.delete(1.0, Tkinter.END) - self.txt.insert(Tkinter.END, self.text) - self.txt.configure(state=Tkinter.DISABLED) + self.txt.configure(state=tkinter.NORMAL) + self.txt.delete(1.0, tkinter.END) + self.txt.insert(tkinter.END, self.text) + self.txt.configure(state=tkinter.DISABLED) def init_tags(self): pass @@ -52,26 +52,26 @@ self.insert_text() def __call__(self, root): - frame = Tkinter.Frame(root) - frame.pack(expand=Tkinter.TRUE, fill=Tkinter.BOTH) - txt = Tkinter.Text(frame, + frame = tkinter.Frame(root) + frame.pack(expand=tkinter.TRUE, fill=tkinter.BOTH) + txt = tkinter.Text(frame, background='#ffffff', - wrap=Tkinter.NONE, + wrap=tkinter.NONE, width=self.width, height=self.height) txt.grid(column=0, row=0, - sticky=Tkinter.N+Tkinter.E+Tkinter.W+Tkinter.S) - hs = Tkinter.Scrollbar(frame, orient=Tkinter.HORIZONTAL, command=txt.xview) - hs.grid(row=1, column=0, sticky=Tkinter.W+Tkinter.E) + sticky=tkinter.N+tkinter.E+tkinter.W+tkinter.S) + hs = tkinter.Scrollbar(frame, orient=tkinter.HORIZONTAL, command=txt.xview) + hs.grid(row=1, column=0, sticky=tkinter.W+tkinter.E) txt.configure(xscrollcommand=hs.set) - vs = Tkinter.Scrollbar(frame, orient=Tkinter.VERTICAL, command=txt.yview) - vs.grid(row=0, column=1, sticky=Tkinter.N+Tkinter.S) + vs = tkinter.Scrollbar(frame, orient=tkinter.VERTICAL, command=txt.yview) + vs.grid(row=0, column=1, sticky=tkinter.N+tkinter.S) txt.configure(RefactoringTool: Refactored ./scato/ui/text_window.py RefactoringTool: No changes to ./scato/ui/splash.py RefactoringTool: Refactored ./scato/ui/menu.py yscrollcommand=vs.set) frame.grid_columnconfigure(0, weight=1) frame.grid_columnconfigure(1, weight=0) frame.grid_rowconfigure(0, weight=1) frame.grid_rowconfigure(1, weight=0) - txt.configure(state=Tkinter.DISABLED) + txt.configure(state=tkinter.DISABLED) self.txt = txt self.init_tags() self.insert_text() @@ -86,8 +86,8 @@ self.txt.tag_configure('R', foreground='#000099') def insert_text(self): - self.txt.configure(state=Tkinter.NORMAL) - self.txt.delete(1.0, Tkinter.END) + self.txt.configure(state=tkinter.NORMAL) + self.txt.delete(1.0, tkinter.END) a = self.text.split('~') i = 1 for l in a: @@ -98,8 +98,8 @@ l = l[1:] else: t = 'O' - self.txt.insert(Tkinter.END, l, t) - self.txt.configure(state=Tkinter.DISABLED) + self.txt.insert(tkinter.END, l, t) + self.txt.configure(state=tkinter.DISABLED) ############################################ @@ -109,9 +109,9 @@ def __init__(self, root): self.root = root - btn = Tkinter.Button(root, text='Close', command=self, + btn = tkinter.Button(root, text='Close', command=self, padx=10, pady=0) - btn.pack(fill=Tkinter.X, side=Tkinter.BOTTOM) + btn.pack(fill=tkinter.X, side=tkinter.BOTTOM) def __call__(self): self.root.destroy() @@ -121,11 +121,11 @@ def __init__(self, root): self.root = root - btn = Tkinter.Button(root, text='EXIT', command=self, + btn = tkinter.Button(root, text='EXIT', command=self, padx=10, pady=0, activebackground='#ff0000', activeforeground='#ffffff') - btn.pack(fill=Tkinter.X, side=Tkinter.BOTTOM) + btn.pack(fill=tkinter.X, side=tkinter.BOTTOM) def __call__(self): sys.exit(1) @@ -142,14 +142,14 @@ def __call__(self, root): self.root = root - frame = Tkinter.Frame(root) - frame.pack(fill=Tkinter.X, side=Tkinter.BOTTOM) + frame = tkinter.Frame(root) + frame.pack(fill=tkinter.X, side=tkinter.BOTTOM) n = 0 for t, c in (('Close', self.close), ('Reload', self.reload_cb), ('Line nums', self.linenums_cb)): - b1 = Tkinter.Button(frame, text=t, command=c, + b1 = tkinter.Button(frame, text=t, command=c, padx=10, pady=0) - b1.grid(row=0, column=n, sticky=Tkinter.N+Tkinter.E+Tkinter.W+Tkinter.S) + b1.grid(row=0, column=n, sticky=tkinter.N+tkinter.E+tkinter.W+tkinter.S) frame.grid_columnconfigure(n, weight=1) n += 1 --- ./scato/ui/text_window.py (original) +++ ./scato/ui/text_window.py (refactored) @@ -1,4 +1,4 @@ -import Tkinter +import tkinter import sys from scato import __version__, __author__, __email__ --- ./scato/ui/menu.py (original) +++ ./scato/ui/menu.py (refactored) @@ -1,5 +1,5 @@ -import Tkinter -import tkFileDialog +import tkinter +import tkinter.filedialog import os @@ -51,7 +51,7 @@ command=ShowExample(app, p+tit, v), accelerator='') else: - e = Tkinter.Menu(root) + e = tkinter.Menu(root) root.add_cascade(label=tit, menu=e) m = create_examples_menu(app, e, v, tit+' / ') @@ -63,11 +63,11 @@ def __init__(self, app): self.app = app self.root = app.root - self.m = Tkinter.Menu(self.root) - self.f = Tkinter.Menu(self.m, tearoff=0) - self.v = Tkinter.Menu(self.m, tearoff=0) - self.i = Tkinter.Menu(self.m, tearoff=0) - self.h = Tkinter.Menu(self.m, tearoff=0) + self.m = tkinter.Menu(self.root) + self.f = tkinter.Menu(self.m, tearoff=0) + self.v = tkinter.Menu(self.m, tearoffRefactoringTool: Refactored ./scato/ui/file_watcher.py RefactoringTool: No changes to ./scato/ui/examples.py RefactoringTool: Refactored ./scato/ui/driver.py =0) + self.i = tkinter.Menu(self.m, tearoff=0) + self.h = tkinter.Menu(self.m, tearoff=0) self.m.add_cascade(label='File', menu=self.f) @@ -84,7 +84,7 @@ command=self.reload, accelerator='R') self.root.bind('', lambda e: self.reload()) - self.f_watch_file = Tkinter.IntVar() + self.f_watch_file = tkinter.IntVar() self.f_watch_file.set(0) self.f.add_checkbutton( label='Watch file', @@ -94,7 +94,7 @@ command=self.watch_toggle, accelerator='W') self.root.bind('', lambda e: self.watch_toggle_key()) - self.f_auto_raise = Tkinter.IntVar() + self.f_auto_raise = tkinter.IntVar() self.f_auto_raise.set(0) self.f.add_checkbutton( label='Raise window on reload', @@ -115,7 +115,7 @@ self.root.bind('', lambda e: self.quit()) - self.v_run_on_load = Tkinter.IntVar() + self.v_run_on_load = tkinter.IntVar() self.v_run_on_load.set(1) self.v.add_checkbutton( label='Run on load', @@ -125,7 +125,7 @@ command=self.run_on_load_toggle, accelerator='A') self.root.bind('', lambda e: self.run_on_load_toggle_key()) - self.v_step_by_step = Tkinter.IntVar() + self.v_step_by_step = tkinter.IntVar() self.v_step_by_step.set(0) self.v.add_checkbutton( label='Step by step', @@ -144,7 +144,7 @@ accelerator='space') self.root.bind('', lambda e: self.continue_tortoise()) self.v.add_separator() - self.v_autocompensation = Tkinter.IntVar() + self.v_autocompensation = tkinter.IntVar() self.v_autocompensation.set(0) self.v.add_checkbutton( label='Compensate too small elements', @@ -208,7 +208,7 @@ ### FILE ### def open(self): - fn = tkFileDialog.askopenfilename( + fn = tkinter.filedialog.askopenfilename( multiple=0, title='Scato: open file') if fn: @@ -237,7 +237,7 @@ def export_postscript(self): self.app.tortoise_driver.ungo() - fn = tkFileDialog.asksaveasfilename( + fn = tkinter.filedialog.asksaveasfilename( defaultextension='.ps', title='Export PostScript file') if fn: --- ./scato/ui/file_watcher.py (original) +++ ./scato/ui/file_watcher.py (refactored) @@ -24,7 +24,7 @@ f = file(self.filename, 'r') self.filetext = f.read() f.close() - except Exception, w: + except Exception as w: self.filetext = '' self.filename = None self.app.window_generator('Error!', (CloseButton, DoubleScrolledText(str(w), 40, 10))) --- ./scato/ui/driver.py (original) +++ ./scato/ui/driver.py (refactored) @@ -25,7 +25,7 @@ def load(self, text): try: self.prog = StatementProg(TokenSequence(text)) - except LanguageException, w: + except LanguageException as w: self.prog = None self.window_generator('Load-time error!', ( (CloseButton, @@ -44,24 +44,24 @@ self.status_line(message) def go(self): - for i in xrange(500): + for i in range(500): if self.context.prog is None: self.status_line('Done.') break self.context.status_line = None try: self.context.prog(self.context) - except LanguageException, w: + except LanguageException as w: self.prog = None self.window_generator('Run-time error!', ( (CloRefactoringTool: Refactored ./scato/ui/cli.py RefactoringTool: Refactored ./scato/ui/app.py RefactoringTool: Refactored ./scato/tortoise.py RefactoringTool: No changes to ./scato/scheduler.py RefactoringTool: Refactored ./scato/language.py seButton, DoubleScrolledText(str(w), 40, 10)))) self.status_line('Run-time error!') break - except KeyboardInterrupt, w: + except KeyboardInterrupt as w: self.root.quit() except: - apply(self.window_generator.show_error, sys.exc_info()) + self.window_generator.show_error(*sys.exc_info()) break if self.step_by_step: if self.context.status_line: @@ -82,7 +82,7 @@ def showvars(self): if self.context.vars.space: - return '\n'.join(map(lambda x: '%s = %.9g' % x, self.context.vars.space.iteritems())) + return '\n'.join(['%s = %.9g' % x for x in iter(self.context.vars.space.items())]) return 'There are no variables yet.' def showbox(self): --- ./scato/ui/cli.py (original) +++ ./scato/ui/cli.py (refactored) @@ -6,8 +6,8 @@ def __init__(self): try: o, t = getopt.getopt(sys.argv[1:], 'g:f:s:wa') - except getopt.GetoptError, err: - print str(err) + except getopt.GetoptError as err: + print(str(err)) sys.exit(1) d = dict(o) self.g = d.get('-g', '') --- ./scato/ui/app.py (original) +++ ./scato/ui/app.py (refactored) @@ -1,4 +1,4 @@ -import Tkinter +import tkinter from scato.ui.status import StatusLine from scato.draw_area import DrawArea @@ -14,7 +14,7 @@ class Scato: def __init__(self): - self.root = Tkinter.Tk(className='Scato') + self.root = tkinter.Tk(className='Scato') self.scheduler = ScheduleGenerator(self.root) self.cli_options = CLIOptions() self.root.title('Scato') --- ./scato/tortoise.py (original) +++ ./scato/tortoise.py (refactored) @@ -2,9 +2,7 @@ def triplet_to_hexcolor(t): - return '#%02x%02x%02x' % tuple(map( - lambda x: min(max(int(x*256), 0), 255), t - )) + return '#%02x%02x%02x' % tuple([min(max(int(x*256), 0), 255) for x in t]) class Tortoise: @@ -115,8 +113,7 @@ def mix(self, nc, f): r'''Mixup color''' - self.color(map(lambda x: x[0] + (x[1] - x[0]) * f, - zip(self.rawcolor, nc))) + self.color([x[0] + (x[1] - x[0]) * f for x in zip(self.rawcolor, nc)]) def fill(self, t): r'''Set background color''' @@ -125,7 +122,7 @@ k = -.1 else: k = +.1 - self.draw_area.bd(triplet_to_hexcolor(map(lambda x: x + k, t))) + self.draw_area.bd(triplet_to_hexcolor([x + k for x in t])) def clone(self): r'''Clone tortoise''' --- ./scato/language.py (original) +++ ./scato/language.py (refactored) @@ -49,7 +49,7 @@ def step(self): self.idx += 1 - def next(self): + def __next__(self): v = self.top() if v.text is None: raise LanguageException('End of program reached, ' @@ -58,14 +58,14 @@ return v def next_check(self, words): - v = self.next() + v = next(self) if not v.text in words: if len(words) > 1: message = ( 'Line %d: One of the words %s must be here, ' 'bun "%s" in fact.') % ( v.line, - ', '.join(map(lambda x: '"%s"' % x, words)), + ', '.join(['"%s"' % x for x in words]), v.text) else: message = ( @@ -89,7 +89,7 @@ class StatementNop: def __init__(self, tokens): - self.itself = tokens.next() + self.itself = next(tokens) self.status_line = '%d: nop' % self.itself.line def __call__(self, ctx): @@ -104,8 +104,8 @@ class StatementScale: def __init__(self, tokens): - self.itself = tokens.next() - self.val = tokens.next() + self.itself = next(tokens) + self.val = next(tokens) self.status_line = '%d: %s %s # %%.6g' % ( self.itself.line, self.itself.text, @@ -149,9 +149,9 @@ class StatementAffineScale: def __init__(self, tokens): - self.itself = tokens.next() - self.valx = tokens.next() - self.valy = tokens.next() + self.itself = next(tokens) + self.valx = next(tokens) + self.valy = next(tokens) self.status_line = '%d: %s %s %s # %%.6g %%.6g' % ( self.itself.line, self.itself.text, @@ -177,11 +177,11 @@ class StatementAffineMatrix: def __init__(self, tokens): - self.itself = tokens.next() - self.xx = tokens.next() - self.xy = tokens.next() - self.yx = tokens.next() - self.yy = tokens.next() + self.itself = next(tokens) + self.xx = next(tokens) + self.xy = next(tokens) + self.yx = next(tokens) + self.yy = next(tokens) self.status_line = '%d: %s %s %s %s %s # %%.6g %%.6g %%.6g %%.6g' % ( self.itself.line, self.itself.text, @@ -207,9 +207,9 @@ class StatementDraw: def __init__(self, tokens): - self.itself = tokens.next() - self.dx = tokens.next() - self.dy = tokens.next() + self.itself = next(tokens) + self.dx = next(tokens) + self.dy = next(tokens) self.status_line = '%d: %s %s %s # (%%.6g, %%.6g)' % ( self.itself.line, self.itself.text, @@ -241,11 +241,11 @@ class StatementColor: def __init__(self, tokens): - self.itself = tokens.next() + self.itself = next(tokens) self.rgb = [] - self.rgb.append(tokens.next()) - self.rgb.append(tokens.next()) - self.rgb.append(tokens.next()) + self.rgb.append(next(tokens)) + self.rgb.append(next(tokens)) + self.rgb.append(next(tokens)) self.status_line = '%d: %s %s %s %s # (%%.6g, %%.6g, %%.6g)' % ( self.itself.line, self.itself.text, @@ -254,7 +254,7 @@ self.rgb[2].text) def __call__(self, ctx): - rgb = map(lambda x: ctx.vars[x], self.rgb) + rgb = [ctx.vars[x] for x in self.rgb] ctx.tortoise.color(rgb) ctx.status_line = self.status_line % tuple(rgb) @@ -262,7 +262,7 @@ class StatementBgColor(StatementColor): def __call__(self, ctx): - rgb = map(lambda x: ctx.vars[x], self.rgb) + rgb = [ctx.vars[x] for x in self.rgb] ctx.tortoise.fill(rgb) ctx.status_line = self.status_line % tuple(rgb) @@ -270,12 +270,12 @@ class StatementMixColor: def __init__(self, tokens): - self.itself = tokens.next() + self.itself = next(tokens) self.rgb = [] - self.rgb.append(tokens.next()) - self.rgb.append(tokens.next()) - self.rgb.append(tokens.next()) - self.f = tokens.next() + self.rgb.append(next(tokens)) + self.rgb.append(next(tokens)) + self.rgb.append(next(tokens)) + self.f = next(tokens) self.status_line = '%d: %s %s %s %s %s # (%%.6g, %%.6g, %%.6g), %%.6g' % ( self.itself.line, self.itself.text, @@ -285,7 +285,7 @@ self.f.text) def __call__(self, ctx): - rgb = map(lambda x: ctx.vars[x], self.rgb) + rgb = [ctx.vars[x] for x in self.rgb] f = ctx.vars[self.f] ctx.tortoise.mix(rgb, f) ctx.status_line = self.status_line % tuple(rgb+[f]) @@ -301,7 +301,7 @@ class StatementAssignOp: def __init__(self, tokens): - self.itself = tokens.next() + self.itself = next(tokens) t = self.itself.text self.op = {'set': lambda x: x, 'sin': lambda x: math.sin(x * math.pi / 180.), @@ -309,13 +309,13 @@ 'exp': lambda x: math.exp(x), 'log': lambda x: math.log(x), 'sqrt': lambda x: math.sqrt(x)}[t] - self.a = tokens.next() + self.a = next(tokens) if self.a.is_num: raise LanguageException(( 'You can not assign value to constant ' 'at line %d in operation %s') % ( self.itself.line, t)) - self.b = tokens.next() + self.b = next(tokens) self.status_line = '%d: %s %s %s # %s := %%.6g' % ( self.itself.line, t, @@ -338,7 +338,7 @@ class StatementBinOp: def __init__(self, tokens): - self.itself = tokens.next() + self.itself = next(tokens) t = self.itself.text self.op = {'add': lambda x, y: x + y, 'sub': lambda x, y: x - y, @@ -346,13 +346,13 @@ 'div': lambda x, y: x / y, 'mod': lambda x, y: x % y, 'pow': lambda x, y: math.pow(x, y)}[t] - self.a = tokens.next() + self.a = next(tokens) if self.a.is_num: raise LanguageException(( 'You can not apply "%s" to ' 'constant %s at line %d') % ( t, self.a.text, self.itself.line)) - self.b = tokens.next() + self.b = next(tokens) self.status_line = '%d: %s %s %s # %s := %%.6g' % ( self.itself.line, t, @@ -380,13 +380,13 @@ class StatementUnaOp: def __init__(self, tokens): - self.itself = tokens.next() + self.itself = next(tokens) t = self.itself.text self.op = {'incr': lambda x: x + 1, 'decr': lambda x: x - 1, 'neg': lambda x: -x, 'abs': lambda x: math.fabs(x)}[t] - self.a = tokens.next() + self.a = next(tokens) if self.a.is_num: raise LanguageException(( 'You can not change value to constant ' @@ -437,8 +437,8 @@ class StatementIterate: def __init__(self, tokens): - self.itself = tokens.next() - self.limit_var = tokens.next() + self.itself = next(tokens) + self.limit_var = next(tokens) self.body = CreateStatement(tokens) self.status_line = '%d: iterate %s # %%s' % ( self.itself.line, self.limit_var.text) @@ -454,7 +454,7 @@ class StatementConditionExpression: def __init__(self, tokens): - self.a = tokens.next() + self.a = next(tokens) op = tokens.next_check(('lt', 'gt', 'le', 'ge', 'eq', 'ne')).text self.op, self.sig = {'lt': (lambda a, b: a < b, '<'), 'gt': (lambda a, b: a > b, '>'), @@ -463,7 +463,7 @@ 'eq': (lambda a, b: a == b, '=='), 'ne': (lambda a, b: a != b, '!='), }[op] - self.b = tokens.next() + self.b = next(tokens) self.text = '%s %s %s' % (self.a.text, op, self.b.text) def __call__(self, ctx): @@ -500,7 +500,7 @@ class StatementRepeat: def __init__(self, tokens): - self.itself = tokens.next() + self.itself = next(tokens) self.body = CreateStatement(tokens) self.itself_until = tokens.next_check(('until',)) self.op = StatementConditionExpression(tokens) @@ -541,7 +541,7 @@ class StatementWhile: def __init__(self, tokens): - self.itself = tokens.next() + self.itself = next(tokens) self.op = StatementConditionExpression(tokens) self.body = CreateStatement(tokens) self.status_line = '%d: while %s # %%s' % ( @@ -573,7 +573,7 @@ class StatementBlock: def __init__(self, tokens): - self.itself = tokens.next() + self.itself = next(tokens) self.status_line = '%d: begin' % self.itself.line self.statements = [] while True: @@ -641,7 +641,7 @@ class StatementIf: def __init__(self, tokens): - RefactoringTool: Refactored ./scato/draw_area.py RefactoringTool: No changes to ./scato/__init__.py RefactoringTool: Files that were modified: RefactoringTool: ./setup.py RefactoringTool: ./scato/ui/status.py RefactoringTool: ./scato/ui/window.py RefactoringTool: ./scato/ui/text_window.py RefactoringTool: ./scato/ui/splash.py RefactoringTool: ./scato/ui/menu.py RefactoringTool: ./scato/ui/file_watcher.py RefactoringTool: ./scato/ui/examples.py RefactoringTool: ./scato/ui/driver.py RefactoringTool: ./scato/ui/cli.py RefactoringTool: ./scato/ui/app.py RefactoringTool: ./scato/tortoise.py RefactoringTool: ./scato/scheduler.py RefactoringTool: ./scato/language.py RefactoringTool: ./scato/draw_area.py RefactoringTool: ./scato/__init__.py self.itself = tokens.next() + self.itself = next(tokens) self.op = StatementConditionExpression(tokens) tokens.next_check(('then',)) self.body = CreateStatement(tokens) @@ -669,8 +669,8 @@ class StatementProcedure: def __init__(self, tokens): - self.itself = tokens.next() - self.a = tokens.next() + self.itself = next(tokens) + self.a = next(tokens) self.body = CreateStatement(tokens) self.status_line = '%d: procedure %s # procedure created' % ( self.itself.line, self.a.text) @@ -701,8 +701,8 @@ class StatementCall: def __init__(self, tokens): - self.itself = tokens.next() - self.a = tokens.next() + self.itself = next(tokens) + self.a = next(tokens) self.status_line = '%d: call %s # %%s' % ( self.itself.line, self.a.text) @@ -745,7 +745,7 @@ class StatementSave: def __init__(self, tokens): - self.itself = tokens.next() + self.itself = next(tokens) self.body = CreateStatement(tokens) self.status_line = '%d: %s # %%s' % (self.itself.line, self.itself.text) --- ./scato/draw_area.py (original) +++ ./scato/draw_area.py (refactored) @@ -1,4 +1,4 @@ -import Tkinter +import tkinter from scato.scheduler import Scheduler @@ -30,17 +30,17 @@ self.resize_start = 0 self.resize_stop = 0 self.resize_sched = None - self.frame = Tkinter.Frame( + self.frame = tkinter.Frame( root, borderwidth=0, highlightthickness=0, width=self.size, height=self.size) - self.frame.pack(fill=Tkinter.BOTH, - expand=Tkinter.TRUE, - anchor=Tkinter.N, - side=Tkinter.TOP) - self.canva = Tkinter.Canvas( + self.frame.pack(fill=tkinter.BOTH, + expand=tkinter.TRUE, + anchor=tkinter.N, + side=tkinter.TOP) + self.canva = tkinter.Canvas( self.frame, highlightthickness=0, borderwidth=0, @@ -85,7 +85,7 @@ height=self.size, pagex=0, pagey=0, - pageanchor=Tkinter.N+Tkinter.W, + pageanchor=tkinter.N+tkinter.W, colormode='color') def get_box_size(self): @@ -136,7 +136,7 @@ def ll_line(self, p, w, c): if self.compensation_mode: wd = w * self.size - q = tuple(map(lambda x: self.size * x, p)) + q = tuple([self.size * x for x in p]) l = max(abs(q[0]-q[2]), abs(q[1]-q[3])) if l < .5 and wd < 1.5: wd = 1.55 @@ -149,7 +149,7 @@ tag='line') else: return self.canva.create_line( - tuple(map(lambda x: self.size * x, p)), + tuple([self.size * x for x in p]), fill=c, width=w * self.size, capstyle='round', @@ -160,7 +160,7 @@ iw = ld[1] * self.size # canva.coords can eat only tuple but not list # Tkinter.__version__ = '$Revision: 50704 $' - ipp = tuple(map(lambda x: self.size * x, ld[0])) + ipp = tuple([self.size * x for x in ld[0]]) if self.compensation_mode: l = max(abs(ipp[0]-ipp[2]), abs(ipp[1]-ipp[3])) if l < .5 and iw < 1.5: @@ -172,7 +172,7 @@ if __name__ == '__main__': # demo - root = Tkinter.Tk() + root = tkinter.Tk() a = DrawArea(root) a.bg('#003300') a.bd('#006600') + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.17791 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd scato-0.3.7 + 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 Warning: 'platforms' should be a list, got type 'tuple' running build running build_py creating build creating build/lib creating build/lib/scato copying scato/tortoise.py -> build/lib/scato copying scato/scheduler.py -> build/lib/scato copying scato/language.py -> build/lib/scato copying scato/draw_area.py -> build/lib/scato copying scato/__init__.py -> build/lib/scato creating build/lib/scato/ui copying scato/ui/status.py -> build/lib/scato/ui copying scato/ui/window.py -> build/lib/scato/ui copying scato/ui/text_window.py -> build/lib/scato/ui copying scato/ui/splash.py -> build/lib/scato/ui copying scato/ui/menu.py -> build/lib/scato/ui copying scato/ui/file_watcher.py -> build/lib/scato/ui copying scato/ui/examples.py -> build/lib/scato/ui copying scato/ui/driver.py -> build/lib/scato/ui copying scato/ui/cli.py -> build/lib/scato/ui copying scato/ui/app.py -> build/lib/scato/ui copying scato/ui/__init__.py -> build/lib/scato/ui running build_scripts creating build/scripts-3.7 copying and adjusting script/scato -> build/scripts-3.7 changing mode of build/scripts-3.7/scato from 644 to 755 + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.49201 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/scato-buildroot + : + /bin/rm -rf -- /usr/src/tmp/scato-buildroot + cd scato-0.3.7 + 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/scato-buildroot --force Warning: 'platforms' should be a list, got type 'tuple' running install running install_lib creating /usr/src/tmp/scato-buildroot creating /usr/src/tmp/scato-buildroot/usr creating /usr/src/tmp/scato-buildroot/usr/lib creating /usr/src/tmp/scato-buildroot/usr/lib/python3 creating /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages creating /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato creating /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui copying build/lib/scato/ui/__init__.py -> /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui copying build/lib/scato/ui/app.py -> /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui copying build/lib/scato/ui/cli.py -> /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui copying build/lib/scato/ui/driver.py -> /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui copying build/lib/scato/ui/examples.py -> /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui copying build/lib/scato/ui/file_watcher.py -> /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui copying build/lib/scato/ui/menu.py -> /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui copying build/lib/scato/ui/splash.py -> /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui copying build/lib/scato/ui/text_window.py -> /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui copying build/lib/scato/ui/window.py -> /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui copying build/lib/scato/ui/status.py -> /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui copying build/lib/scato/__init__.py -> /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato copying build/lib/scato/draw_area.py -> /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato copying build/lib/scato/language.py -> /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato copying build/lib/scato/scheduler.py -> /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato copying build/lib/scato/tortoise.py -> /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato byte-compiling /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/__init__.py to __init__.cpython-37.pyc byte-compiling /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/app.py to app.cpython-37.pyc byte-compiling /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/cli.py to cli.cpython-37.pyc byte-compiling /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/driver.py to driver.cpython-37.pyc byte-compiling /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/examples.py to examples.cpython-37.pyc byte-compiling /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/file_watcher.py to file_watcher.cpython-37.pyc byte-compiling /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/menu.py to menu.cpython-37.pyc byte-compiling /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/splash.py to splash.cpython-37.pyc byte-compiling /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/text_window.py to text_window.cpython-37.pyc byte-compiling /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/window.py to window.cpython-37.pyc byte-compiling /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/status.py to status.cpython-37.pyc byte-compiling /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/__init__.py to __init__.cpython-37.pyc byte-compiling /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/draw_area.py to draw_area.cpython-37.pyc byte-compiling /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/language.py to language.cpython-37.pyc byte-compiling /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/scheduler.py to scheduler.cpython-37.pyc byte-compiling /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/tortoise.py to tortoise.cpython-37.pyc running install_scripts creating /usr/src/tmp/scato-buildroot/usr/bin copying build/scripts-3.7/scato -> /usr/src/tmp/scato-buildroot/usr/bin changing mode of /usr/src/tmp/scato-buildroot/usr/bin/scato to 755 running install_egg_info Writing /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato-0.3.7-py3.7.egg-info + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/scato-buildroot (auto) Verifying and fixing files in /usr/src/tmp/scato-buildroot (binconfig,pkgconfig,libtool,desktop) Checking contents of files in /usr/src/tmp/scato-buildroot/ (default) Compressing files in /usr/src/tmp/scato-buildroot (auto) Adjusting library links in /usr/src/tmp/scato-buildroot ./usr/lib: Verifying ELF objects in /usr/src/tmp/scato-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) Bytecompiling python modules in /usr/src/tmp/scato-buildroot using /usr/bin/python2.7 Bytecompiling python modules with optimization in /usr/src/tmp/scato-buildroot using /usr/bin/python2.7 -O Bytecompiling python3 modules in /usr/src/tmp/scato-buildroot using /usr/bin/python3 unlink /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/__pycache__/__init__.cpython-37.pyc unlink /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/__pycache__/draw_area.cpython-37.pyc unlink /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/__pycache__/language.cpython-37.pyc unlink /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/__pycache__/scheduler.cpython-37.pyc unlink /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/__pycache__/tortoise.cpython-37.pyc unlink /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/__pycache__/__init__.cpython-37.pyc unlink /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/__pycache__/app.cpython-37.pyc unlink /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/__pycache__/cli.cpython-37.pyc unlink /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/__pycache__/driver.cpython-37.pyc unlink /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/__pycache__/examples.cpython-37.pyc unlink /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/__pycache__/file_watcher.cpython-37.pyc unlink /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/__pycache__/menu.cpython-37.pyc unlink /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/__pycache__/splash.cpython-37.pyc unlink /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/__pycache__/status.cpython-37.pyc unlink /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/__pycache__/text_window.cpython-37.pyc unlink /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/__pycache__/window.cpython-37.pyc compile /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/__init__.py compile /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/app.py compile /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/cli.py compile /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/driver.py compile /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/examples.py compile /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/file_watcher.py compile /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/menu.py compile /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/splash.py compile /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/status.py compile /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/text_window.py compile /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/window.py compile /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/__init__.py compile /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/draw_area.py compile /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/language.py compile /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/scheduler.py compile /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/tortoise.py Bytecompiling python3 modules with optimization in /usr/src/tmp/scato-buildroot using /usr/bin/python3 -O compile /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/__init__.py compile /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/app.py compile /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/cli.py compile /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/driver.py compile /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/examples.py compile /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/file_watcher.py compile /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/menu.py compile /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/splash.py compile /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/status.py compile /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/text_window.py compile /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/window.py compile /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/__init__.py compile /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/draw_area.py compile /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/language.py compile /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/scheduler.py compile /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/tortoise.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/scato-buildroot using /usr/bin/python3 -OO compile /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/__init__.py compile /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/app.py compile /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/cli.py compile /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/driver.py compile /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/examples.py compile /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/file_watcher.py compile /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/menu.py compile /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/splash.py compile /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/status.py compile /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/text_window.py compile /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/window.py compile /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/__init__.py compile /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/draw_area.py compile /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/language.py compile /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/scheduler.py compile /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/tortoise.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/scato/__pycache__/tortoise.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/scato/__pycache__/tortoise.cpython-37.pyc' './usr/lib/python3/site-packages/scato/__pycache__/scheduler.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/scato/__pycache__/scheduler.cpython-37.pyc' './usr/lib/python3/site-packages/scato/__pycache__/scheduler.cpython-37.opt-2.pyc' => './usr/lib/python3/site-packages/scato/__pycache__/scheduler.cpython-37.opt-1.pyc' './usr/lib/python3/site-packages/scato/__pycache__/language.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/scato/__pycache__/language.cpython-37.pyc' './usr/lib/python3/site-packages/scato/__pycache__/language.cpython-37.opt-2.pyc' => './usr/lib/python3/site-packages/scato/__pycache__/language.cpython-37.opt-1.pyc' './usr/lib/python3/site-packages/scato/__pycache__/draw_area.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/scato/__pycache__/draw_area.cpython-37.pyc' './usr/lib/python3/site-packages/scato/__pycache__/__init__.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/scato/__pycache__/__init__.cpython-37.pyc' './usr/lib/python3/site-packages/scato/__pycache__/__init__.cpython-37.opt-2.pyc' => './usr/lib/python3/site-packages/scato/__pycache__/__init__.cpython-37.opt-1.pyc' './usr/lib/python3/site-packages/scato/ui/__pycache__/window.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/scato/ui/__pycache__/window.cpython-37.pyc' './usr/lib/python3/site-packages/scato/ui/__pycache__/window.cpython-37.opt-2.pyc' => './usr/lib/python3/site-packages/scato/ui/__pycache__/window.cpython-37.opt-1.pyc' './usr/lib/python3/site-packages/scato/ui/__pycache__/text_window.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/scato/ui/__pycache__/text_window.cpython-37.pyc' './usr/lib/python3/site-packages/scato/ui/__pycache__/text_window.cpython-37.opt-2.pyc' => './usr/lib/python3/site-packages/scato/ui/__pycache__/text_window.cpython-37.opt-1.pyc' './usr/lib/python3/site-packages/scato/ui/__pycache__/status.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/scato/ui/__pycache__/status.cpython-37.pyc' './usr/lib/python3/site-packages/scato/ui/__pycache__/status.cpython-37.opt-2.pyc' => './usr/lib/python3/site-packages/scato/ui/__pycache__/status.cpython-37.opt-1.pyc' './usr/lib/python3/site-packages/scato/ui/__pycache__/splash.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/scato/ui/__pycache__/splash.cpython-37.pyc' './usr/lib/python3/site-packages/scato/ui/__pycache__/splash.cpython-37.opt-2.pyc' => './usr/lib/python3/site-packages/scato/ui/__pycache__/splash.cpython-37.opt-1.pyc' './usr/lib/python3/site-packages/scato/ui/__pycache__/menu.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/scato/ui/__pycache__/menu.cpython-37.pyc' './usr/lib/python3/site-packages/scato/ui/__pycache__/menu.cpython-37.opt-2.pyc' => './usr/lib/python3/site-packages/scato/ui/__pycache__/menu.cpython-37.opt-1.pyc' './usr/lib/python3/site-packages/scato/ui/__pycache__/file_watcher.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/scato/ui/__pycache__/file_watcher.cpython-37.pyc' './usr/lib/python3/site-packages/scato/ui/__pycache__/file_watcher.cpython-37.opt-2.pyc' => './usr/lib/python3/site-packages/scato/ui/__pycache__/file_watcher.cpython-37.opt-1.pyc' './usr/lib/python3/site-packages/scato/ui/__pycache__/examples.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/scato/ui/__pycache__/examples.cpython-37.pyc' './usr/lib/python3/site-packages/scato/ui/__pycache__/examples.cpython-37.opt-2.pyc' => './usr/lib/python3/site-packages/scato/ui/__pycache__/examples.cpython-37.opt-1.pyc' './usr/lib/python3/site-packages/scato/ui/__pycache__/driver.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/scato/ui/__pycache__/driver.cpython-37.pyc' './usr/lib/python3/site-packages/scato/ui/__pycache__/driver.cpython-37.opt-2.pyc' => './usr/lib/python3/site-packages/scato/ui/__pycache__/driver.cpython-37.opt-1.pyc' './usr/lib/python3/site-packages/scato/ui/__pycache__/cli.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/scato/ui/__pycache__/cli.cpython-37.pyc' './usr/lib/python3/site-packages/scato/ui/__pycache__/cli.cpython-37.opt-2.pyc' => './usr/lib/python3/site-packages/scato/ui/__pycache__/cli.cpython-37.opt-1.pyc' './usr/lib/python3/site-packages/scato/ui/__pycache__/app.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/scato/ui/__pycache__/app.cpython-37.pyc' './usr/lib/python3/site-packages/scato/ui/__pycache__/app.cpython-37.opt-2.pyc' => './usr/lib/python3/site-packages/scato/ui/__pycache__/app.cpython-37.opt-1.pyc' './usr/lib/python3/site-packages/scato/ui/__pycache__/__init__.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/scato/ui/__pycache__/__init__.cpython-37.pyc' './usr/lib/python3/site-packages/scato/ui/__pycache__/__init__.cpython-37.opt-2.pyc' => './usr/lib/python3/site-packages/scato/ui/__pycache__/__init__.cpython-37.opt-1.pyc' Hardlinking identical .pyc and .pyo files Processing files: scato-0.3.7-alt2 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.49832 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd scato-0.3.7 + DOCDIR=/usr/src/tmp/scato-buildroot/usr/share/doc/scato-0.3.7 + export DOCDIR + rm -rf /usr/src/tmp/scato-buildroot/usr/share/doc/scato-0.3.7 + /bin/mkdir -p /usr/src/tmp/scato-buildroot/usr/share/doc/scato-0.3.7 + cp -prL README doc/code.google.com doc/scato.googlecode.com doc/www.gstatic.com /usr/src/tmp/scato-buildroot/usr/share/doc/scato-0.3.7 + chmod -R go-w /usr/src/tmp/scato-buildroot/usr/share/doc/scato-0.3.7 + chmod -R a+rX /usr/src/tmp/scato-buildroot/usr/share/doc/scato-0.3.7 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.gcqK2t 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.GPkP7r find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services) Requires: python3-module-scato = 0.3.7, /usr/bin/python3, python3(scato.ui.app) < 0 Processing files: python3-module-scato-0.3.7-alt2 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.ozIb5r 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.Kw9D5s find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services) python3.req: /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/cli.py: skipping sys python3.req: /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/driver.py: skipping sys python3.req: /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/text_window.py: skipping sys python3.req: /usr/src/tmp/scato-buildroot/usr/lib/python3/site-packages/scato/ui/window.py: skipping sys Provides: python3(scato), python3(scato.draw_area), python3(scato.language), python3(scato.scheduler), python3(scato.tortoise), python3(scato.ui), python3(scato.ui.app), python3(scato.ui.cli), python3(scato.ui.driver), python3(scato.ui.examples), python3(scato.ui.file_watcher), python3(scato.ui.menu), python3(scato.ui.splash), python3(scato.ui.status), python3(scato.ui.text_window), python3(scato.ui.window) Requires: /usr/lib/python3/site-packages, python3(getopt) < 0, python3(math) < 0, python3(os) < 0, python3(tkinter) < 0, python3(tkinter.filedialog) < 0, python3(traceback) < 0 Adding to scato a strict dependency on python3-module-scato Removing 1 extra deps from scato due to dependency on python3-module-scato Wrote: /usr/src/RPM/RPMS/noarch/scato-0.3.7-alt2.noarch.rpm Wrote: /usr/src/RPM/RPMS/noarch/python3-module-scato-0.3.7-alt2.noarch.rpm 11.15user 0.58system 0:27.61elapsed 42%CPU (0avgtext+0avgdata 21712maxresident)k 0inputs+0outputs (0major+194143minor)pagefaults 0swaps 18.90user 3.69system 0:56.00elapsed 40%CPU (0avgtext+0avgdata 109196maxresident)k 0inputs+0outputs (0major+652761minor)pagefaults 0swaps