<86>Jan 27 07:13:02 userdel[87107]: delete user 'rooter' <86>Jan 27 07:13:02 userdel[87107]: removed group 'rooter' owned by 'rooter' <86>Jan 27 07:13:02 userdel[87107]: removed shadow group 'rooter' owned by 'rooter' <86>Jan 27 07:13:02 groupadd[87173]: group added to /etc/group: name=rooter, GID=651 <86>Jan 27 07:13:02 groupadd[87173]: group added to /etc/gshadow: name=rooter <86>Jan 27 07:13:02 groupadd[87173]: new group: name=rooter, GID=651 <86>Jan 27 07:13:02 useradd[87204]: new user: name=rooter, UID=651, GID=651, home=/root, shell=/bin/bash <86>Jan 27 07:13:02 userdel[87238]: delete user 'builder' <86>Jan 27 07:13:02 userdel[87238]: removed group 'builder' owned by 'builder' <86>Jan 27 07:13:02 userdel[87238]: removed shadow group 'builder' owned by 'builder' <86>Jan 27 07:13:02 groupadd[87297]: group added to /etc/group: name=builder, GID=652 <86>Jan 27 07:13:02 groupadd[87297]: group added to /etc/gshadow: name=builder <86>Jan 27 07:13:02 groupadd[87297]: new group: name=builder, GID=652 <86>Jan 27 07:13:02 useradd[87348]: new user: name=builder, UID=652, GID=652, home=/usr/src, shell=/bin/bash <13>Jan 27 07:13:09 rpmi: libpng15-1.5.28-alt1 1484572069 installed <13>Jan 27 07:13:09 rpmi: perl-Encode-2.83-alt1 1459157779 installed <13>Jan 27 07:13:09 rpmi: libjpeg-2:1.3.1-alt0.1 1388074039 installed <13>Jan 27 07:13:09 rpmi: libexpat-2.2.4-alt0.M80P.1 1503871125 installed <13>Jan 27 07:13:09 rpmi: ca-certificates-2016.02.25-alt1 1462368370 installed <13>Jan 27 07:13:09 rpmi: libcrypto10-1.0.2n-alt0.M80P.1 1512766170 installed <13>Jan 27 07:13:09 rpmi: libopenblas-0.2.14-alt1.git20150324 1433158703 installed <13>Jan 27 07:13:09 rpmi: libICE-1.0.9-alt1 1409902721 installed <13>Jan 27 07:13:09 rpmi: liblcms2-2.8-alt1 1471601532 installed <13>Jan 27 07:13:09 rpmi: perl-HTTP-Date-6.02-alt1 1348645274 installed <13>Jan 27 07:13:09 rpmi: libidn2-2.0.4-alt3.M80P.1 1520307235 installed <13>Jan 27 07:13:09 rpmi: libtcl-8.5.9-alt2 1351878908 installed <13>Jan 27 07:13:09 rpmi: libSM-1.2.2-alt1 1391072690 installed <13>Jan 27 07:13:09 rpmi: libtiff5-4.0.3-alt1 1348347501 installed <13>Jan 27 07:13:09 rpmi: libnumpy-1:1.12.1-alt0.M80P.1 1496160739 installed <13>Jan 27 07:13:09 rpmi: libwayland-client-1.14.0-alt0.M80P.1 1502720505 installed <13>Jan 27 07:13:09 rpmi: perl-XML-NamespaceSupport-1.11-alt3 1322003535 installed <13>Jan 27 07:13:09 rpmi: libsqlite3-3.15.2-alt1 1480432278 installed <13>Jan 27 07:13:09 rpmi: libtasn1-4.9-alt1 1469555632 installed <13>Jan 27 07:13:09 rpmi: libmng-1.0.10-alt2.M80P.1 1476964809 installed <13>Jan 27 07:13:09 rpmi: msulogin-1.0-alt1 1366288515 installed <13>Jan 27 07:13:09 rpmi: libyaml2-0.1.6-alt1 1397147705 installed <13>Jan 27 07:13:09 rpmi: libwayland-server-1.14.0-alt0.M80P.1 1502720505 installed <13>Jan 27 07:13:09 rpmi: perl-LWP-MediaTypes-6.02-alt1 1329754558 installed <13>Jan 27 07:13:09 rpmi: perl-Compress-Raw-Zlib-2.069-alt1.1 1448470141 installed <13>Jan 27 07:13:09 rpmi: perl-libnet-1:3.08-alt1 1458419902 installed <13>Jan 27 07:13:09 rpmi: perl-URI-1.71-alt1 1455181348 installed <13>Jan 27 07:13:09 rpmi: perl-XML-SAX-Base-1.08-alt1 1317871344 installed <13>Jan 27 07:13:09 rpmi: libnettle6-3.4.1-alt1 p8.217493.100 1544204582 installed <13>Jan 27 07:13:09 rpmi: liblz4-1:1.7.5-alt1 1488766784 installed <13>Jan 27 07:13:09 rpmi: libXau-1.0.8-alt1 1369565808 installed <13>Jan 27 07:13:09 rpmi: libgdbm-1.8.3-alt10 1454943334 installed <13>Jan 27 07:13:09 rpmi: libhogweed4-3.4.1-alt1 p8.217493.100 1544204582 installed <13>Jan 27 07:13:09 rpmi: perl-WWW-RobotRules-6.02-alt1 1329756211 installed <13>Jan 27 07:13:09 rpmi: sysvinit-2.88-alt5 1424350686 installed <13>Jan 27 07:13:09 rpmi: libwayland-cursor-1.14.0-alt0.M80P.1 1502720505 installed <13>Jan 27 07:13:09 rpmi: tcl-8.5.9-alt2 1351878908 installed <13>Jan 27 07:13:09 rpmi: perl-File-Listing-6.04-alt1 1329758996 installed <13>Jan 27 07:13:09 rpmi: libjasper-1.900.1-alt3 1391718483 installed <13>Jan 27 07:13:09 rpmi: perl-Encode-Locale-1.05-alt1 1444608613 installed <13>Jan 27 07:13:09 rpmi: perl-IO-HTML-1.001-alt1 1404821752 installed <13>Jan 27 07:13:09 rpmi: xorg-rgb-1.0.4-alt1.qa1 1366268679 installed <13>Jan 27 07:13:09 rpmi: mount-2.30.2-alt0.M80P.1 1522077055 installed <86>Jan 27 07:13:10 groupadd[118893]: group added to /etc/group: name=utempter, GID=499 <86>Jan 27 07:13:10 groupadd[118893]: group added to /etc/gshadow: name=utempter <86>Jan 27 07:13:10 groupadd[118893]: new group: name=utempter, GID=499 <13>Jan 27 07:13:10 rpmi: libutempter-1.1.6-alt2 1299636220 installed <13>Jan 27 07:13:10 rpmi: xml-utils-1:2.9.4.0.12.e905-alt1 1488560707 installed <13>Jan 27 07:13:10 rpmi: python-module-z3c-3.0.0-alt2.a2.dev0.git20130313.1.1.1 1460417087 installed <13>Jan 27 07:13:10 rpmi: python-module-pycares-0.6.3-alt1.1.1 1459599300 installed <13>Jan 27 07:13:10 rpmi: pytz-zoneinfo-1:2015.4-alt1.1.1 1460413776 installed <13>Jan 27 07:13:10 rpmi: python-module-certifi-2015.04.28-alt1.1 1457893771 installed <13>Jan 27 07:13:10 rpmi: libseccomp-2.3.1-alt0.M80P.1 1512650822 installed <13>Jan 27 07:13:10 rpmi: qt4-common-4.8.7-alt7 1461590563 installed <13>Jan 27 07:13:10 rpmi: libqt4-core-4.8.7-alt7 1461590563 installed <13>Jan 27 07:13:10 rpmi: libqt3-settings-3.3-alt5 1393236356 installed <13>Jan 27 07:13:10 rpmi: libpcre2-10.23-alt0.M80P.1 1487919883 installed <13>Jan 27 07:13:10 rpmi: libnumpy-py3-1:1.12.1-alt0.M80P.1 1496160739 installed <13>Jan 27 07:13:10 rpmi: libxblas-1.0.248-alt1 1322010690 installed <13>Jan 27 07:13:10 rpmi: libkmod-21-alt1 1437433967 installed <13>Jan 27 07:13:10 rpmi: libiptables-1.4.21-alt3 1435789455 installed <13>Jan 27 07:13:10 rpmi: libxkbcommon-0.7.2-alt0.M80P.1 1503524839 installed <13>Jan 27 07:13:10 rpmi: libgudev-1:231-alt0.M80P.1 1487053273 installed <13>Jan 27 07:13:10 rpmi: udev-rules-1:237-alt2.M80P.5 p8+219569.200.8.1 1547831015 installed <13>Jan 27 07:13:10 rpmi: libltdl7-2.4.2-alt5 1450059754 installed <13>Jan 27 07:13:10 rpmi: libgts-0.7.6-alt2.drc20130205 1360123649 installed <13>Jan 27 07:13:10 rpmi: libpaper-1.1.24-alt4 1315383465 installed <13>Jan 27 07:13:10 rpmi: libopenjpeg2.0-2.2.0-alt0.M80P.1 1503526633 installed <13>Jan 27 07:13:11 rpmi: libgtk+2-locales-2.24.31-alt1 1473461664 installed <13>Jan 27 07:13:11 rpmi: libquadmath0-5.3.1-alt3 1457664660 installed <13>Jan 27 07:13:11 rpmi: libgfortran3-5.3.1-alt3 1457664660 installed <13>Jan 27 07:13:11 rpmi: liblapack-1:3.5.0-alt1 1401382336 installed <13>Jan 27 07:13:11 rpmi: libfontenc-1.1.2-alt1 1373978854 installed <13>Jan 27 07:13:11 rpmi: libepoxy-1.4.3-alt0.M80P.1 1498727082 installed <13>Jan 27 07:13:11 rpmi: libdatrie-0.2.8-alt1_5 1410185970 installed <13>Jan 27 07:13:11 rpmi: libthai-0.1.24-alt1_1 1459282109 installed <13>Jan 27 07:13:11 rpmi: publicsuffix-list-dafsa-20181106-alt1 p8.216229.100 1541669077 installed <13>Jan 27 07:13:11 rpmi: libpsl-0.18.0-alt0.M80P.1 1502785113 installed <13>Jan 27 07:13:11 rpmi: libnghttp2-1.8.0-alt1 1456818822 installed <13>Jan 27 07:13:11 rpmi: libdevmapper-1.02.152-alt1 p8.216818.100 1542993638 installed <13>Jan 27 07:13:11 rpmi: libusb-1.0.21-alt0.M80P.1 1485147104 installed <13>Jan 27 07:13:11 rpmi: libpixman-3:0.32.8-alt1 1447610697 installed <13>Jan 27 07:13:11 rpmi: libbrotlicommon0-1.0.4-alt0.M80P.1 1528205032 installed <13>Jan 27 07:13:11 rpmi: libbrotlidec0-1.0.4-alt0.M80P.1 1528205032 installed <13>Jan 27 07:13:11 rpmi: libann-1.1.2-alt4 1299827962 installed <13>Jan 27 07:13:11 rpmi: libpciaccess-1:0.13.4-alt1 1431681690 installed <13>Jan 27 07:13:11 rpmi: libdrm-1:2.4.89-alt1.M80P.1 1516609375 installed <13>Jan 27 07:13:11 rpmi: libgbm-4:17.3.9-alt0.M80P.1 1526555892 installed <13>Jan 27 07:13:11 rpmi: icon-theme-hicolor-0.17-alt1 1505715846 installed <13>Jan 27 07:13:11 rpmi: perl-IO-Socket-IP-0.37-alt1 1444921335 installed <13>Jan 27 07:13:11 rpmi: perl-Compress-Raw-Bzip2-2.069-alt1.1 1448470174 installed <13>Jan 27 07:13:11 rpmi: perl-IO-Compress-2.069-alt1 1444618007 installed <13>Jan 27 07:13:11 rpmi: perl-HTTP-Message-6.11-alt1 1444616672 installed <13>Jan 27 07:13:11 rpmi: perl-HTTP-Cookies-6.01-alt1 1329759964 installed <13>Jan 27 07:13:11 rpmi: perl-HTTP-Negotiate-6.01-alt1 1329760563 installed <13>Jan 27 07:13:11 rpmi: perl-Net-HTTP-6.09-alt1 1432310023 installed <13>Jan 27 07:13:11 rpmi: perl-HTML-Tagset-3.20-alt2 1317725093 installed <13>Jan 27 07:13:11 rpmi: perl-HTML-Parser-3.72-alt1 1455170565 installed <13>Jan 27 07:13:11 rpmi: perl-libwww-6.15-alt1 1449505512 installed <13>Jan 27 07:13:11 rpmi: hwclock-1:2.30.2-alt0.M80P.1 1522077055 installed <13>Jan 27 07:13:11 rpmi: libgdk-pixbuf-locales-2.36.11-alt0.M80P.1 1507198237 installed <13>Jan 27 07:13:11 rpmi: gtk+3-themes-incompatible-3.20-alt3 1461944560 installed <13>Jan 27 07:13:11 rpmi: libproxy-0.4.14-alt0.M80P.1 1491211282 installed <13>Jan 27 07:13:11 rpmi: libnspr-1:4.20-alt1 p8.216526.40 1542382589 installed <13>Jan 27 07:13:11 rpmi: libnss-3.40.0-alt0.M80P.1 p8.216526.44 1542814654 installed <13>Jan 27 07:13:11 rpmi: t1lib-5.1.2-alt5 1326979780 installed <13>Jan 27 07:13:11 rpmi: libkpathsea-2008.0-alt0.15.6 1449446966 installed <13>Jan 27 07:13:11 rpmi: libatk-locales-2.24.0-alt0.M80P.1 1504535386 installed <13>Jan 27 07:13:11 rpmi: libatk-2.24.0-alt0.M80P.1 1504535386 installed <13>Jan 27 07:13:11 rpmi: rpm-build-xdg-0.2-alt1 1250461503 installed <13>Jan 27 07:13:12 rpmi: shared-mime-info-1.9-alt0.M80P.1 1506021415 installed <13>Jan 27 07:13:12 rpmi: gsettings-desktop-schemas-data-3.24.1-alt0.M80P.1 1504768054 installed <13>Jan 27 07:13:12 rpmi: libgpg-error-1.31-alt1.M80P.1 1529024732 installed <13>Jan 27 07:13:12 rpmi: libgcrypt20-1.8.3-alt3 p8.214131.100 1542819112 installed <13>Jan 27 07:13:12 rpmi: libsystemd-1:237-alt2.M80P.5 p8+219569.200.8.1 1547831015 installed <13>Jan 27 07:13:12 rpmi: libdbus-1.10.24-alt4.M80P.1 1518773289 installed <13>Jan 27 07:13:12 rpmi: libxslt-1.1.28-alt4 1448210408 installed <13>Jan 27 07:13:12 rpmi: libavahi-0.6.31-alt7.M80P.1 1526318874 installed <13>Jan 27 07:13:12 rpmi: libcryptsetup-1.7.1-alt1 1456763328 installed <13>Jan 27 07:13:12 rpmi: libgraphite2-1.3.10-alt0.M80P.1 1496411364 installed <13>Jan 27 07:13:12 rpmi: libX11-locales-3:1.6.3-alt1 1431956885 installed <13>Jan 27 07:13:12 rpmi: libXdmcp-1.1.1-alt1 1334617701 installed <13>Jan 27 07:13:12 rpmi: libxcb-1.12-alt2 p8.218219.300 1545313365 installed <13>Jan 27 07:13:12 rpmi: libX11-3:1.6.3-alt1 1431956885 installed <13>Jan 27 07:13:12 rpmi: libXext-1.3.3-alt1 1409902959 installed <13>Jan 27 07:13:12 rpmi: libXrender-0.9.8-alt1 1371312112 installed <13>Jan 27 07:13:12 rpmi: libXt-1.1.4-alt1 1369984722 installed <13>Jan 27 07:13:12 rpmi: libXmu-1.1.2-alt1 1391072530 installed <13>Jan 27 07:13:12 rpmi: libXrandr-1.5.0-alt1 1431936189 installed <13>Jan 27 07:13:12 rpmi: libXi-1.7.9-alt1.M80P.1 1515766152 installed <13>Jan 27 07:13:12 rpmi: libXfixes-5.0.1-alt1 1369809608 installed <13>Jan 27 07:13:12 rpmi: libXcursor-1.1.15-alt1.M80P.1 1512373715 installed <13>Jan 27 07:13:12 rpmi: libXinerama-1.1.3-alt1 1369984572 installed <13>Jan 27 07:13:12 rpmi: libXdamage-1.1.3-alt4 1297162593 installed <13>Jan 27 07:13:12 rpmi: libXpm-3.5.11-alt1 1391072398 installed <13>Jan 27 07:13:12 rpmi: libXaw-1.0.12-alt1 1391072624 installed <13>Jan 27 07:13:12 rpmi: libXxf86vm-1.1.3-alt1 1369984835 installed <13>Jan 27 07:13:12 rpmi: libGL-4:17.3.9-alt0.M80P.1 1526555892 installed <13>Jan 27 07:13:12 rpmi: libGLU-4:9.0.0-alt1 1347643784 installed <13>Jan 27 07:13:12 rpmi: libat-spi2-core-2.24.1-alt0.M80P.1 1504536200 installed <13>Jan 27 07:13:12 rpmi: libXcomposite-0.4.3-alt3 1297306936 installed <13>Jan 27 07:13:12 rpmi: libEGL-4:17.3.9-alt0.M80P.1 1526555892 installed <13>Jan 27 07:13:12 rpmi: libfreeglut-3.0.0-alt1 1429173819 installed <13>Jan 27 07:13:12 rpmi: libwayland-egl-4:17.3.9-alt0.M80P.1 1526555892 installed <13>Jan 27 07:13:12 rpmi: xmessage-1.0.3-alt1.qa1 1366270848 installed <13>Jan 27 07:13:12 rpmi: xauth-1:1.0.9-alt1 1432033313 installed <13>Jan 27 07:13:12 rpmi: libXtst-1.2.2-alt1 1369984893 installed <13>Jan 27 07:13:12 rpmi: libxkbfile-1.0.8-alt1 1331193038 installed <13>Jan 27 07:13:13 rpmi: xkbcomp-1.3.1-alt1 1460969073 installed <13>Jan 27 07:13:13 rpmi: xkeyboard-config-1:2.19-alt1 1481275801 installed <13>Jan 27 07:13:13 rpmi: libtinfo-devel-5.9-alt8 1456756589 installed <13>Jan 27 07:13:13 rpmi: libncurses-devel-5.9-alt8 1456756589 installed <13>Jan 27 07:13:13 rpmi: python-modules-curses-2.7.11-alt6.M80P.1 1527682534 installed <13>Jan 27 07:13:13 rpmi: libverto-0.2.6-alt1_6 1455633232 installed <13>Jan 27 07:13:13 rpmi: libkeyutils-1.5.10-alt0.M80P.2 p8+216694.100.6.1 1547827915 installed <13>Jan 27 07:13:13 rpmi: libcom_err-1.42.13-alt2 1449075923 installed <13>Jan 27 07:13:13 rpmi: libgio-2.52.3-alt0.M80P.1 1504533315 installed <13>Jan 27 07:13:13 rpmi: gobject-introspection-1.52.1-alt0.M80P.1 1504533530 installed <13>Jan 27 07:13:13 rpmi: libgdk-pixbuf-2.36.11-alt0.M80P.1 1507198237 installed <13>Jan 27 07:13:13 rpmi: libssl10-1.0.2n-alt0.M80P.1 1512766170 installed <86>Jan 27 07:13:13 groupadd[127817]: group added to /etc/group: name=_keytab, GID=498 <86>Jan 27 07:13:13 groupadd[127817]: group added to /etc/gshadow: name=_keytab <86>Jan 27 07:13:13 groupadd[127817]: new group: name=_keytab, GID=498 <13>Jan 27 07:13:13 rpmi: libkrb5-1.14.6-alt1.M80P.1 1525355764 installed <13>Jan 27 07:13:13 rpmi: libcups-2.1.0-alt2.M80P.2 1484827762 installed <13>Jan 27 07:13:13 rpmi: libp11-kit-0.23.8-alt1.M80P.1 1504877579 installed <86>Jan 27 07:13:13 groupadd[128016]: group added to /etc/group: name=messagebus, GID=497 <86>Jan 27 07:13:13 groupadd[128016]: group added to /etc/gshadow: name=messagebus <86>Jan 27 07:13:13 groupadd[128016]: new group: name=messagebus, GID=497 <86>Jan 27 07:13:13 useradd[128031]: new user: name=messagebus, UID=499, GID=497, home=/run/dbus, shell=/dev/null <13>Jan 27 07:13:13 rpmi: dbus-1.10.24-alt4.M80P.1 1518773289 installed <13>Jan 27 07:13:14 rpmi: gtk-update-icon-cache-2.24.31-alt1 1473461664 installed <13>Jan 27 07:13:14 rpmi: gobject-introspection-x11-1.52.1-alt0.M80P.1 1504533530 installed <13>Jan 27 07:13:14 rpmi: gsettings-desktop-schemas-3.24.1-alt0.M80P.1 1504768054 installed <13>Jan 27 07:13:14 rpmi: libgusb-0.2.11-alt0.M80P.1 1503526715 installed <13>Jan 27 07:13:14 rpmi: libcolord-1.3.5-alt0.M80P.1 1488875994 installed <13>Jan 27 07:13:14 rpmi: startup-0.9.9.5-alt1.2 1397832469 installed <13>Jan 27 07:13:14 rpmi: perl-XML-SAX-0.99-alt2 1384805188 installed <13>Jan 27 07:13:14 rpmi: libharfbuzz-1.6.3-alt0.M80P.1 1509918827 installed <13>Jan 27 07:13:14 rpmi: libfreetype-2.8-alt0.M80P.3 1505462828 installed <13>Jan 27 07:13:14 rpmi: fontconfig-2.12.6-alt1.M80P.1 1506008914 installed Updating fonts cache: <29>Jan 27 07:13:15 fontconfig: Updating fonts cache: succeeded [ DONE ] <13>Jan 27 07:13:15 rpmi: libcairo-1:1.14.4-alt1 1447005511 installed <13>Jan 27 07:13:15 rpmi: libXft-2.3.2-alt1 1409902660 installed <13>Jan 27 07:13:15 rpmi: libpango-1.40.14-alt0.M80P.1 1510824242 installed <13>Jan 27 07:13:15 rpmi: libgtk+2-2.24.31-alt1 1473461664 installed <13>Jan 27 07:13:16 rpmi: libtk-8.5.9-alt3 1308047276 installed <13>Jan 27 07:13:16 rpmi: libcairo-gobject-1:1.14.4-alt1 1447005511 installed <13>Jan 27 07:13:16 rpmi: libgd2-2.0.35-alt6 1366289715 installed <13>Jan 27 07:13:16 rpmi: tk-8.5.9-alt3 1308047276 installed <13>Jan 27 07:13:16 rpmi: mkfontscale-1.1.0-alt1 1332532705 installed <13>Jan 27 07:13:16 rpmi: mkfontdir-1.0.7-alt1 1332532636 installed <13>Jan 27 07:13:16 rpmi: fonts-bitmap-misc-7.0.0-alt6 1238575088 installed <13>Jan 27 07:13:17 rpmi: xorg-server-common-2:1.18.4-alt1.M80P.7 1512033241 installed <13>Jan 27 07:13:17 rpmi: xterm-320-alt2 p8.216245.100 1541756960 installed <13>Jan 27 07:13:17 rpmi: dvipng-1.14-alt1.qa1.1 1449176657 installed <13>Jan 27 07:13:17 rpmi: libglade-2.6.4-alt5.qa1 1366416177 installed <13>Jan 27 07:13:17 rpmi: liblasi-1.1.2-alt1.qa1 1460141148 installed <13>Jan 27 07:13:17 rpmi: librsvg-1:2.40.18-alt0.M80P.1 1500538041 installed <13>Jan 27 07:13:17 rpmi: libpango-gir-1.40.14-alt0.M80P.1 1510824242 installed <13>Jan 27 07:13:17 rpmi: libpangox-compat-0.0.2-alt1 1465069388 installed <13>Jan 27 07:13:17 rpmi: libgtkglext-1.2.0-alt2.4 1351047976 installed <13>Jan 27 07:13:17 rpmi: libqt3-3.3.8d-alt9 1447371352 installed <13>Jan 27 07:13:18 rpmi: libgs-9.20-alt1.M80P.1 1494700614 installed <13>Jan 27 07:13:18 rpmi: libgraphviz-2.38.0-alt2.1 1448552036 installed <13>Jan 27 07:13:18 rpmi: libqt4-gui-4.8.7-alt7 1461590563 installed <13>Jan 27 07:13:19 rpmi: graphviz-2.38.0-alt2.1 1448552036 installed <13>Jan 27 07:13:19 rpmi: perl-XML-Simple-2.22-alt1 1449506808 installed <13>Jan 27 07:13:19 rpmi: icon-naming-utils-0.8.90-alt1 1236573102 installed <13>Jan 27 07:13:20 rpmi: icon-theme-adwaita-3.24.0-alt0.M80P.1 1504567873 installed <13>Jan 27 07:13:20 rpmi: dbus-tools-gui-1.10.24-alt4.M80P.1 1518773289 installed <13>Jan 27 07:13:20 rpmi: at-spi2-core-2.24.1-alt0.M80P.1 1504536200 installed <13>Jan 27 07:13:20 rpmi: at-spi2-atk-2.24.1-alt0.M80P.1 1504536261 installed <13>Jan 27 07:13:20 rpmi: libgnutls30-3.6.5-alt2.M80P.1 p8.217493.600 1545777748 installed <13>Jan 27 07:13:21 rpmi: glib-networking-2.50.0-alt1.M80P.1 1503575455 installed <13>Jan 27 07:13:21 rpmi: libsoup-2.62.2-alt0.M80P.1 1528058406 installed <13>Jan 27 07:13:21 rpmi: libsoup-gnome-2.62.2-alt0.M80P.1 1528058406 installed <13>Jan 27 07:13:21 rpmi: librest-0.8.1-alt0.M80P.1 1509920964 installed <86>Jan 27 07:13:21 groupadd[13825]: group added to /etc/group: name=sasl, GID=496 <86>Jan 27 07:13:21 groupadd[13825]: group added to /etc/gshadow: name=sasl <86>Jan 27 07:13:21 groupadd[13825]: new group: name=sasl, GID=496 <13>Jan 27 07:13:21 rpmi: libsasl2-3-2.1.26-alt7 1479477448 installed <13>Jan 27 07:13:21 rpmi: libldap-2.4.45-alt1.M80P.1 1513980437 installed <13>Jan 27 07:13:21 rpmi: libcurl-7.62.0-alt3 p8.216462.100 1542193807 installed <13>Jan 27 07:13:21 rpmi: libgdk-pixbuf-gir-2.36.11-alt0.M80P.1 1507198237 installed <13>Jan 27 07:13:21 rpmi: libatk-gir-2.24.0-alt0.M80P.1 1504535386 installed <13>Jan 27 07:13:21 rpmi: libdconf-0.26.1-alt0.M80P.1 1507197883 installed <13>Jan 27 07:13:21 rpmi: dconf-0.26.1-alt0.M80P.1 1507197883 installed <13>Jan 27 07:13:21 rpmi: libgtk+3-schemas-3.22.26-alt0.M80P.1 1510825424 installed <13>Jan 27 07:13:21 rpmi: libpolkit-0.113-alt2 1469643484 installed <86>Jan 27 07:13:21 groupadd[14693]: group added to /etc/group: name=colord, GID=495 <86>Jan 27 07:13:21 groupadd[14693]: group added to /etc/gshadow: name=colord <86>Jan 27 07:13:21 groupadd[14693]: new group: name=colord, GID=495 <86>Jan 27 07:13:21 useradd[14848]: new user: name=colord, UID=498, GID=495, home=/var/colord, shell=/dev/null <13>Jan 27 07:13:21 rpmi: colord-1.3.5-alt0.M80P.1 1488875994 installed <13>Jan 27 07:13:21 rpmi: libjson-glib-1.2.8-alt0.M80P.1 1489956798 installed <13>Jan 27 07:13:22 rpmi: libgtk+3-3.22.26-alt0.M80P.1 1510825424 installed <13>Jan 27 07:13:22 rpmi: libgtk+3-gir-3.22.26-alt0.M80P.1 1510825424 installed <13>Jan 27 07:13:22 rpmi: systemd-utils-1:237-alt2.M80P.5 p8+219569.200.8.1 1547831015 installed <13>Jan 27 07:13:22 rpmi: perl-XML-LibXML-2.0124-alt1 1458750527 installed <13>Jan 27 07:13:22 rpmi: libp11-kit-trust-0.23.8-alt1.M80P.1 1504877579 installed <13>Jan 27 07:13:22 rpmi: dbus-tools-1.10.24-alt4.M80P.1 1518773289 installed <13>Jan 27 07:13:23 rpmi: python3-base-3.5.4-alt2.M80P.1 1527753869 installed <13>Jan 27 07:13:23 rpmi: python-modules-compiler-2.7.11-alt6.M80P.1 1527682534 installed <13>Jan 27 07:13:23 rpmi: python3-module-six-1.10.0-alt7 1496087616 installed <13>Jan 27 07:13:23 rpmi: python3-module-pyparsing-2.0.3-alt1.1 1458039018 installed <13>Jan 27 07:13:23 rpmi: python3-module-cycler-0.10.0-alt1 1493854024 installed <13>Jan 27 07:13:23 rpmi: python3-module-dateutil-2.4.2-alt1.git20150728.1.1 1458152500 installed <13>Jan 27 07:13:23 rpmi: python3-module-certifi-2015.04.28-alt1.1 1457893771 installed <13>Jan 27 07:13:23 rpmi: python3-module-cssselect-0.9.1-alt1.1 1457858257 installed <13>Jan 27 07:13:23 rpmi: python3-module-decorator-4.0.2-alt1.1.1 1457912822 installed <13>Jan 27 07:13:23 rpmi: python3-module-webencodings-0.5.1-alt0.M80P.1 1507185481 installed <13>Jan 27 07:13:23 rpmi: python3-module-z3c-3.0.0-alt2.a2.dev0.git20130313.1.1.1 1460417087 installed <13>Jan 27 07:13:23 rpmi: python3-module-zc-1.0.0-alt6.2 1458024175 installed <13>Jan 27 07:13:23 rpmi: python3-module-py-1.4.34-alt0.M80P.1 1503506764 installed <13>Jan 27 07:13:23 rpmi: python3-module-sgmllib-1.0.0-alt1.hg20100824.1.1.1 1458155334 installed <13>Jan 27 07:13:23 rpmi: python3-module-pydot-1.0.29-alt1.git20140730.1.1 1458071714 installed <13>Jan 27 07:13:23 rpmi: python3-module-chardet-3.0.4-alt1 1506613818 installed <13>Jan 27 07:13:23 rpmi: python3-3.5.4-alt2.M80P.1 1527753869 installed <13>Jan 27 07:13:23 rpmi: python-modules-email-2.7.11-alt6.M80P.1 1527682534 installed <13>Jan 27 07:13:23 rpmi: python3-module-yaml-3.11-alt1.hg20141128.1 1459667833 installed <13>Jan 27 07:13:23 rpmi: python3-module-pycares-0.6.3-alt1.1.1 1459599300 installed <13>Jan 27 07:13:23 rpmi: python3-module-pycairo-1.13.3-alt0.M80P.1 1504560695 installed <13>Jan 27 07:13:23 rpmi: python3-module-pygobject3-3.24.1-alt1.M80P.1 1504561265 installed <13>Jan 27 07:13:23 rpmi: python3-modules-tkinter-3.5.4-alt2.M80P.1 1527753869 installed <13>Jan 27 07:13:23 rpmi: rpm-build-python3-0.1.10.10-alt1.M80P.1 1530521451 installed <13>Jan 27 07:13:23 rpmi: python3-module-pygraphviz-1.3-alt2.git20140720.1 1459599782 installed <13>Jan 27 07:13:23 rpmi: python-modules-unittest-2.7.11-alt6.M80P.1 1527682534 installed <13>Jan 27 07:13:23 rpmi: python3-module-numpy-1:1.12.1-alt0.M80P.1 1496160739 installed <13>Jan 27 07:13:23 rpmi: python3-module-setuptools-1:18.5-alt0.M80P.1 1497527461 installed <13>Jan 27 07:13:23 rpmi: python3-module-zope-3.3.0-alt8.4 1458261152 installed <13>Jan 27 07:13:24 rpmi: python3-module-tornado-4.2.1-alt2.M80P.1 1496088643 installed <13>Jan 27 07:13:24 rpmi: python3-module-nose-1:1.3.7-alt1.git20160316.1 1460404907 installed <13>Jan 27 07:13:24 rpmi: python3-module-scipy-0.19.1-alt0.M80P.1 1503656325 installed <13>Jan 27 07:13:25 rpmi: python3-module-pytest-3.2.1-alt0.M80P.1 1503499784 installed <13>Jan 27 07:13:25 rpmi: python3-module-numpy-testing-1:1.12.1-alt0.M80P.1 1496160739 installed <13>Jan 27 07:13:25 rpmi: python3-module-zope.interface-4.1.3-alt1.dev0.git20150601.4 1459630302 installed <13>Jan 27 07:13:25 rpmi: python3-module-html5lib-1:0.999999999-alt1.M80P.2 1507185603 installed <13>Jan 27 07:13:25 rpmi: python3-module-lxml-4.0.0-alt0.M80P.1 1507163840 installed <13>Jan 27 07:13:25 rpmi: python3-module-networkx-core-1:1.10-alt2.1.1 1458012268 installed <13>Jan 27 07:13:25 rpmi: python-modules-2.7.11-alt6.M80P.1 1527682534 installed <13>Jan 27 07:13:25 rpmi: python-modules-xml-2.7.11-alt6.M80P.1 1527682534 installed <13>Jan 27 07:13:25 rpmi: python-modules-ctypes-2.7.11-alt6.M80P.1 1527682534 installed <13>Jan 27 07:13:25 rpmi: python-modules-json-2.7.11-alt6.M80P.1 1527682534 installed <13>Jan 27 07:13:25 rpmi: python-module-six-1.10.0-alt7 1496087616 installed <13>Jan 27 07:13:25 rpmi: python-modules-encodings-2.7.11-alt6.M80P.1 1527682534 installed <13>Jan 27 07:13:25 rpmi: python-modules-multiprocessing-2.7.11-alt6.M80P.1 1527682534 installed <13>Jan 27 07:13:25 rpmi: python-modules-logging-2.7.11-alt6.M80P.1 1527682534 installed <13>Jan 27 07:13:25 rpmi: python-tools-2to3-2.7.11-alt6.M80P.1 1527682534 installed <13>Jan 27 07:13:25 rpmi: python-module-py-1.4.34-alt0.M80P.1 1503506764 installed <13>Jan 27 07:13:25 rpmi: python-module-yaml-3.11-alt1.hg20141128.1 1459667833 installed <13>Jan 27 07:13:26 rpmi: python3-module-matplotlib-2.0.0-alt3.M80P.1 1498628332 installed <13>Jan 27 07:13:26 rpmi: python-module-cycler-0.10.0-alt1 1493854024 installed <13>Jan 27 07:13:26 rpmi: python-module-webencodings-0.5.1-alt0.M80P.1 1507185481 installed <13>Jan 27 07:13:26 rpmi: python-modules-hotshot-2.7.11-alt6.M80P.1 1527682534 installed <13>Jan 27 07:13:26 rpmi: python-modules-bsddb-2.7.11-alt6.M80P.1 1527682534 installed <13>Jan 27 07:13:26 rpmi: python-2.7.11-alt6.M80P.1 1527682534 installed <13>Jan 27 07:13:26 rpmi: python-strict-2.7.11-alt6.M80P.1 1527682534 installed <13>Jan 27 07:13:26 rpmi: python-dev-2.7.11-alt6.M80P.1 1527682534 installed <13>Jan 27 07:13:26 rpmi: python-module-pyparsing-2.0.3-alt1 1423469752 installed <13>Jan 27 07:13:26 rpmi: python-module-sip-4.19.3-alt0.M80P.1 1507188516 installed <13>Jan 27 07:13:26 rpmi: python-module-qt-3.18.2-alt1.29855a84d8b6.4 1394623478 installed <13>Jan 27 07:13:26 rpmi: python-module-dateutil-2.6.0-alt0.M80P.1 1507185893 installed <13>Jan 27 07:13:26 rpmi: python-module-pycurl-7.19.5.3-alt1.1.1 1459599577 installed <13>Jan 27 07:13:26 rpmi: python-module-zc-1.0.0-alt6.2 1458024175 installed <13>Jan 27 07:13:26 rpmi: python-module-pygobject3-3.24.1-alt1.M80P.1 1504561265 installed <13>Jan 27 07:13:26 rpmi: python-module-pycairo-1.13.3-alt0.M80P.1 1504560695 installed <13>Jan 27 07:13:26 rpmi: python-modules-tkinter-2.7.11-alt6.M80P.1 1527682534 installed <13>Jan 27 07:13:26 rpmi: python-module-backports-3.5.0.1-alt0.M80P.1 1525452764 installed <13>Jan 27 07:13:26 rpmi: python-module-backports.ssl_match_hostname-3.5.0.1-alt0.M80P.1 1525452764 installed <13>Jan 27 07:13:26 rpmi: python-module-decorator-4.0.2-alt1.1.1 1457912822 installed <13>Jan 27 07:13:26 rpmi: python-module-functools32-3.2.3.2-alt1.git20150711 1438148996 installed <13>Jan 27 07:13:26 rpmi: python-module-simplejson-3.15.0-alt1.M80P.1 1528995433 installed <13>Jan 27 07:13:26 rpmi: python-modules-wsgiref-2.7.11-alt6.M80P.1 1527682534 installed <13>Jan 27 07:13:26 rpmi: python-module-mpmath-0.19-alt1.git20150621.1.1.1 1460407091 installed <13>Jan 27 07:13:26 rpmi: python3-module-matplotlib-gtk3-2.0.0-alt3.M80P.1 1498628332 installed <13>Jan 27 07:13:26 rpmi: python3-module-matplotlib-cairo-2.0.0-alt3.M80P.1 1498628332 installed <13>Jan 27 07:13:26 rpmi: python-module-pydot-1.0.29-alt1.git20140730.1.1 1458071714 installed <13>Jan 27 07:13:27 rpmi: python-module-pygraphviz-1.3-alt2.git20140720.1 1459599782 installed <13>Jan 27 07:13:27 rpmi: python3-module-nltk-3.0.1-alt1.1.1 1457994352 installed <13>Jan 27 07:13:27 rpmi: python-module-chardet-3.0.4-alt1 1506613818 installed <13>Jan 27 07:13:27 rpmi: python-module-numpy-1:1.12.1-alt0.M80P.1 1496160739 installed <13>Jan 27 07:13:27 rpmi: python-module-setuptools-1:18.5-alt0.M80P.1 1497527461 installed <13>Jan 27 07:13:27 rpmi: python-module-zope-3.3.0-alt8.4 1458261152 installed <13>Jan 27 07:13:27 rpmi: python-module-tornado-4.2.1-alt2.M80P.1 1496088643 installed <13>Jan 27 07:13:27 rpmi: python-module-future-0.16.0-alt2 p8.217804.100 1544713302 installed <13>Jan 27 07:13:28 rpmi: python-module-pyglet-1.3.0-alt4.a1.hg20150730.1.1.1 1460413686 installed <13>Jan 27 07:13:28 rpmi: python-module-nose-1:1.3.7-alt1.git20160316.1 1460404907 installed <13>Jan 27 07:13:28 rpmi: python-module-numpy-testing-1:1.12.1-alt0.M80P.1 1496160739 installed <13>Jan 27 07:13:28 rpmi: python-module-zope.interface-4.1.3-alt1.dev0.git20150601.4 1459630302 installed <13>Jan 27 07:13:28 rpmi: python-module-pytest-3.2.1-alt0.M80P.1 1503499784 installed <13>Jan 27 07:13:28 rpmi: python-module-html5lib-1:0.999999999-alt1.M80P.2 1507185603 installed <13>Jan 27 07:13:28 rpmi: python-module-sympy-1:0.7.7-alt1.dev.git20150830.1 1458041813 installed <13>Jan 27 07:13:29 rpmi: python-module-matplotlib-2.0.0-alt3.M80P.1 1498628332 installed <13>Jan 27 07:13:29 rpmi: python-module-lxml-4.0.0-alt0.M80P.1 1507163840 installed <13>Jan 27 07:13:30 rpmi: python-module-scipy-0.19.1-alt0.M80P.1 1503656325 installed <13>Jan 27 07:13:30 rpmi: python-module-cssselect-0.9.1-alt1.1 1457858257 installed <13>Jan 27 07:13:30 rpmi: python-module-matplotlib-gtk3-2.0.0-alt3.M80P.1 1498628332 installed <13>Jan 27 07:13:30 rpmi: python-module-matplotlib-cairo-2.0.0-alt3.M80P.1 1498628332 installed <13>Jan 27 07:13:30 rpmi: python-module-sympy-tests-1:0.7.7-alt1.dev.git20150830.1 1458041813 installed <13>Jan 27 07:13:30 rpmi: python-module-networkx-core-1:1.10-alt2.1.1 1458012268 installed <13>Jan 27 07:13:30 rpmi: python-module-nltk-3.0.1-alt1.1.1 1457994352 installed Installing python-module-summary-0.2.0-alt1.git20150209.1.1.src.rpm Building target platforms: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.254 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python-module-summary-0.2.0 + echo 'Source #0 (python-module-summary-0.2.0.tar):' Source #0 (python-module-summary-0.2.0.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/python-module-summary-0.2.0.tar + cd python-module-summary-0.2.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: Refactored ../python3/summary/topic/tfidf.py RefactoringTool: Refactored ../python3/summary/topic/keygragh.py RefactoringTool: Refactored ../python3/summary/test.py WARNING: couldn't encode ../python3/summary/test.py's diff for your terminal RefactoringTool: Refactored ../python3/summary/html.py --- ../python3/summary/topic/tfidf.py (original) +++ ../python3/summary/topic/tfidf.py (refactored) @@ -16,7 +16,7 @@ for w in words: scores[w] = str(words[w] / float(sig))[:6] items = [] - for k, v in sorted(scores.items(), key=lambda x: x[1], reverse=True): + for k, v in sorted(list(scores.items()), key=lambda x: x[1], reverse=True): items.append((k, v)) return items[:return_num] @@ -27,14 +27,14 @@ return 1 def tfidf(): - print "not implement.\n" - print "If you want to implement idf, I recommend to use wiki database.\n" - print "see https://dumps.wikimedia.org/\n" + print("not implement.\n") + print("If you want to implement idf, I recommend to use wiki database.\n") + print("see https://dumps.wikimedia.org/\n") pass def main(): - title = u'Ming Mecca Heart of a video synthesizer and the brain of a videogame console' - body = u''' + title = 'Ming Mecca Heart of a video synthesizer and the brain of a videogame console' + body = ''' Ming Mecca combines the heart of a video synthesizer and the brain of a videogame console. Created with love for all things retrofuture, an ontological toy and a videogame easel, Ming Mecca brings to you fingertips a comprehensive set of classic videogame design parameters, from details like object location and animation, to big-picture elements like game rules and level geography. You can turn off gravity at the flick of a switch, or scroll through seasons at the turn of a knob. Populate your world with exotic creatures, then modulate their identities with random voltage. Set objects in motion and use their collision to trigger cosmological events elsewhere in your modular. Experiment with quantum position, step sequence destructible terrain, and patch wormholes into parallel dimensions. With Ming Mecca, your modular transforms into a reality synthesizer. @@ -50,6 +50,6 @@ Project Page ''' # expect: Games Chris Novello console device Interface Jordan Bartee Molly Roberts programming retro retrofuture texture - print tf(get_words(title + body)) + print(tf(get_words(title + body))) if __name__ == '__main__': main() --- ../python3/summary/topic/keygragh.py (original) +++ ../python3/summary/topic/keygragh.py (refactored) @@ -70,7 +70,7 @@ freq = defaultdict(int) for w in words: freq[w] += 1 - return freq.items() + bigrams + return list(freq.items()) + bigrams def find_bigrams(self, words, no_duplicate = False): # get candidates of bigram @@ -247,7 +247,7 @@ keygraph.draw() # sorted by their score - topics = sorted(topics.items(), key=lambda x: x[1], reverse = True) + topics = sorted(list(topics.items()), key=lambda x: x[1], reverse = True) return [w for w, score in topics[:fetch_num]] --- ../python3/summary/test.py (original) +++ ../python3/summary/test.py (refactored) @@ -1,15 +1,15 @@ # -*- coding: utf-8 -*- -import urllib, sys, difflib -from html import extract +import urllib.request, urllib.parse, urllib.error, sys, difflib +from .html import extract from datetime import datetime testcases = [] # japanese site testcases.append({ -'uri': u'http://www.gizmodo.jp/2012/09/post_10869.html', --- ../python3/summary/html.py (original) +++ ../python3/summary/html.py (refactored) @@ -1,9 +1,9 @@ # -*- coding: utf-8 -*- -import sys, re, copy, urllib +import sys, re, copy, urllib.request, urllib.parse, urllib.error import lxml.html -import digest +from . import digest from lxml.etree import ParserError -from charset import to_unicode, to_unicode_if_htmlentity +from .charset import to_unicode, to_unicode_if_htmlentity class ContentExtractor(object): @@ -167,7 +167,7 @@ continuous = 1.0 title, score = '', 0 if len(item.component) and block.index(item.component[0]) > 0: - n = range(0, block.index(item.component[0]) - 1) + n = list(range(0, block.index(item.component[0]) - 1)) RefactoringTool: Refactored ../python3/summary/digest.py WARNING: couldn't encode ../python3/summary/digest.py's diff for your terminal RefactoringTool: Refactored ../python3/summary/charset.py RefactoringTool: Refactored ../python3/summary/__init__.py RefactoringTool: No changes to ../python3/setup.py RefactoringTool: Files that were modified: RefactoringTool: ../python3/summary/topic/tfidf.py RefactoringTool: ../python3/summary/topic/keygragh.py RefactoringTool: ../python3/summary/test.py RefactoringTool: ../python3/summary/html.py RefactoringTool: ../python3/summary/digest.py RefactoringTool: ../python3/summary/charset.py RefactoringTool: ../python3/summary/__init__.py RefactoringTool: ../python3/setup.py n.reverse() for b in [block[i] for i in n]: if len(title) > 0: @@ -360,11 +360,11 @@ ''' extractor = ContentExtractor(document) - print extractor.guessed_title(), "\n" - print extractor.guessed_content(), "\n" - print extractor.summarize(), "\n" - print extractor.summary(), "\n" - print extract(document), "\n" + print(extractor.guessed_title(), "\n") + print(extractor.guessed_content(), "\n") + print(extractor.summarize(), "\n") + print(extractor.summary(), "\n") + print(extract(document), "\n") if __name__ == '__main__': main() --- ../python3/summary/digest.py (original) +++ ../python3/summary/digest.py (refactored) @@ -22,7 +22,7 @@ try: # compute position of important word in this sentence word_idx.append(s.index(w)) - except ValueError, e: + except ValueError as e: # not include w in this sentence pass @@ -69,7 +69,7 @@ fdist = nltk.FreqDist(words) - top_n_words = [w[0] for w in fdist.items() \ + top_n_words = [w[0] for w in list(fdist.items()) \ if w[0] not in nltk.corpus.stopwords.words('english')][:N] scored_sentences = _score_sentences(normalized_sentences, top_n_words) @@ -86,7 +86,7 @@ def main(): - result = summarize(u""" + result = summarize(""" --- ../python3/summary/charset.py (original) +++ ../python3/summary/charset.py (refactored) @@ -1,4 +1,4 @@ -import re, chardet, htmlentitydefs +import re, chardet, html.entities import lxml.html class UnknownEncodingException(Exception): @@ -31,14 +31,14 @@ def to_unicode(text): unicoded, encoding = None, encoding_if_text(text) if encoding: - unicoded = unicode(text, encoding, 'replace') + unicoded = str(text, encoding, 'replace') return unicoded def to_unicode_if_htmlentity(text): - REFERENCE_REGEX = re.compile(u'&(#x?[0-9a-f]+|[a-z]+);', re.IGNORECASE) - NUM16_REGEX = re.compile(u'#x\d+', re.IGNORECASE) - NUM10_REGEX = re.compile(u'#\d+', re.IGNORECASE) - result = u'' + REFERENCE_REGEX = re.compile('&(#x?[0-9a-f]+|[a-z]+);', re.IGNORECASE) + NUM16_REGEX = re.compile('#x\d+', re.IGNORECASE) + NUM10_REGEX = re.compile('#\d+', re.IGNORECASE) + result = '' i = 0 while True: match = REFERENCE_REGEX.search(text, i) @@ -48,12 +48,12 @@ result += text[i:match.start()] i = match.end() name = match.group(1) - if name in htmlentitydefs.name2codepoint.keys(): - result += unichr(htmlentitydefs.name2codepoint[name]) + if name in list(html.entities.name2codepoint.keys()): + result += chr(html.entities.name2codepoint[name]) elif NUM16_REGEX.match(name): - result += unichr(int(u'0'+name[1:], 16)) + result += chr(int('0'+name[1:], 16)) elif NUM10_REGEX.match(name): - result += unichr(int(name[1:])) + result += chr(int(name[1:])) return result def main(): @@ -68,7 +68,7 @@ ''' - print encoding_if_html(text) + print(encoding_if_html(text)) text = ''' @@ -81,7 +81,7 @@ ''' - print encoding_if_html(text) + print(encoding_if_html(text)) text = ''' @@ -93,6 +93,6 @@ ''' - print encoding_if_text(text) + print(encoding_if_text(text)) if __name__ == '__main__': main() --- ../python3/summary/__init__.py (original) +++ ../python3/summary/__init__.py (refactored) @@ -1,3 +1,3 @@ -from html import is_collection_of_links -from html import not_body_rate -from html import extract +from .html import is_collection_of_links +from .html import not_body_rate +from .html import extract + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.2815 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-summary-0.2.0 + CFLAGS='-pipe -Wall -g -O2 -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -Wall -g -O2 -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -Wall -g -O2 -march=i586 -mtune=generic' + export FFLAGS + /usr/bin/python setup.py build --debug running build running build_py creating build creating build/lib creating build/lib/summary copying summary/test.py -> build/lib/summary copying summary/html.py -> build/lib/summary copying summary/digest.py -> build/lib/summary copying summary/charset.py -> build/lib/summary copying summary/__init__.py -> build/lib/summary + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-summary-0.2.0 + CFLAGS='-pipe -Wall -g -O2 -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -Wall -g -O2 -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -Wall -g -O2 -march=i586 -mtune=generic' + export FFLAGS + python3 setup.py build --debug running build running build_py creating build creating build/lib creating build/lib/summary copying summary/test.py -> build/lib/summary copying summary/html.py -> build/lib/summary copying summary/digest.py -> build/lib/summary copying summary/charset.py -> build/lib/summary copying summary/__init__.py -> build/lib/summary + popd ~/RPM/BUILD/python-module-summary-0.2.0 + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.89647 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python-module-summary-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python-module-summary-buildroot + cd python-module-summary-0.2.0 + /usr/bin/python setup.py install --skip-build --root=/usr/src/tmp/python-module-summary-buildroot --force running install running install_lib creating /usr/src/tmp/python-module-summary-buildroot creating /usr/src/tmp/python-module-summary-buildroot/usr creating /usr/src/tmp/python-module-summary-buildroot/usr/lib creating /usr/src/tmp/python-module-summary-buildroot/usr/lib/python2.7 creating /usr/src/tmp/python-module-summary-buildroot/usr/lib/python2.7/site-packages creating /usr/src/tmp/python-module-summary-buildroot/usr/lib/python2.7/site-packages/summary copying build/lib/summary/__init__.py -> /usr/src/tmp/python-module-summary-buildroot/usr/lib/python2.7/site-packages/summary copying build/lib/summary/charset.py -> /usr/src/tmp/python-module-summary-buildroot/usr/lib/python2.7/site-packages/summary copying build/lib/summary/digest.py -> /usr/src/tmp/python-module-summary-buildroot/usr/lib/python2.7/site-packages/summary copying build/lib/summary/html.py -> /usr/src/tmp/python-module-summary-buildroot/usr/lib/python2.7/site-packages/summary copying build/lib/summary/test.py -> /usr/src/tmp/python-module-summary-buildroot/usr/lib/python2.7/site-packages/summary byte-compiling /usr/src/tmp/python-module-summary-buildroot/usr/lib/python2.7/site-packages/summary/__init__.py to __init__.pyc byte-compiling /usr/src/tmp/python-module-summary-buildroot/usr/lib/python2.7/site-packages/summary/charset.py to charset.pyc byte-compiling /usr/src/tmp/python-module-summary-buildroot/usr/lib/python2.7/site-packages/summary/digest.py to digest.pyc byte-compiling /usr/src/tmp/python-module-summary-buildroot/usr/lib/python2.7/site-packages/summary/html.py to html.pyc byte-compiling /usr/src/tmp/python-module-summary-buildroot/usr/lib/python2.7/site-packages/summary/test.py to test.pyc running install_egg_info running egg_info creating summary.egg-info writing requirements to summary.egg-info/requires.txt writing summary.egg-info/PKG-INFO writing top-level names to summary.egg-info/top_level.txt writing dependency_links to summary.egg-info/dependency_links.txt writing manifest file 'summary.egg-info/SOURCES.txt' reading manifest file 'summary.egg-info/SOURCES.txt' writing manifest file 'summary.egg-info/SOURCES.txt' Copying summary.egg-info to /usr/src/tmp/python-module-summary-buildroot/usr/lib/python2.7/site-packages/summary-0.2.0-py2.7.egg-info running install_scripts + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-summary-0.2.0 + python3 setup.py install --skip-build --root=/usr/src/tmp/python-module-summary-buildroot --force running install running install_lib creating /usr/src/tmp/python-module-summary-buildroot/usr/lib/python3 creating /usr/src/tmp/python-module-summary-buildroot/usr/lib/python3/site-packages creating /usr/src/tmp/python-module-summary-buildroot/usr/lib/python3/site-packages/summary copying build/lib/summary/__init__.py -> /usr/src/tmp/python-module-summary-buildroot/usr/lib/python3/site-packages/summary copying build/lib/summary/charset.py -> /usr/src/tmp/python-module-summary-buildroot/usr/lib/python3/site-packages/summary copying build/lib/summary/digest.py -> /usr/src/tmp/python-module-summary-buildroot/usr/lib/python3/site-packages/summary copying build/lib/summary/html.py -> /usr/src/tmp/python-module-summary-buildroot/usr/lib/python3/site-packages/summary copying build/lib/summary/test.py -> /usr/src/tmp/python-module-summary-buildroot/usr/lib/python3/site-packages/summary byte-compiling /usr/src/tmp/python-module-summary-buildroot/usr/lib/python3/site-packages/summary/__init__.py to __init__.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-summary-buildroot/usr/lib/python3/site-packages/summary/charset.py to charset.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-summary-buildroot/usr/lib/python3/site-packages/summary/digest.py to digest.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-summary-buildroot/usr/lib/python3/site-packages/summary/html.py to html.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-summary-buildroot/usr/lib/python3/site-packages/summary/test.py to test.cpython-35.pyc running install_egg_info running egg_info creating summary.egg-info writing dependency_links to summary.egg-info/dependency_links.txt writing requirements to summary.egg-info/requires.txt writing summary.egg-info/PKG-INFO writing top-level names to summary.egg-info/top_level.txt writing manifest file 'summary.egg-info/SOURCES.txt' reading manifest file 'summary.egg-info/SOURCES.txt' writing manifest file 'summary.egg-info/SOURCES.txt' Copying summary.egg-info to /usr/src/tmp/python-module-summary-buildroot/usr/lib/python3/site-packages/summary-0.2.0-py3.5.egg-info running install_scripts + popd ~/RPM/BUILD/python-module-summary-0.2.0 + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python-module-summary-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python-module-summary-buildroot (binconfig,pkgconfig,libtool,desktop) Compressing files in /usr/src/tmp/python-module-summary-buildroot (auto) Adjusting library links in /usr/src/tmp/python-module-summary-buildroot ./usr/lib: Verifying ELF objects in /usr/src/tmp/python-module-summary-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) Bytecompiling python modules in /usr/src/tmp/python-module-summary-buildroot using /usr/bin/python unlink /usr/src/tmp/python-module-summary-buildroot/usr/lib/python2.7/site-packages/summary/__init__.pyc unlink /usr/src/tmp/python-module-summary-buildroot/usr/lib/python2.7/site-packages/summary/charset.pyc unlink /usr/src/tmp/python-module-summary-buildroot/usr/lib/python2.7/site-packages/summary/digest.pyc unlink /usr/src/tmp/python-module-summary-buildroot/usr/lib/python2.7/site-packages/summary/html.pyc unlink /usr/src/tmp/python-module-summary-buildroot/usr/lib/python2.7/site-packages/summary/test.pyc compile /usr/src/tmp/python-module-summary-buildroot/usr/lib/python2.7/site-packages/summary/__init__.py compile /usr/src/tmp/python-module-summary-buildroot/usr/lib/python2.7/site-packages/summary/charset.py compile /usr/src/tmp/python-module-summary-buildroot/usr/lib/python2.7/site-packages/summary/digest.py compile /usr/src/tmp/python-module-summary-buildroot/usr/lib/python2.7/site-packages/summary/html.py compile /usr/src/tmp/python-module-summary-buildroot/usr/lib/python2.7/site-packages/summary/test.py Bytecompiling python modules with optimization in /usr/src/tmp/python-module-summary-buildroot using /usr/bin/python -O compile /usr/src/tmp/python-module-summary-buildroot/usr/lib/python2.7/site-packages/summary/__init__.py compile /usr/src/tmp/python-module-summary-buildroot/usr/lib/python2.7/site-packages/summary/charset.py compile /usr/src/tmp/python-module-summary-buildroot/usr/lib/python2.7/site-packages/summary/digest.py compile /usr/src/tmp/python-module-summary-buildroot/usr/lib/python2.7/site-packages/summary/html.py compile /usr/src/tmp/python-module-summary-buildroot/usr/lib/python2.7/site-packages/summary/test.py Bytecompiling python3 modules in /usr/src/tmp/python-module-summary-buildroot using python3 unlink /usr/src/tmp/python-module-summary-buildroot/usr/lib/python3/site-packages/summary/__pycache__/__init__.cpython-35.pyc unlink /usr/src/tmp/python-module-summary-buildroot/usr/lib/python3/site-packages/summary/__pycache__/charset.cpython-35.pyc unlink /usr/src/tmp/python-module-summary-buildroot/usr/lib/python3/site-packages/summary/__pycache__/digest.cpython-35.pyc unlink /usr/src/tmp/python-module-summary-buildroot/usr/lib/python3/site-packages/summary/__pycache__/html.cpython-35.pyc unlink /usr/src/tmp/python-module-summary-buildroot/usr/lib/python3/site-packages/summary/__pycache__/test.cpython-35.pyc compile /usr/src/tmp/python-module-summary-buildroot/usr/lib/python3/site-packages/summary/__init__.py compile /usr/src/tmp/python-module-summary-buildroot/usr/lib/python3/site-packages/summary/charset.py compile /usr/src/tmp/python-module-summary-buildroot/usr/lib/python3/site-packages/summary/digest.py compile /usr/src/tmp/python-module-summary-buildroot/usr/lib/python3/site-packages/summary/html.py compile /usr/src/tmp/python-module-summary-buildroot/usr/lib/python3/site-packages/summary/test.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python-module-summary-buildroot using python3 -O compile /usr/src/tmp/python-module-summary-buildroot/usr/lib/python3/site-packages/summary/__init__.py compile /usr/src/tmp/python-module-summary-buildroot/usr/lib/python3/site-packages/summary/charset.py compile /usr/src/tmp/python-module-summary-buildroot/usr/lib/python3/site-packages/summary/digest.py compile /usr/src/tmp/python-module-summary-buildroot/usr/lib/python3/site-packages/summary/html.py compile /usr/src/tmp/python-module-summary-buildroot/usr/lib/python3/site-packages/summary/test.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python-module-summary-buildroot using python3 -OO compile /usr/src/tmp/python-module-summary-buildroot/usr/lib/python3/site-packages/summary/__init__.py compile /usr/src/tmp/python-module-summary-buildroot/usr/lib/python3/site-packages/summary/charset.py compile /usr/src/tmp/python-module-summary-buildroot/usr/lib/python3/site-packages/summary/digest.py compile /usr/src/tmp/python-module-summary-buildroot/usr/lib/python3/site-packages/summary/html.py compile /usr/src/tmp/python-module-summary-buildroot/usr/lib/python3/site-packages/summary/test.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/summary/__pycache__/test.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/summary/__pycache__/test.cpython-35.pyc' './usr/lib/python3/site-packages/summary/__pycache__/test.cpython-35.opt-2.pyc' => './usr/lib/python3/site-packages/summary/__pycache__/test.cpython-35.opt-1.pyc' './usr/lib/python3/site-packages/summary/__pycache__/html.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/summary/__pycache__/html.cpython-35.pyc' './usr/lib/python3/site-packages/summary/__pycache__/digest.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/summary/__pycache__/digest.cpython-35.pyc' './usr/lib/python3/site-packages/summary/__pycache__/digest.cpython-35.opt-2.pyc' => './usr/lib/python3/site-packages/summary/__pycache__/digest.cpython-35.opt-1.pyc' './usr/lib/python3/site-packages/summary/__pycache__/charset.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/summary/__pycache__/charset.cpython-35.pyc' './usr/lib/python3/site-packages/summary/__pycache__/charset.cpython-35.opt-2.pyc' => './usr/lib/python3/site-packages/summary/__pycache__/charset.cpython-35.opt-1.pyc' './usr/lib/python3/site-packages/summary/__pycache__/__init__.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/summary/__pycache__/__init__.cpython-35.pyc' './usr/lib/python3/site-packages/summary/__pycache__/__init__.cpython-35.opt-2.pyc' => './usr/lib/python3/site-packages/summary/__pycache__/__init__.cpython-35.opt-1.pyc' Hardlinking identical .pyc and .pyo files './usr/lib/python2.7/site-packages/summary/test.pyo' => './usr/lib/python2.7/site-packages/summary/test.pyc' './usr/lib/python2.7/site-packages/summary/html.pyo' => './usr/lib/python2.7/site-packages/summary/html.pyc' './usr/lib/python2.7/site-packages/summary/digest.pyo' => './usr/lib/python2.7/site-packages/summary/digest.pyc' './usr/lib/python2.7/site-packages/summary/charset.pyo' => './usr/lib/python2.7/site-packages/summary/charset.pyc' './usr/lib/python2.7/site-packages/summary/__init__.pyo' => './usr/lib/python2.7/site-packages/summary/__init__.pyc' Executing(%check): /bin/sh -e /usr/src/tmp/rpm-tmp.78007 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-summary-0.2.0 + python setup.py test running test running egg_info deleting summary.egg-info/requires.txt writing summary.egg-info/PKG-INFO writing top-level names to summary.egg-info/top_level.txt writing dependency_links to summary.egg-info/dependency_links.txt reading manifest file 'summary.egg-info/SOURCES.txt' writing manifest file 'summary.egg-info/SOURCES.txt' running build_ext ---------------------------------------------------------------------- Ran 0 tests in 0.000s OK + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-summary-0.2.0 + python3 setup.py test running test running egg_info writing top-level names to summary.egg-info/top_level.txt deleting summary.egg-info/requires.txt writing summary.egg-info/PKG-INFO writing dependency_links to summary.egg-info/dependency_links.txt reading manifest file 'summary.egg-info/SOURCES.txt' writing manifest file 'summary.egg-info/SOURCES.txt' running build_ext summary (unittest.loader._FailedTest) ... ERROR ====================================================================== ERROR: summary (unittest.loader._FailedTest) ---------------------------------------------------------------------- ImportError: Failed to import test module: summary Traceback (most recent call last): File "/usr/lib/python3.5/unittest/loader.py", line 462, in _find_test_path package = self._get_module_from_name(name) File "/usr/lib/python3.5/unittest/loader.py", line 369, in _get_module_from_name __import__(name) File "/usr/src/RPM/BUILD/python3/summary/__init__.py", line 1, in from .html import is_collection_of_links File "/usr/src/RPM/BUILD/python3/summary/html.py", line 4, in from . import digest File "/usr/src/RPM/BUILD/python3/summary/digest.py", line 4, in import nltk File "/usr/lib/python3/site-packages/nltk/__init__.py", line 117, in from nltk.align import * File "/usr/lib/python3/site-packages/nltk/align/__init__.py", line 15, in from nltk.align.ibm1 import IBMModel1 File "/usr/lib/python3/site-packages/nltk/align/ibm1.py", line 18, in from nltk.corpus import comtrans File "/usr/lib/python3/site-packages/nltk/corpus/__init__.py", line 64, in from nltk.tokenize import RegexpTokenizer File "/usr/lib/python3/site-packages/nltk/tokenize/__init__.py", line 65, in from nltk.tokenize.regexp import (RegexpTokenizer, WhitespaceTokenizer, File "/usr/lib/python3/site-packages/nltk/tokenize/regexp.py", line 201, in blankline_tokenize = BlanklineTokenizer().tokenize File "/usr/lib/python3/site-packages/nltk/tokenize/regexp.py", line 172, in __init__ RegexpTokenizer.__init__(self, r'\s*\n\s*\n\s*', gaps=True) File "/usr/lib/python3/site-packages/nltk/tokenize/regexp.py", line 119, in __init__ self._regexp = compile_regexp_to_noncapturing(pattern, flags) File "/usr/lib/python3/site-packages/nltk/internals.py", line 54, in compile_regexp_to_noncapturing return sre_compile.compile(convert_regexp_to_noncapturing_parsed(sre_parse.parse(pattern)), flags=flags) File "/usr/lib/python3/site-packages/nltk/internals.py", line 50, in convert_regexp_to_noncapturing_parsed parsed_pattern.pattern.groups = 1 AttributeError: can't set attribute ---------------------------------------------------------------------- Ran 1 test in 0.000s FAILED (errors=1) error: Bad exit status from /usr/src/tmp/rpm-tmp.78007 (%check) RPM build errors: Bad exit status from /usr/src/tmp/rpm-tmp.78007 (%check) Command exited with non-zero status 1 3.37user 0.33system 0:07.19elapsed 51%CPU (0avgtext+0avgdata 52552maxresident)k 0inputs+0outputs (0major+97166minor)pagefaults 0swaps hsh-rebuild: rebuild of `python-module-summary-0.2.0-alt1.git20150209.1.1.src.rpm' failed. Command exited with non-zero status 1 29.37user 4.30system 0:53.56elapsed 62%CPU (0avgtext+0avgdata 125260maxresident)k 0inputs+0outputs (0major+679469minor)pagefaults 0swaps