Sat May 23 00:12:11 UTC 2020 I: starting to build python-dsv/buster/armhf on jenkins on '2020-05-23 00:11' Sat May 23 00:12:11 UTC 2020 I: The jenkins build log is/was available at https://jenkins.debian.net/userContent/reproducible/debian/build_service/armhf_47/1274/console.log Sat May 23 00:12:11 UTC 2020 I: Downloading source for buster/python-dsv=1.4.1-7 --2020-05-23 00:12:11-- http://deb.debian.org/debian/pool/main/p/python-dsv/python-dsv_1.4.1-7.dsc Connecting to 78.137.99.97:3128... connected. Proxy request sent, awaiting response... 200 OK Length: 2196 (2.1K) Saving to: ‘python-dsv_1.4.1-7.dsc’ 0K .. 100% 157M=0s 2020-05-23 00:12:11 (157 MB/s) - ‘python-dsv_1.4.1-7.dsc’ saved [2196/2196] Sat May 23 00:12:11 UTC 2020 I: python-dsv_1.4.1-7.dsc -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Format: 3.0 (quilt) Source: python-dsv Binary: python-dsv, python3-dsv Architecture: all Version: 1.4.1-7 Maintainer: Debian Python Modules Team Uploaders: Aaron M. Ucko Homepage: http://python-dsv.sourceforge.net/ Standards-Version: 4.3.0 Vcs-Browser: https://salsa.debian.org/python-team/modules/python-dsv Vcs-Git: https://salsa.debian.org/python-team/modules/python-dsv.git Build-Depends: 2to3, debhelper (>= 9~), dh-python, python-all, python-setuptools, python3-all, python3-setuptools Package-List: python-dsv deb python optional arch=all python3-dsv deb python optional arch=all Checksums-Sha1: 4cfdb824c5f66a8488f3fc8e441d54f23e0405f1 14682 python-dsv_1.4.1.orig.tar.gz b4d0d1278a536c1f5ba99dc1d54b4a6d5a719603 9772 python-dsv_1.4.1-7.debian.tar.xz Checksums-Sha256: 5d0ec99c45f8ea91ea920dcd2cdf2cdc9e721985551ea80718519ce70dc98f15 14682 python-dsv_1.4.1.orig.tar.gz cb1d5f09b9c870c32633013e1b2c92f15ad13ca7f8c9f5b835bb050c657bcaca 9772 python-dsv_1.4.1-7.debian.tar.xz Files: f666d6956292f8be3fce0cccd21e6ab0 14682 python-dsv_1.4.1.orig.tar.gz a997849c4286f59a2fd79e6e70c2d431 9772 python-dsv_1.4.1-7.debian.tar.xz Dgit: 7438b24bbdb871098d37ef34725c1ea582ef9a33 debian archive/debian/1.4.1-7 https://git.dgit.debian.org/python-dsv -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEfDq5z9IwvTDdAJxZHnCRsfFKZKIFAlx1/bQACgkQHnCRsfFK ZKLjFw//fi8uH4I9NNV9dg2ojqlnqMguTizSyRRg/UZjRGBSxBDhl+HIZZhzmdQm 97nxdYOKoU/Z/0ieYa0EJO3ZZkOwDL+tp4S2KEMLQEP5QJBEoktSjwXi73q93ATI EmSg314FaXSC+56f0OVhOxne2Fm/RsPN0MC+o8gbbkHe4v46xuJuBus3LnADgbUo dKKPAA+FWLRVJUgxYp2Dv9vt63+kT6wow1smCIojDz1s+ecIONH9mt13A4FrKDpC HqjJoQFIl/fyJbonkmPBkJ+ucL9T+Myc84NXdR4wIRaPPeQzwm5nwfQ3NCHroqIx /fKj/hLOHoS/fuVuzsTz1B0VpVx9p14vopVrx544xbsQ3+awCwQCBqRRGOmtdUg1 Xu+F6LwYe8e4Uwj86MBba5wkrEP/+mpPrzOb8JLQqZ7FIC6D4kDACxhsloVvlheb VToiPB7fLFUr2nw6QhVx+9FuEXlNpWsifJ6I6bIBzHpJ/aOxnZnQJUmhdcdQ5UG/ TcVo+uUvComoyu80Ncnhkdc7aOlpsY24s5OAic+6ePyQHzAuvP7LttDqaQwF3HRy wt3KnrZjJDm6EQltO4oltX9dPH7kSe/3Ao3onTDQKboyUvu2K+NqhIiaKd9jYldI lwm663zgWpT8TTIXCGv9p4F6m3Vs7z0gpYx/OWpk8Tf9WQndZdo= =+d+4 -----END PGP SIGNATURE----- Sat May 23 00:12:11 UTC 2020 I: Checking whether the package is not for us Sat May 23 00:12:11 UTC 2020 I: Starting 1st build on remote node jtx1a-armhf-rb.debian.net. Sat May 23 00:12:11 UTC 2020 I: Preparing to do remote build '1' on jtx1a-armhf-rb.debian.net. Sat May 23 00:14:22 UTC 2020 I: Deleting $TMPDIR on jtx1a-armhf-rb.debian.net. I: pbuilder: network access will be disabled during build I: Current time: Fri May 22 12:12:18 -12 2020 I: pbuilder-time-stamp: 1590192738 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/buster-reproducible-base.tgz] I: copying local configuration I: mounting /proc filesystem I: mounting /sys filesystem I: creating /{dev,run}/shm I: mounting /dev/pts filesystem I: redirecting /dev/ptmx to /dev/pts/ptmx I: policy-rc.d already exists I: Copying source file I: copying [python-dsv_1.4.1-7.dsc] I: copying [./python-dsv_1.4.1.orig.tar.gz] I: copying [./python-dsv_1.4.1-7.debian.tar.xz] I: Extracting source gpgv: unknown type of key resource 'trustedkeys.kbx' gpgv: keyblock resource '/root/.gnupg/trustedkeys.kbx': General error gpgv: Signature made Tue Feb 26 15:02:12 2019 -12 gpgv: using RSA key 7C3AB9CFD230BD30DD009C591E7091B1F14A64A2 gpgv: Can't check signature: No public key dpkg-source: warning: failed to verify signature on ./python-dsv_1.4.1-7.dsc dpkg-source: info: extracting python-dsv in python-dsv-1.4.1 dpkg-source: info: unpacking python-dsv_1.4.1.orig.tar.gz dpkg-source: info: unpacking python-dsv_1.4.1-7.debian.tar.xz dpkg-source: info: using patch list from debian/patches/series dpkg-source: info: applying 01-leave-env-alone.patch dpkg-source: info: applying 02-wx-namespace-transition.patch dpkg-source: info: applying 03-avoid-unicoditis.patch dpkg-source: info: applying 04-wx3.0-compat.patch I: Not using root during the build. I: Installing the build-deps -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy Version: 0.invalid.0 Architecture: armhf Maintainer: Debian Pbuilder Team Description: Dummy package to satisfy dependencies with aptitude - created by pbuilder This package was created automatically by pbuilder to satisfy the build-dependencies of the package being currently built. Depends: 2to3, debhelper (>= 9~), dh-python, python-all, python-setuptools, python3-all, python3-setuptools dpkg-deb: building package 'pbuilder-satisfydepends-dummy' in '/tmp/satisfydepends-aptitude/pbuilder-satisfydepends-dummy.deb'. Selecting previously unselected package pbuilder-satisfydepends-dummy. (Reading database ... 18932 files and directories currently installed.) Preparing to unpack .../pbuilder-satisfydepends-dummy.deb ... Unpacking pbuilder-satisfydepends-dummy (0.invalid.0) ... dpkg: pbuilder-satisfydepends-dummy: dependency problems, but configuring anyway as you requested: pbuilder-satisfydepends-dummy depends on 2to3; however: Package 2to3 is not installed. pbuilder-satisfydepends-dummy depends on debhelper (>= 9~); however: Package debhelper is not installed. pbuilder-satisfydepends-dummy depends on dh-python; however: Package dh-python is not installed. pbuilder-satisfydepends-dummy depends on python-all; however: Package python-all is not installed. pbuilder-satisfydepends-dummy depends on python-setuptools; however: Package python-setuptools is not installed. pbuilder-satisfydepends-dummy depends on python3-all; however: Package python3-all is not installed. pbuilder-satisfydepends-dummy depends on python3-setuptools; however: Package python3-setuptools is not installed. Setting up pbuilder-satisfydepends-dummy (0.invalid.0) ... Reading package lists... Building dependency tree... Reading state information... Initializing package states... Writing extended state information... Building tag database... pbuilder-satisfydepends-dummy is already installed at the requested version (0.invalid.0) pbuilder-satisfydepends-dummy is already installed at the requested version (0.invalid.0) The following NEW packages will be installed: 2to3{a} autoconf{a} automake{a} autopoint{a} autotools-dev{a} bsdmainutils{a} debhelper{a} dh-autoreconf{a} dh-python{a} dh-strip-nondeterminism{a} dwz{a} file{a} gettext{a} gettext-base{a} groff-base{a} intltool-debian{a} libarchive-zip-perl{a} libbsd0{a} libcroco3{a} libelf1{a} libexpat1{a} libfile-stripnondeterminism-perl{a} libglib2.0-0{a} libicu63{a} libmagic-mgc{a} libmagic1{a} libmpdec2{a} libncurses6{a} libpipeline1{a} libpython-stdlib{a} libpython2-stdlib{a} libpython2.7-minimal{a} libpython2.7-stdlib{a} libpython3-stdlib{a} libpython3.7-minimal{a} libpython3.7-stdlib{a} libreadline7{a} libsigsegv2{a} libssl1.1{a} libtool{a} libuchardet0{a} libxml2{a} m4{a} man-db{a} mime-support{a} po-debconf{a} python{a} python-all{a} python-minimal{a} python-pkg-resources{a} python-setuptools{a} python2{a} python2-minimal{a} python2.7{a} python2.7-minimal{a} python3{a} python3-all{a} python3-distutils{a} python3-lib2to3{a} python3-minimal{a} python3-pkg-resources{a} python3-setuptools{a} python3.7{a} python3.7-minimal{a} readline-common{a} sensible-utils{a} The following packages are RECOMMENDED but will NOT be installed: curl libarchive-cpio-perl libglib2.0-data libgpm2 libltdl-dev libmail-sendmail-perl lynx shared-mime-info wget xdg-user-dirs 0 packages upgraded, 66 newly installed, 0 to remove and 0 not upgraded. Need to get 29.3 MB of archives. After unpacking 107 MB will be used. Writing extended state information... Get: 1 http://deb.debian.org/debian buster/main armhf libbsd0 armhf 0.9.1-2 [103 kB] Get: 2 http://deb.debian.org/debian buster/main armhf bsdmainutils armhf 11.1.2+b1 [186 kB] Get: 3 http://deb.debian.org/debian buster/main armhf libuchardet0 armhf 0.0.6-3 [62.2 kB] Get: 4 http://deb.debian.org/debian buster/main armhf groff-base armhf 1.22.4-3 [828 kB] Get: 5 http://deb.debian.org/debian buster/main armhf libpipeline1 armhf 1.5.1-2 [26.8 kB] Get: 6 http://deb.debian.org/debian buster/main armhf man-db armhf 2.8.5-2 [1240 kB] Get: 7 http://deb.debian.org/debian buster/main armhf libpython2.7-minimal armhf 2.7.16-2+deb10u1 [395 kB] Get: 8 http://deb.debian.org/debian buster/main armhf python2.7-minimal armhf 2.7.16-2+deb10u1 [1171 kB] Get: 9 http://deb.debian.org/debian buster/main armhf python2-minimal armhf 2.7.16-1 [41.4 kB] Get: 10 http://deb.debian.org/debian buster/main armhf python-minimal armhf 2.7.16-1 [21.0 kB] Get: 11 http://deb.debian.org/debian buster/main armhf libssl1.1 armhf 1.1.1d-0+deb10u3 [1299 kB] Get: 12 http://deb.debian.org/debian buster/main armhf mime-support all 3.62 [37.2 kB] Get: 13 http://deb.debian.org/debian buster/main armhf libexpat1 armhf 2.2.6-2+deb10u1 [78.0 kB] Get: 14 http://deb.debian.org/debian buster/main armhf readline-common all 7.0-5 [70.6 kB] Get: 15 http://deb.debian.org/debian buster/main armhf libreadline7 armhf 7.0-5 [131 kB] Get: 16 http://deb.debian.org/debian buster/main armhf libpython2.7-stdlib armhf 2.7.16-2+deb10u1 [1837 kB] Get: 17 http://deb.debian.org/debian buster/main armhf python2.7 armhf 2.7.16-2+deb10u1 [305 kB] Get: 18 http://deb.debian.org/debian buster/main armhf libpython2-stdlib armhf 2.7.16-1 [20.8 kB] Get: 19 http://deb.debian.org/debian buster/main armhf libpython-stdlib armhf 2.7.16-1 [20.8 kB] Get: 20 http://deb.debian.org/debian buster/main armhf python2 armhf 2.7.16-1 [41.6 kB] Get: 21 http://deb.debian.org/debian buster/main armhf python armhf 2.7.16-1 [22.8 kB] Get: 22 http://deb.debian.org/debian buster/main armhf libpython3.7-minimal armhf 3.7.3-2+deb10u1 [582 kB] Get: 23 http://deb.debian.org/debian buster/main armhf python3.7-minimal armhf 3.7.3-2+deb10u1 [1465 kB] Get: 24 http://deb.debian.org/debian buster/main armhf python3-minimal armhf 3.7.3-1 [36.6 kB] Get: 25 http://deb.debian.org/debian buster/main armhf libmpdec2 armhf 2.4.2-2 [69.3 kB] Get: 26 http://deb.debian.org/debian buster/main armhf libpython3.7-stdlib armhf 3.7.3-2+deb10u1 [1660 kB] Get: 27 http://deb.debian.org/debian buster/main armhf python3.7 armhf 3.7.3-2+deb10u1 [330 kB] Get: 28 http://deb.debian.org/debian buster/main armhf libpython3-stdlib armhf 3.7.3-1 [20.0 kB] Get: 29 http://deb.debian.org/debian buster/main armhf python3 armhf 3.7.3-1 [61.5 kB] Get: 30 http://deb.debian.org/debian buster/main armhf sensible-utils all 0.0.12 [15.8 kB] Get: 31 http://deb.debian.org/debian buster/main armhf libmagic-mgc armhf 1:5.35-4+deb10u1 [242 kB] Get: 32 http://deb.debian.org/debian buster/main armhf libmagic1 armhf 1:5.35-4+deb10u1 [110 kB] Get: 33 http://deb.debian.org/debian buster/main armhf file armhf 1:5.35-4+deb10u1 [65.5 kB] Get: 34 http://deb.debian.org/debian buster/main armhf gettext-base armhf 0.19.8.1-9 [118 kB] Get: 35 http://deb.debian.org/debian buster/main armhf python3-lib2to3 all 3.7.3-1 [76.7 kB] Get: 36 http://deb.debian.org/debian buster/main armhf 2to3 all 3.7.3-1 [20.8 kB] Get: 37 http://deb.debian.org/debian buster/main armhf libsigsegv2 armhf 2.12-2 [32.1 kB] Get: 38 http://deb.debian.org/debian buster/main armhf m4 armhf 1.4.18-2 [190 kB] Get: 39 http://deb.debian.org/debian buster/main armhf autoconf all 2.69-11 [341 kB] Get: 40 http://deb.debian.org/debian buster/main armhf autotools-dev all 20180224.1 [77.0 kB] Get: 41 http://deb.debian.org/debian buster/main armhf automake all 1:1.16.1-4 [771 kB] Get: 42 http://deb.debian.org/debian buster/main armhf autopoint all 0.19.8.1-9 [434 kB] Get: 43 http://deb.debian.org/debian buster/main armhf libtool all 2.4.6-9 [547 kB] Get: 44 http://deb.debian.org/debian buster/main armhf dh-autoreconf all 19 [16.9 kB] Get: 45 http://deb.debian.org/debian buster/main armhf libarchive-zip-perl all 1.64-1 [96.8 kB] Get: 46 http://deb.debian.org/debian buster/main armhf libfile-stripnondeterminism-perl all 1.1.2-1 [19.8 kB] Get: 47 http://deb.debian.org/debian buster/main armhf dh-strip-nondeterminism all 1.1.2-1 [13.0 kB] Get: 48 http://deb.debian.org/debian buster/main armhf libelf1 armhf 0.176-1.1 [158 kB] Get: 49 http://deb.debian.org/debian buster/main armhf dwz armhf 0.12-3 [72.0 kB] Get: 50 http://deb.debian.org/debian buster/main armhf libglib2.0-0 armhf 2.58.3-2+deb10u2 [1101 kB] Get: 51 http://deb.debian.org/debian buster/main armhf libicu63 armhf 63.1-6+deb10u1 [8005 kB] Get: 52 http://deb.debian.org/debian buster/main armhf libxml2 armhf 2.9.4+dfsg1-7+b3 [595 kB] Get: 53 http://deb.debian.org/debian buster/main armhf libcroco3 armhf 0.6.12-3 [133 kB] Get: 54 http://deb.debian.org/debian buster/main armhf libncurses6 armhf 6.1+20181013-2+deb10u2 [79.8 kB] Get: 55 http://deb.debian.org/debian buster/main armhf gettext armhf 0.19.8.1-9 [1242 kB] Get: 56 http://deb.debian.org/debian buster/main armhf intltool-debian all 0.35.0+20060710.5 [26.8 kB] Get: 57 http://deb.debian.org/debian buster/main armhf po-debconf all 1.0.21 [248 kB] Get: 58 http://deb.debian.org/debian buster/main armhf debhelper all 12.1.1 [1016 kB] Get: 59 http://deb.debian.org/debian buster/main armhf python3-distutils all 3.7.3-1 [142 kB] Get: 60 http://deb.debian.org/debian buster/main armhf dh-python all 3.20190308 [99.3 kB] Get: 61 http://deb.debian.org/debian buster/main armhf python-all armhf 2.7.16-1 [1044 B] Get: 62 http://deb.debian.org/debian buster/main armhf python-pkg-resources all 40.8.0-1 [182 kB] Get: 63 http://deb.debian.org/debian buster/main armhf python-setuptools all 40.8.0-1 [382 kB] Get: 64 http://deb.debian.org/debian buster/main armhf python3-all armhf 3.7.3-1 [1068 B] Get: 65 http://deb.debian.org/debian buster/main armhf python3-pkg-resources all 40.8.0-1 [153 kB] Get: 66 http://deb.debian.org/debian buster/main armhf python3-setuptools all 40.8.0-1 [306 kB] Fetched 29.3 MB in 3s (9946 kB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libbsd0:armhf. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 18932 files and directories currently installed.) Preparing to unpack .../00-libbsd0_0.9.1-2_armhf.deb ... Unpacking libbsd0:armhf (0.9.1-2) ... Selecting previously unselected package bsdmainutils. Preparing to unpack .../01-bsdmainutils_11.1.2+b1_armhf.deb ... Unpacking bsdmainutils (11.1.2+b1) ... Selecting previously unselected package libuchardet0:armhf. Preparing to unpack .../02-libuchardet0_0.0.6-3_armhf.deb ... Unpacking libuchardet0:armhf (0.0.6-3) ... Selecting previously unselected package groff-base. Preparing to unpack .../03-groff-base_1.22.4-3_armhf.deb ... Unpacking groff-base (1.22.4-3) ... Selecting previously unselected package libpipeline1:armhf. Preparing to unpack .../04-libpipeline1_1.5.1-2_armhf.deb ... Unpacking libpipeline1:armhf (1.5.1-2) ... Selecting previously unselected package man-db. Preparing to unpack .../05-man-db_2.8.5-2_armhf.deb ... Unpacking man-db (2.8.5-2) ... Selecting previously unselected package libpython2.7-minimal:armhf. Preparing to unpack .../06-libpython2.7-minimal_2.7.16-2+deb10u1_armhf.deb ... Unpacking libpython2.7-minimal:armhf (2.7.16-2+deb10u1) ... Selecting previously unselected package python2.7-minimal. Preparing to unpack .../07-python2.7-minimal_2.7.16-2+deb10u1_armhf.deb ... Unpacking python2.7-minimal (2.7.16-2+deb10u1) ... Selecting previously unselected package python2-minimal. Preparing to unpack .../08-python2-minimal_2.7.16-1_armhf.deb ... Unpacking python2-minimal (2.7.16-1) ... Selecting previously unselected package python-minimal. Preparing to unpack .../09-python-minimal_2.7.16-1_armhf.deb ... Unpacking python-minimal (2.7.16-1) ... Selecting previously unselected package libssl1.1:armhf. Preparing to unpack .../10-libssl1.1_1.1.1d-0+deb10u3_armhf.deb ... Unpacking libssl1.1:armhf (1.1.1d-0+deb10u3) ... Selecting previously unselected package mime-support. Preparing to unpack .../11-mime-support_3.62_all.deb ... Unpacking mime-support (3.62) ... Selecting previously unselected package libexpat1:armhf. Preparing to unpack .../12-libexpat1_2.2.6-2+deb10u1_armhf.deb ... Unpacking libexpat1:armhf (2.2.6-2+deb10u1) ... Selecting previously unselected package readline-common. Preparing to unpack .../13-readline-common_7.0-5_all.deb ... Unpacking readline-common (7.0-5) ... Selecting previously unselected package libreadline7:armhf. Preparing to unpack .../14-libreadline7_7.0-5_armhf.deb ... Unpacking libreadline7:armhf (7.0-5) ... Selecting previously unselected package libpython2.7-stdlib:armhf. Preparing to unpack .../15-libpython2.7-stdlib_2.7.16-2+deb10u1_armhf.deb ... Unpacking libpython2.7-stdlib:armhf (2.7.16-2+deb10u1) ... Selecting previously unselected package python2.7. Preparing to unpack .../16-python2.7_2.7.16-2+deb10u1_armhf.deb ... Unpacking python2.7 (2.7.16-2+deb10u1) ... Selecting previously unselected package libpython2-stdlib:armhf. Preparing to unpack .../17-libpython2-stdlib_2.7.16-1_armhf.deb ... Unpacking libpython2-stdlib:armhf (2.7.16-1) ... Selecting previously unselected package libpython-stdlib:armhf. Preparing to unpack .../18-libpython-stdlib_2.7.16-1_armhf.deb ... Unpacking libpython-stdlib:armhf (2.7.16-1) ... Setting up libpython2.7-minimal:armhf (2.7.16-2+deb10u1) ... Setting up python2.7-minimal (2.7.16-2+deb10u1) ... Setting up python2-minimal (2.7.16-1) ... Selecting previously unselected package python2. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 20397 files and directories currently installed.) Preparing to unpack .../python2_2.7.16-1_armhf.deb ... Unpacking python2 (2.7.16-1) ... Setting up python-minimal (2.7.16-1) ... Selecting previously unselected package python. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 20430 files and directories currently installed.) Preparing to unpack .../python_2.7.16-1_armhf.deb ... Unpacking python (2.7.16-1) ... Selecting previously unselected package libpython3.7-minimal:armhf. Preparing to unpack .../libpython3.7-minimal_3.7.3-2+deb10u1_armhf.deb ... Unpacking libpython3.7-minimal:armhf (3.7.3-2+deb10u1) ... Selecting previously unselected package python3.7-minimal. Preparing to unpack .../python3.7-minimal_3.7.3-2+deb10u1_armhf.deb ... Unpacking python3.7-minimal (3.7.3-2+deb10u1) ... Setting up libssl1.1:armhf (1.1.1d-0+deb10u3) ... Setting up libpython3.7-minimal:armhf (3.7.3-2+deb10u1) ... Setting up libexpat1:armhf (2.2.6-2+deb10u1) ... Setting up python3.7-minimal (3.7.3-2+deb10u1) ... Selecting previously unselected package python3-minimal. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 20684 files and directories currently installed.) Preparing to unpack .../python3-minimal_3.7.3-1_armhf.deb ... Unpacking python3-minimal (3.7.3-1) ... Selecting previously unselected package libmpdec2:armhf. Preparing to unpack .../libmpdec2_2.4.2-2_armhf.deb ... Unpacking libmpdec2:armhf (2.4.2-2) ... Selecting previously unselected package libpython3.7-stdlib:armhf. Preparing to unpack .../libpython3.7-stdlib_3.7.3-2+deb10u1_armhf.deb ... Unpacking libpython3.7-stdlib:armhf (3.7.3-2+deb10u1) ... Selecting previously unselected package python3.7. Preparing to unpack .../python3.7_3.7.3-2+deb10u1_armhf.deb ... Unpacking python3.7 (3.7.3-2+deb10u1) ... Selecting previously unselected package libpython3-stdlib:armhf. Preparing to unpack .../libpython3-stdlib_3.7.3-1_armhf.deb ... Unpacking libpython3-stdlib:armhf (3.7.3-1) ... Setting up python3-minimal (3.7.3-1) ... Selecting previously unselected package python3. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 21096 files and directories currently installed.) Preparing to unpack .../00-python3_3.7.3-1_armhf.deb ... Unpacking python3 (3.7.3-1) ... Selecting previously unselected package sensible-utils. Preparing to unpack .../01-sensible-utils_0.0.12_all.deb ... Unpacking sensible-utils (0.0.12) ... Selecting previously unselected package libmagic-mgc. Preparing to unpack .../02-libmagic-mgc_1%3a5.35-4+deb10u1_armhf.deb ... Unpacking libmagic-mgc (1:5.35-4+deb10u1) ... Selecting previously unselected package libmagic1:armhf. Preparing to unpack .../03-libmagic1_1%3a5.35-4+deb10u1_armhf.deb ... Unpacking libmagic1:armhf (1:5.35-4+deb10u1) ... Selecting previously unselected package file. Preparing to unpack .../04-file_1%3a5.35-4+deb10u1_armhf.deb ... Unpacking file (1:5.35-4+deb10u1) ... Selecting previously unselected package gettext-base. Preparing to unpack .../05-gettext-base_0.19.8.1-9_armhf.deb ... Unpacking gettext-base (0.19.8.1-9) ... Selecting previously unselected package python3-lib2to3. Preparing to unpack .../06-python3-lib2to3_3.7.3-1_all.deb ... Unpacking python3-lib2to3 (3.7.3-1) ... Selecting previously unselected package 2to3. Preparing to unpack .../07-2to3_3.7.3-1_all.deb ... Unpacking 2to3 (3.7.3-1) ... Selecting previously unselected package libsigsegv2:armhf. Preparing to unpack .../08-libsigsegv2_2.12-2_armhf.deb ... Unpacking libsigsegv2:armhf (2.12-2) ... Selecting previously unselected package m4. Preparing to unpack .../09-m4_1.4.18-2_armhf.deb ... Unpacking m4 (1.4.18-2) ... Selecting previously unselected package autoconf. Preparing to unpack .../10-autoconf_2.69-11_all.deb ... Unpacking autoconf (2.69-11) ... Selecting previously unselected package autotools-dev. Preparing to unpack .../11-autotools-dev_20180224.1_all.deb ... Unpacking autotools-dev (20180224.1) ... Selecting previously unselected package automake. Preparing to unpack .../12-automake_1%3a1.16.1-4_all.deb ... Unpacking automake (1:1.16.1-4) ... Selecting previously unselected package autopoint. Preparing to unpack .../13-autopoint_0.19.8.1-9_all.deb ... Unpacking autopoint (0.19.8.1-9) ... Selecting previously unselected package libtool. Preparing to unpack .../14-libtool_2.4.6-9_all.deb ... Unpacking libtool (2.4.6-9) ... Selecting previously unselected package dh-autoreconf. Preparing to unpack .../15-dh-autoreconf_19_all.deb ... Unpacking dh-autoreconf (19) ... Selecting previously unselected package libarchive-zip-perl. Preparing to unpack .../16-libarchive-zip-perl_1.64-1_all.deb ... Unpacking libarchive-zip-perl (1.64-1) ... Selecting previously unselected package libfile-stripnondeterminism-perl. Preparing to unpack .../17-libfile-stripnondeterminism-perl_1.1.2-1_all.deb ... Unpacking libfile-stripnondeterminism-perl (1.1.2-1) ... Selecting previously unselected package dh-strip-nondeterminism. Preparing to unpack .../18-dh-strip-nondeterminism_1.1.2-1_all.deb ... Unpacking dh-strip-nondeterminism (1.1.2-1) ... Selecting previously unselected package libelf1:armhf. Preparing to unpack .../19-libelf1_0.176-1.1_armhf.deb ... Unpacking libelf1:armhf (0.176-1.1) ... Selecting previously unselected package dwz. Preparing to unpack .../20-dwz_0.12-3_armhf.deb ... Unpacking dwz (0.12-3) ... Selecting previously unselected package libglib2.0-0:armhf. Preparing to unpack .../21-libglib2.0-0_2.58.3-2+deb10u2_armhf.deb ... Unpacking libglib2.0-0:armhf (2.58.3-2+deb10u2) ... Selecting previously unselected package libicu63:armhf. Preparing to unpack .../22-libicu63_63.1-6+deb10u1_armhf.deb ... Unpacking libicu63:armhf (63.1-6+deb10u1) ... Selecting previously unselected package libxml2:armhf. Preparing to unpack .../23-libxml2_2.9.4+dfsg1-7+b3_armhf.deb ... Unpacking libxml2:armhf (2.9.4+dfsg1-7+b3) ... Selecting previously unselected package libcroco3:armhf. Preparing to unpack .../24-libcroco3_0.6.12-3_armhf.deb ... Unpacking libcroco3:armhf (0.6.12-3) ... Selecting previously unselected package libncurses6:armhf. Preparing to unpack .../25-libncurses6_6.1+20181013-2+deb10u2_armhf.deb ... Unpacking libncurses6:armhf (6.1+20181013-2+deb10u2) ... Selecting previously unselected package gettext. Preparing to unpack .../26-gettext_0.19.8.1-9_armhf.deb ... Unpacking gettext (0.19.8.1-9) ... Selecting previously unselected package intltool-debian. Preparing to unpack .../27-intltool-debian_0.35.0+20060710.5_all.deb ... Unpacking intltool-debian (0.35.0+20060710.5) ... Selecting previously unselected package po-debconf. Preparing to unpack .../28-po-debconf_1.0.21_all.deb ... Unpacking po-debconf (1.0.21) ... Selecting previously unselected package debhelper. Preparing to unpack .../29-debhelper_12.1.1_all.deb ... Unpacking debhelper (12.1.1) ... Selecting previously unselected package python3-distutils. Preparing to unpack .../30-python3-distutils_3.7.3-1_all.deb ... Unpacking python3-distutils (3.7.3-1) ... Selecting previously unselected package dh-python. Preparing to unpack .../31-dh-python_3.20190308_all.deb ... Unpacking dh-python (3.20190308) ... Selecting previously unselected package python-all. Preparing to unpack .../32-python-all_2.7.16-1_armhf.deb ... Unpacking python-all (2.7.16-1) ... Selecting previously unselected package python-pkg-resources. Preparing to unpack .../33-python-pkg-resources_40.8.0-1_all.deb ... Unpacking python-pkg-resources (40.8.0-1) ... Selecting previously unselected package python-setuptools. Preparing to unpack .../34-python-setuptools_40.8.0-1_all.deb ... Unpacking python-setuptools (40.8.0-1) ... Selecting previously unselected package python3-all. Preparing to unpack .../35-python3-all_3.7.3-1_armhf.deb ... Unpacking python3-all (3.7.3-1) ... Selecting previously unselected package python3-pkg-resources. Preparing to unpack .../36-python3-pkg-resources_40.8.0-1_all.deb ... Unpacking python3-pkg-resources (40.8.0-1) ... Selecting previously unselected package python3-setuptools. Preparing to unpack .../37-python3-setuptools_40.8.0-1_all.deb ... Unpacking python3-setuptools (40.8.0-1) ... Setting up libpipeline1:armhf (1.5.1-2) ... Setting up mime-support (3.62) ... Setting up libmagic-mgc (1:5.35-4+deb10u1) ... Setting up libarchive-zip-perl (1.64-1) ... Setting up libglib2.0-0:armhf (2.58.3-2+deb10u2) ... No schema files found: doing nothing. Setting up libmagic1:armhf (1:5.35-4+deb10u1) ... Setting up gettext-base (0.19.8.1-9) ... Setting up file (1:5.35-4+deb10u1) ... Setting up libicu63:armhf (63.1-6+deb10u1) ... Setting up autotools-dev (20180224.1) ... Setting up libncurses6:armhf (6.1+20181013-2+deb10u2) ... Setting up libsigsegv2:armhf (2.12-2) ... Setting up autopoint (0.19.8.1-9) ... Setting up sensible-utils (0.0.12) ... Setting up libuchardet0:armhf (0.0.6-3) ... Setting up libmpdec2:armhf (2.4.2-2) ... Setting up libbsd0:armhf (0.9.1-2) ... Setting up libelf1:armhf (0.176-1.1) ... Setting up readline-common (7.0-5) ... Setting up libxml2:armhf (2.9.4+dfsg1-7+b3) ... Setting up libreadline7:armhf (7.0-5) ... Setting up libfile-stripnondeterminism-perl (1.1.2-1) ... Setting up libpython3.7-stdlib:armhf (3.7.3-2+deb10u1) ... Setting up libtool (2.4.6-9) ... Setting up m4 (1.4.18-2) ... Setting up libpython2.7-stdlib:armhf (2.7.16-2+deb10u1) ... Setting up bsdmainutils (11.1.2+b1) ... update-alternatives: using /usr/bin/bsd-write to provide /usr/bin/write (write) in auto mode update-alternatives: using /usr/bin/bsd-from to provide /usr/bin/from (from) in auto mode Setting up libcroco3:armhf (0.6.12-3) ... Setting up autoconf (2.69-11) ... Setting up dwz (0.12-3) ... Setting up groff-base (1.22.4-3) ... Setting up libpython3-stdlib:armhf (3.7.3-1) ... Setting up automake (1:1.16.1-4) ... update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (automake) in auto mode Setting up python3.7 (3.7.3-2+deb10u1) ... Setting up gettext (0.19.8.1-9) ... Setting up python2.7 (2.7.16-2+deb10u1) ... Setting up libpython2-stdlib:armhf (2.7.16-1) ... Setting up python3 (3.7.3-1) ... Setting up man-db (2.8.5-2) ... Not building database; man-db/auto-update is not 'true'. Setting up python2 (2.7.16-1) ... Setting up intltool-debian (0.35.0+20060710.5) ... Setting up libpython-stdlib:armhf (2.7.16-1) ... Setting up python3-lib2to3 (3.7.3-1) ... Setting up python (2.7.16-1) ... Setting up python3-pkg-resources (40.8.0-1) ... Setting up python3-distutils (3.7.3-1) ... Setting up dh-python (3.20190308) ... Setting up python3-setuptools (40.8.0-1) ... Setting up python-pkg-resources (40.8.0-1) ... Setting up po-debconf (1.0.21) ... Setting up python3-all (3.7.3-1) ... Setting up python-all (2.7.16-1) ... Setting up 2to3 (3.7.3-1) ... Setting up python-setuptools (40.8.0-1) ... Setting up dh-autoreconf (19) ... Setting up debhelper (12.1.1) ... Setting up dh-strip-nondeterminism (1.1.2-1) ... Processing triggers for libc-bin (2.28-10) ... Reading package lists... Building dependency tree... Reading state information... Reading extended state information... Initializing package states... Writing extended state information... Building tag database... -> Finished parsing the build-deps I: Building the package I: Running cd /build/python-dsv-1.4.1/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b dpkg-buildpackage: info: source package python-dsv dpkg-buildpackage: info: source version 1.4.1-7 dpkg-buildpackage: info: source distribution unstable dpkg-buildpackage: info: source changed by Aaron M. Ucko dpkg-source --before-build . dpkg-buildpackage: info: host architecture armhf debian/rules clean dh clean --with python2,python3 --buildsystem=pybuild debian/rules override_dh_auto_clean make[1]: Entering directory '/build/python-dsv-1.4.1' [ ! -f DSV/DSV.py.bak ] || mv -v DSV/DSV.py.bak DSV/DSV.py dh_auto_clean I: pybuild base:217: python2.7 setup.py clean running clean removing '/build/python-dsv-1.4.1/.pybuild/cpython2_2.7_dsv/build' (and everything under it) 'build/bdist.linux-armhf' does not exist -- can't clean it 'build/scripts-2.7' does not exist -- can't clean it I: pybuild base:217: python3.7 setup.py clean running clean removing '/build/python-dsv-1.4.1/.pybuild/cpython3_3.7_dsv/build' (and everything under it) 'build/bdist.linux-armhf' does not exist -- can't clean it 'build/scripts-3.7' does not exist -- can't clean it make[1]: Leaving directory '/build/python-dsv-1.4.1' dh_clean -O--buildsystem=pybuild debian/rules binary dh binary --with python2,python3 --buildsystem=pybuild dh_update_autotools_config -O--buildsystem=pybuild dh_auto_configure -O--buildsystem=pybuild I: pybuild base:217: python2.7 setup.py config running config I: pybuild base:217: python3.7 setup.py config running config dh_auto_build -O--buildsystem=pybuild I: pybuild base:217: /usr/bin/python setup.py build running build running build_py creating /build/python-dsv-1.4.1/.pybuild/cpython2_2.7_dsv/build/DSV copying DSV/DSV.py -> /build/python-dsv-1.4.1/.pybuild/cpython2_2.7_dsv/build/DSV copying DSV/__init__.py -> /build/python-dsv-1.4.1/.pybuild/cpython2_2.7_dsv/build/DSV I: pybuild pybuild:272: 2to3 -w DSV/DSV.py RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: Refactored DSV/DSV.py --- DSV/DSV.py (original) +++ DSV/DSV.py (refactored) @@ -130,6 +130,7 @@ import copy import exceptions import string +from functools import reduce ## RedHat 8.0 (or rather GTK2?) sets LANG = en_us.UTF-8 and apparently some ## older apps (including wxGTK) can't handle this. The fix is to set LANG=C ## before running the app. Thanks to Ahmad Baitalmal for supplying this info. @@ -147,10 +148,10 @@ except ImportError: wx = None -class InvalidDelimiter(exceptions.StandardError): pass -class InvalidTextQualifier(exceptions.StandardError): pass -class InvalidData(exceptions.StandardError): pass -class InvalidNumberOfColumns(exceptions.StandardError): pass +class InvalidDelimiter(exceptions.Exception): pass +class InvalidTextQualifier(exceptions.Exception): pass +class InvalidData(exceptions.Exception): pass +class InvalidNumberOfColumns(exceptions.Exception): pass # ------------------------------------------------------------------------------ def guessTextQualifier(input): @@ -177,7 +178,7 @@ regexp = re.compile('(?:(?:^|\n)(?P["\']).*?(?P=b_quote))|' '(?:(?P.)(?P["\']).*?(?P=quote)(?=(?P=delim)|\n))|' '(?:(?P["\']).*?(?P=e_quote)$)', re.M | re.S) - matches = filter(lambda i: reduce(lambda a, b: a + b, i), regexp.findall(data)) + matches = [i for i in regexp.findall(data) if reduce(lambda a, b: a + b, i)] if not matches: return None quotes = {} @@ -189,7 +190,7 @@ quotes[key] = quotes.get(key, 0) + 1 return reduce(lambda a, b, quotes = quotes: - (quotes[a] > quotes[b]) and a or b, quotes.keys()) + (quotes[a] > quotes[b]) and a or b, list(quotes.keys())) # ------------------------------------------------------------------------------ def guessDelimiter(input, textQualifier = '"'): @@ -248,8 +249,8 @@ metafrequency[freq] = metafrequency.get(freq, 0) + 1 # value is the mode charFrequency[char] = metafrequency - for char in charFrequency.keys(): - items = charFrequency[char].items() + for char in list(charFrequency.keys()): + items = list(charFrequency[char].items()) if len(items) == 1 and items[0][0] == 0: continue # get the mode of the frequencies if len(items) > 1: @@ -262,7 +263,7 @@ modes[char] = items[0] # build a list of possible delimiters - modeList = modes.items() + modeList = list(modes.items()) total = float(chunkLength * iteration) consistency = 1.0 # (rows of consistent data) / (number of rows) = 100% threshold = 0.9 # minimum consistency threshold @@ -274,7 +275,7 @@ consistency -= 0.01 if len(delims) == 1: - return delims.keys()[0] + return list(delims.keys())[0] # analyze another chunkLength lines start = end @@ -289,20 +290,20 @@ regexp = re.compile('%s(.*?)%s' % (textQualifier, textQualifier), re.S) for line in input: inQuotes = "".join(regexp.findall(line)) - for d in delims.keys(): + for d in list(delims.keys()): if not d in inQuotes: del delims[d] if len(delims) == 1: - return delims.keys()[0] + return list(delims.keys())[0] # if there's *still* more than one, fall back to a 'preferred' list if len(delims) > 1: for d in ['\t', ',', ';', ' ', ':']: - if d in delims.keys(): + if d in list(delims.keys()): return d # finally, just return the first damn character in the list - return delims.keys()[0] + return list(delims.keys())[0] # ------------------------------------------------------------------------------ def modeOfLengths(input): @@ -321,7 +322,7 @@ l = len(row) freq[l] = freq.get(l, 0) + 1 - return reduce(lambda a, b, freq = freq: (freq[a] > freq[b]) and a or b, freq.keys()) + return reduce(lambda a, b, freq = freq: (freq[a] > freq[b]) and a or b, list(freq.keys())) # ------------------------------------------------------------------------------ def guessHeaders(input, columns = 0): @@ -345,7 +346,7 @@ # Finally, a 'vote' is taken at the end for each column, adding or subtracting from # the likelihood of the first row being a header. - if type(input) != type([]): raise InvalidData, "list expected." + if type(input) != type([]): raise InvalidData("list expected.") if len(input) < 2: return 0 if not columns: @@ -357,7 +358,7 @@ for row in input[1:]: if len(row) != columns: continue # skip rows that have irregular number of columns - for col in columnTypes.keys(): + for col in list(columnTypes.keys()): try: try: # is it a built-in type (besides string)? @@ -378,7 +379,7 @@ # finally, compare results against first row and vote on whether it's a header hasHeader = 0 - for col, colType in columnTypes.items(): + for col, colType in list(columnTypes.items()): if type(colType) == type(0): # it's a length if len(input[0][col]) != colType: hasHeader += 1 @@ -431,7 +432,7 @@ # filter out empty lines # data = filter(lambda i: "".join(i), data) - data = filter(string.join, data) + data = list(filter(string.join, data)) return data # ------------------------------------------------------------------------------ @@ -486,15 +487,15 @@ list of lists of data """ if type(input) != type([]): - raise InvalidData, "expected list of lists of strings" + raise InvalidData("expected list of lists of strings") # Try to convert Unicode delimiters back to ASCII (wxPython can be # overenthusiastic), but ultimately support either. try: delimiter = delimiter.encode() except: pass - if (type(delimiter) != str and type(delimiter) != unicode) or not delimiter: - raise InvalidDelimiter, `delimiter` + if (type(delimiter) != str and type(delimiter) != str) or not delimiter: + raise InvalidDelimiter(repr(delimiter)) ## if textQualifier: ## # fieldRex=re.compile('(?:(?:[,]|^)"(.*?)"(?=[,]|$))|(?:(?:[,]|^)([^",]*?)(?=[,]|$))') @@ -561,10 +562,10 @@ record.append(accu) else: #record = map(lambda x: x.strip(), line.split(delimiter)) - record = map(string.strip, line.split(delimiter)) + record = list(map(string.strip, line.split(delimiter))) if stripall: # 1.4.1 - record = map(string.strip, record) + record = list(map(string.strip, record)) newdata.append(record) # (end of replacement code) @@ -582,18 +583,18 @@ maxColumns = max([len(line) for line in newdata]) # consistency check - for record in xrange(len(newdata)): + for record in range(len(newdata)): length = len(newdata[record]) difference = length - columns if difference: if errorHandler is None: - raise InvalidNumberOfColumns, "Expected %d, got %d" % (columns, length) + raise InvalidNumberOfColumns("Expected %d, got %d" % (columns, length)) else: newdata[record] = errorHandler(record, input[record], newdata[record], columns, maxColumns) # remove null values from data # newdata = filter(lambda i: i, newdata) - newdata = filter(None, newdata) + newdata = [_f for _f in newdata if _f] return newdata @@ -618,19 +619,19 @@ if not textQualifier or type(delimiter) != type(''): raise InvalidTextQualifier # double-up all text qualifiers in data (i.e. can't becomes can''t) - data = map(lambda i, q = textQualifier: - map(lambda j, q = q: str(j).replace(q, q * 2), i), - input) RefactoringTool: Files that were modified: RefactoringTool: DSV/DSV.py + data = list(map(lambda i, q = textQualifier: + list(map(lambda j, q = q: str(j).replace(q, q * 2), i)), + input)) if quoteall: # quote every data value - data = map(lambda i, q = textQualifier: - map(lambda j, q = q: q + j + q, i), - data) + data = list(map(lambda i, q = textQualifier: + list(map(lambda j, q = q: q + j + q, i)), + data)) else: # quote only the values that contain qualifiers, delimiters or newlines - data = map(lambda i, q = textQualifier, d = delimiter: - map(lambda j, q = q, d = d: ((j.find(q) != -1 or j.find(d) != -1 + data = list(map(lambda i, q = textQualifier, d = delimiter: + list(map(lambda j, q = q, d = d: ((j.find(q) != -1 or j.find(d) != -1 or j.find('\n') != -1) - and (q + j + q)) or j, i), data) + and (q + j + q)) or j, i)), data)) # assemble each line with delimiters data = [delimiter.join(line) for line in data] @@ -718,7 +719,7 @@ self.delimChecks = {} - for label, value in delims.items(): + for label, value in list(delims.items()): self.delimChecks[value] = wx.CheckBox(self, -1, label) delimGridSizer.Add(self.delimChecks[value], 0, wx.ALL, 3) wx.EVT_CHECKBOX(self, self.delimChecks[value].GetId(), self.Validate) @@ -731,7 +732,7 @@ self.otherDelim = wx.TextCtrl(self, -1, size = (20, -1)) wx.EVT_TEXT(self, self.otherDelim.GetId(), self.OnCustomDelim) - if self.delimChecks.has_key(delimiter): + if delimiter in self.delimChecks: self.delimChecks[delimiter].SetValue(True) elif delimiter is not None: self.delimChecks['Other'].SetValue(True) @@ -860,7 +861,7 @@ self.BuildPreview() def Validate(self, event = None): - hasDelimiter = reduce(lambda a, b: a + b, [cb.GetValue() for cb in self.delimChecks.values()]) + hasDelimiter = reduce(lambda a, b: a + b, [cb.GetValue() for cb in list(self.delimChecks.values())]) if hasDelimiter == 1 and self.delimChecks['Other'].GetValue(): hasDelimiter = self.otherDelim.GetValue() != "" self.BuildPreview() @@ -881,8 +882,8 @@ textQualifier = self.textQualifierChoice.GetStringSelection() if textQualifier == '{None}': textQualifier = None other = self.otherDelim.GetValue() - delimiter = map(lambda i, other = other: i[0] != 'Other' and i[0] or other, - filter(lambda i: i[1].GetValue(), self.delimChecks.items())) + delimiter = list(map(lambda i, other = other: i[0] != 'Other' and i[0] or other, + [i for i in list(self.delimChecks.items()) if i[1].GetValue()])) delimiter = "".join(delimiter) rows = self.previewRows.GetValue() @@ -893,8 +894,8 @@ textQualifier = textQualifier, delimiter = delimiter, errorHandler = padRow) - except InvalidDelimiter, e: - previewData = map(lambda i: [i], newdata[:rows]) + except InvalidDelimiter as e: + previewData = [[i] for i in newdata[:rows]] rows = min(rows, len(previewData)) hasHeaders = self.hasHeaderRow.GetValue() @@ -1042,9 +1043,9 @@ # ------------------------------------------------------------------------------ if __name__ == '__main__': if wx is None: - print "\nYou need wxPython to run this sample*." - print "\n*Note that wxPython is _not_ necessary to use this module, but it is required" - print "to use the wizard dialog (which the sample requires)." + print("\nYou need wxPython to run this sample*.") + print("\n*Note that wxPython is _not_ necessary to use this module, but it is required") + print("to use the wizard dialog (which the sample requires).") raise SystemExit @@ -1073,16 +1074,16 @@ headers, data = results if 0: # print the output to stdout if headers: - print headers - print 80*'=' + print(headers) + print(80*'=') for row in data: - print row + print(row) if 0: # for testing export functionality if headers: - print exportDSV([headers] + data) + print(exportDSV([headers] + data)) else: - print exportDSV(data) + print(exportDSV(data)) else: dlg.Destroy() I: pybuild base:217: /usr/bin/python3 setup.py build running build running build_py creating /build/python-dsv-1.4.1/.pybuild/cpython3_3.7_dsv/build/DSV copying DSV/DSV.py -> /build/python-dsv-1.4.1/.pybuild/cpython3_3.7_dsv/build/DSV copying DSV/__init__.py -> /build/python-dsv-1.4.1/.pybuild/cpython3_3.7_dsv/build/DSV dh_auto_test -O--buildsystem=pybuild I: pybuild base:217: cd /build/python-dsv-1.4.1/.pybuild/cpython2_2.7_dsv/build; python2.7 -m unittest discover -v ---------------------------------------------------------------------- Ran 0 tests in 0.000s OK I: pybuild base:217: cd /build/python-dsv-1.4.1/.pybuild/cpython3_3.7_dsv/build; python3.7 -m unittest discover -v ---------------------------------------------------------------------- Ran 0 tests in 0.000s OK dh_testroot -O--buildsystem=pybuild dh_prep -O--buildsystem=pybuild dh_auto_install -O--buildsystem=pybuild I: pybuild base:217: /usr/bin/python setup.py install --root /build/python-dsv-1.4.1/debian/python-dsv running install running build running build_py copying DSV/DSV.py -> /build/python-dsv-1.4.1/.pybuild/cpython2_2.7_dsv/build/DSV running install_lib creating /build/python-dsv-1.4.1/debian/python-dsv/usr creating /build/python-dsv-1.4.1/debian/python-dsv/usr/lib creating /build/python-dsv-1.4.1/debian/python-dsv/usr/lib/python2.7 creating /build/python-dsv-1.4.1/debian/python-dsv/usr/lib/python2.7/dist-packages creating /build/python-dsv-1.4.1/debian/python-dsv/usr/lib/python2.7/dist-packages/DSV copying /build/python-dsv-1.4.1/.pybuild/cpython2_2.7_dsv/build/DSV/DSV.py -> /build/python-dsv-1.4.1/debian/python-dsv/usr/lib/python2.7/dist-packages/DSV copying /build/python-dsv-1.4.1/.pybuild/cpython2_2.7_dsv/build/DSV/__init__.py -> /build/python-dsv-1.4.1/debian/python-dsv/usr/lib/python2.7/dist-packages/DSV byte-compiling /build/python-dsv-1.4.1/debian/python-dsv/usr/lib/python2.7/dist-packages/DSV/DSV.py to DSV.pyc byte-compiling /build/python-dsv-1.4.1/debian/python-dsv/usr/lib/python2.7/dist-packages/DSV/__init__.py to __init__.pyc running install_egg_info Writing /build/python-dsv-1.4.1/debian/python-dsv/usr/lib/python2.7/dist-packages/DSV-1.4.1.egg-info I: pybuild base:217: /usr/bin/python3 setup.py install --root /build/python-dsv-1.4.1/debian/python3-dsv running install running build running build_py running install_lib creating /build/python-dsv-1.4.1/debian/python3-dsv/usr creating /build/python-dsv-1.4.1/debian/python3-dsv/usr/lib creating /build/python-dsv-1.4.1/debian/python3-dsv/usr/lib/python3.7 creating /build/python-dsv-1.4.1/debian/python3-dsv/usr/lib/python3.7/dist-packages creating /build/python-dsv-1.4.1/debian/python3-dsv/usr/lib/python3.7/dist-packages/DSV copying /build/python-dsv-1.4.1/.pybuild/cpython3_3.7_dsv/build/DSV/DSV.py -> /build/python-dsv-1.4.1/debian/python3-dsv/usr/lib/python3.7/dist-packages/DSV copying /build/python-dsv-1.4.1/.pybuild/cpython3_3.7_dsv/build/DSV/__init__.py -> /build/python-dsv-1.4.1/debian/python3-dsv/usr/lib/python3.7/dist-packages/DSV creating /build/python-dsv-1.4.1/debian/python3-dsv/usr/lib/python3.7/dist-packages/DSV/__pycache__ copying /build/python-dsv-1.4.1/.pybuild/cpython3_3.7_dsv/build/DSV/__pycache__/__init__.cpython-37.pyc -> /build/python-dsv-1.4.1/debian/python3-dsv/usr/lib/python3.7/dist-packages/DSV/__pycache__ byte-compiling /build/python-dsv-1.4.1/debian/python3-dsv/usr/lib/python3.7/dist-packages/DSV/DSV.py to DSV.cpython-37.pyc byte-compiling /build/python-dsv-1.4.1/debian/python3-dsv/usr/lib/python3.7/dist-packages/DSV/__init__.py to __init__.cpython-37.pyc running install_egg_info Writing /build/python-dsv-1.4.1/debian/python3-dsv/usr/lib/python3.7/dist-packages/DSV-1.4.1.egg-info dh_installdocs -O--buildsystem=pybuild dh_installchangelogs -O--buildsystem=pybuild dh_python2 -O--buildsystem=pybuild dh_python3 -O--buildsystem=pybuild dh_installinit -O--buildsystem=pybuild dh_perl -O--buildsystem=pybuild dh_link -O--buildsystem=pybuild dh_strip_nondeterminism -O--buildsystem=pybuild dh_compress -O--buildsystem=pybuild dh_fixperms -O--buildsystem=pybuild dh_missing -O--buildsystem=pybuild dh_installdeb -O--buildsystem=pybuild dh_gencontrol -O--buildsystem=pybuild dpkg-gencontrol: warning: Provides field of package python3-dsv: substitution variable ${python3:Provides} used, but is not defined dpkg-gencontrol: warning: package python-dsv: substitution variable ${python:Versions} unused, but is defined dh_md5sums -O--buildsystem=pybuild dh_builddeb -O--buildsystem=pybuild dpkg-deb: building package 'python-dsv' in '../python-dsv_1.4.1-7_all.deb'. dpkg-deb: building package 'python3-dsv' in '../python3-dsv_1.4.1-7_all.deb'. dpkg-genbuildinfo --build=binary dpkg-genchanges --build=binary >../python-dsv_1.4.1-7_armhf.changes dpkg-genchanges: info: binary-only upload (no source code included) dpkg-source --after-build . dpkg-buildpackage: info: binary-only upload (no source included) I: copying local configuration I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env I: removing directory /srv/workspace/pbuilder/21406 and its subdirectories I: Current time: Fri May 22 12:14:18 -12 2020 I: pbuilder-time-stamp: 1590192858 Sat May 23 00:14:24 UTC 2020 I: 1st build successful. Starting 2nd build on remote node cbxi4b-armhf-rb.debian.net. Sat May 23 00:14:24 UTC 2020 I: Preparing to do remote build '2' on cbxi4b-armhf-rb.debian.net. Sat May 23 00:22:14 UTC 2020 I: Deleting $TMPDIR on cbxi4b-armhf-rb.debian.net. Sat May 23 00:22:17 UTC 2020 I: python-dsv_1.4.1-7_armhf.changes: Format: 1.8 Date: Tue, 26 Feb 2019 21:55:29 -0500 Source: python-dsv Binary: python-dsv python3-dsv Architecture: all Version: 1.4.1-7 Distribution: unstable Urgency: medium Maintainer: Debian Python Modules Team Changed-By: Aaron M. Ucko Description: python-dsv - Python module for delimiter-separated-value files (Python 2) python3-dsv - Python module for delimiter-separated-value files (Python 3) Changes: python-dsv (1.4.1-7) unstable; urgency=medium . [ Ondřej Nový ] * d/control: Set Vcs-* to salsa.debian.org * Convert git repository from git-dpm to gbp layout * d/watch: Use https protocol . [ Aaron M. Ucko ] * debian/control: Standards-Version: 4.3.0 (already compliant). Checksums-Sha1: c9640b2b2c1ff7b91374d102e04e2b7380584ba6 18312 python-dsv_1.4.1-7_all.deb 4e10d78f8e6e10fe9c166b60d796f85a8d6c7bc2 5537 python-dsv_1.4.1-7_armhf.buildinfo dfd3100f2a1de2eaf12543da6e5a9fb39018bd46 18072 python3-dsv_1.4.1-7_all.deb Checksums-Sha256: 47d7f42f9061286de19bc54838ae6e510c9778120838c68160de04ba5afc1559 18312 python-dsv_1.4.1-7_all.deb 9d060ca8e57bae31c77e77d9883dda47c8b9b2f7e8936d6acf6745f06b1edd0b 5537 python-dsv_1.4.1-7_armhf.buildinfo 83c40bb15cfd0702f8e7a34c325aff0bb5be96c5dac09840ff6b9f8e0b5556ce 18072 python3-dsv_1.4.1-7_all.deb Files: e93b4734b5887be559f0d35028fccc5f 18312 python optional python-dsv_1.4.1-7_all.deb 98e37abb1b0ed1050ba20e27c602b57b 5537 python optional python-dsv_1.4.1-7_armhf.buildinfo a2b83a21772528f2fe34506a2ec07be9 18072 python optional python3-dsv_1.4.1-7_all.deb Sat May 23 00:22:18 UTC 2020 I: diffoscope 144 will be used to compare the two builds: # Profiling output for: /usr/bin/diffoscope --html /srv/reproducible-results/rbuild-debian/tmp.jvqxqeCycQ/python-dsv_1.4.1-7.diffoscope.html --text /srv/reproducible-results/rbuild-debian/tmp.jvqxqeCycQ/python-dsv_1.4.1-7.diffoscope.txt --json /srv/reproducible-results/rbuild-debian/tmp.jvqxqeCycQ/python-dsv_1.4.1-7.diffoscope.json --profile=- /srv/reproducible-results/rbuild-debian/tmp.jvqxqeCycQ/b1/python-dsv_1.4.1-7_armhf.changes /srv/reproducible-results/rbuild-debian/tmp.jvqxqeCycQ/b2/python-dsv_1.4.1-7_armhf.changes ## command (total time: 0.000s) 0.000s 1 call cmp (internal) ## has_same_content_as (total time: 0.000s) 0.000s 1 call abc.DotChangesFile ## main (total time: 0.276s) 0.276s 2 calls outputs 0.000s 1 call cleanup ## recognizes (total time: 0.034s) 0.034s 10 calls diffoscope.comparators.binary.FilesystemFile Sat May 23 00:29:55 UTC 2020 I: diffoscope 144 found no differences in the changes files, and a .buildinfo file also exists. Sat May 23 00:29:55 UTC 2020 I: python-dsv from buster built successfully and reproducibly on armhf. Sat May 23 00:29:58 UTC 2020 I: Submitting .buildinfo files to external archives: Sat May 23 00:29:58 UTC 2020 I: Submitting 8.0K b1/python-dsv_1.4.1-7_armhf.buildinfo.asc Sat May 23 00:29:59 UTC 2020 I: Submitting 8.0K b2/python-dsv_1.4.1-7_armhf.buildinfo.asc Sat May 23 00:30:00 UTC 2020 I: Done submitting .buildinfo files to http://buildinfo.debian.net/api/submit. Sat May 23 00:30:00 UTC 2020 I: Done submitting .buildinfo files. Sat May 23 00:30:00 UTC 2020 I: Removing signed python-dsv_1.4.1-7_armhf.buildinfo.asc files: removed './b1/python-dsv_1.4.1-7_armhf.buildinfo.asc' removed './b2/python-dsv_1.4.1-7_armhf.buildinfo.asc'