Sat Jul 13 12:11:14 UTC 2024 I: starting to build python-dsv/bullseye/amd64 on jenkins on '2024-07-13 12:10' Sat Jul 13 12:11:14 UTC 2024 I: The jenkins build log is/was available at https://jenkins.debian.net/userContent/reproducible/debian/build_service/amd64_34/18673/console.log Sat Jul 13 12:11:14 UTC 2024 I: Downloading source for bullseye/python-dsv=1.4.1-11 --2024-07-13 12:11:15-- http://cdn-fastly.deb.debian.org/debian/pool/main/p/python-dsv/python-dsv_1.4.1-11.dsc Connecting to 46.16.76.132:3128... connected. Proxy request sent, awaiting response... 200 OK Length: 2141 (2.1K) [text/prs.lines.tag] Saving to: ‘python-dsv_1.4.1-11.dsc’ 0K .. 100% 305M=0s 2024-07-13 12:11:15 (305 MB/s) - ‘python-dsv_1.4.1-11.dsc’ saved [2141/2141] Sat Jul 13 12:11:15 UTC 2024 I: python-dsv_1.4.1-11.dsc -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Format: 3.0 (quilt) Source: python-dsv Binary: python3-dsv Architecture: all Version: 1.4.1-11 Maintainer: Debian Python Team Uploaders: Aaron M. Ucko Homepage: http://python-dsv.sourceforge.net/ Standards-Version: 4.5.1 Vcs-Browser: https://salsa.debian.org/python-team/packages/python-dsv Vcs-Git: https://salsa.debian.org/python-team/packages/python-dsv.git Testsuite: autopkgtest-pkg-python Build-Depends: 2to3, debhelper-compat (= 13), dh-python, python3-all, python3-setuptools Package-List: python3-dsv deb python optional arch=all Checksums-Sha1: 4cfdb824c5f66a8488f3fc8e441d54f23e0405f1 14682 python-dsv_1.4.1.orig.tar.gz 987d9b47d8e97da69e42bc0ac2ed7c70ec73b4cd 10404 python-dsv_1.4.1-11.debian.tar.xz Checksums-Sha256: 5d0ec99c45f8ea91ea920dcd2cdf2cdc9e721985551ea80718519ce70dc98f15 14682 python-dsv_1.4.1.orig.tar.gz 95f724c0b2ee71b303de93fa79c489a3623f25ed5307d17090fc915b7cba8748 10404 python-dsv_1.4.1-11.debian.tar.xz Files: f666d6956292f8be3fce0cccd21e6ab0 14682 python-dsv_1.4.1.orig.tar.gz c118a0e534683c179a0efbcf4bc9032e 10404 python-dsv_1.4.1-11.debian.tar.xz Dgit: 7b21ea72756b9e6602c539a9d7344a6290d17db1 debian archive/debian/1.4.1-11 https://git.dgit.debian.org/python-dsv -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEfDq5z9IwvTDdAJxZHnCRsfFKZKIFAmAjUFUACgkQHnCRsfFK ZKKndg/7BXHN+2Jt+TZFCm1BuvVerPweklaNMJPvfMwmBZPgkfP8FZNNMAMP2mlj BvVFeiDVWRWMMovw2xEqCIEM9+3H5WUqS8zPzIwhl/2TXqieEaDxrNPgHemz7jbr oRgh7/+J0Zh/ftIXasX/A4IcJ29l+CZqrW2AedvNLgD2SveHfgTh0s2d1QcFq9mZ Tuaqmvxgg0kW1MF30ulZXHFCpjbJiAse750hM4hQtNj9B5wzQ85VT0Wb8+WVBs3O HdY54WzU0dVHqJMF17XT2Fr7B4GcqjpY46F6XANVhvt+iOWpEZGEym1JE2ctoRK4 B1zPRaLGcmeOZ4VlDWHUGYFLSiU3VuLkocjeob+uFFyAvtFYEeEBoy0f2hVKRSia MF+a1UQH+QXO/OcRHDWPsYho20tHnUlGud/1cH3lNGi7ISYv6DDMY6yg/szpwWr+ kPHZxry+c+yOBOKq1lBRlyp53BB6mIlZxW4PPUen+5YPdIkur7OLz09ghpOKLhcZ t7lQ380imPJH62BoVSnupoIhcNOZnO40pZS+jcgAIz8s7PqM/G71WPGs4ywVIzQn C/sSUyV7y9Cilvvn/VOLwM3Bjp1UYfGeX+7z/hk5JXHcMXSapXBZgn5rfgLbBV7I ILPAPuC/gzTkhny7C8BKJ4a0M8nYdlj+J9XY5k2LvjhpKXZs+GM= =xSqO -----END PGP SIGNATURE----- Sat Jul 13 12:11:15 UTC 2024 I: Checking whether the package is not for us Sat Jul 13 12:11:15 UTC 2024 I: Starting 1st build on remote node infom02-amd64.debian.net. Sat Jul 13 12:11:15 UTC 2024 I: Preparing to do remote build '1' on infom02-amd64.debian.net. Sat Jul 13 12:12:19 UTC 2024 I: Deleting $TMPDIR on infom02-amd64.debian.net. I: pbuilder: network access will be disabled during build I: Current time: Fri Aug 15 06:34:17 -12 2025 I: pbuilder-time-stamp: 1755282857 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/bullseye-reproducible-base.tgz] I: copying local configuration W: --override-config is not set; not updating apt.conf Read the manpage for details. 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-11.dsc] I: copying [./python-dsv_1.4.1.orig.tar.gz] I: copying [./python-dsv_1.4.1-11.debian.tar.xz] I: Extracting source gpgv: unknown type of key resource 'trustedkeys.kbx' gpgv: keyblock resource '/tmp/dpkg-verify-sig.xI8mBdHy/trustedkeys.kbx': General error gpgv: Signature made Tue Feb 9 15:17:41 2021 -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-11.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-11.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 dpkg-source: info: applying 05-no-import-exceptions.patch I: Not using root during the build. I: Installing the build-deps I: user script /srv/workspace/pbuilder/3642572/tmp/hooks/D02_print_environment starting I: set BUILDDIR='/build/reproducible-path' BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' BUILDUSERNAME='pbuilder1' BUILD_ARCH='amd64' DEBIAN_FRONTEND='noninteractive' DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all,-fixfilepath parallel=12 ' DISTRIBUTION='bullseye' HOME='/root' HOST_ARCH='amd64' IFS=' ' INVOCATION_ID='d5822a5911c5403a83b0f9fdac75fc62' LANG='C' LANGUAGE='en_US:en' LC_ALL='C' MAIL='/var/mail/root' OPTIND='1' PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' PBCURRENTCOMMANDLINEOPERATION='build' PBUILDER_OPERATION='build' PBUILDER_PKGDATADIR='/usr/share/pbuilder' PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' PBUILDER_SYSCONFDIR='/etc' PPID='3642572' PS1='# ' PS2='> ' PS4='+ ' PWD='/' SHELL='/bin/bash' SHLVL='2' SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.Th55S6KH/pbuilderrc_ouyd --distribution bullseye --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.Th55S6KH/b1 --logfile b1/build.log python-dsv_1.4.1-11.dsc' SUDO_GID='109' SUDO_UID='104' SUDO_USER='jenkins' TERM='unknown' TZ='/usr/share/zoneinfo/Etc/GMT+12' USER='root' _='/usr/bin/systemd-run' I: uname -a Linux infom02-amd64 6.7.12+bpo-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.7.12-1~bpo12+1 (2024-05-06) x86_64 GNU/Linux I: ls -l /bin total 5476 -rwxr-xr-x 1 root root 1234376 Mar 27 2022 bash -rwxr-xr-x 3 root root 38984 Jul 20 2020 bunzip2 -rwxr-xr-x 3 root root 38984 Jul 20 2020 bzcat lrwxrwxrwx 1 root root 6 Jul 20 2020 bzcmp -> bzdiff -rwxr-xr-x 1 root root 2225 Jul 20 2020 bzdiff lrwxrwxrwx 1 root root 6 Jul 20 2020 bzegrep -> bzgrep -rwxr-xr-x 1 root root 4877 Sep 4 2019 bzexe lrwxrwxrwx 1 root root 6 Jul 20 2020 bzfgrep -> bzgrep -rwxr-xr-x 1 root root 3775 Jul 20 2020 bzgrep -rwxr-xr-x 3 root root 38984 Jul 20 2020 bzip2 -rwxr-xr-x 1 root root 18424 Jul 20 2020 bzip2recover lrwxrwxrwx 1 root root 6 Jul 20 2020 bzless -> bzmore -rwxr-xr-x 1 root root 1297 Jul 20 2020 bzmore -rwxr-xr-x 1 root root 43936 Sep 23 2020 cat -rwxr-xr-x 1 root root 72672 Sep 23 2020 chgrp -rwxr-xr-x 1 root root 64448 Sep 23 2020 chmod -rwxr-xr-x 1 root root 72672 Sep 23 2020 chown -rwxr-xr-x 1 root root 151168 Sep 23 2020 cp -rwxr-xr-x 1 root root 125560 Dec 10 2020 dash -rwxr-xr-x 1 root root 113664 Sep 23 2020 date -rwxr-xr-x 1 root root 80968 Sep 23 2020 dd -rwxr-xr-x 1 root root 93936 Sep 23 2020 df -rwxr-xr-x 1 root root 147176 Sep 23 2020 dir -rwxr-xr-x 1 root root 84440 Mar 27 2024 dmesg lrwxrwxrwx 1 root root 8 Nov 6 2019 dnsdomainname -> hostname lrwxrwxrwx 1 root root 8 Nov 6 2019 domainname -> hostname -rwxr-xr-x 1 root root 39712 Sep 23 2020 echo -rwxr-xr-x 1 root root 28 Jan 24 2023 egrep -rwxr-xr-x 1 root root 39680 Sep 23 2020 false -rwxr-xr-x 1 root root 28 Jan 24 2023 fgrep -rwxr-xr-x 1 root root 69032 Mar 27 2024 findmnt -rwsr-xr-x 1 root root 34896 Feb 26 2021 fusermount -rwxr-xr-x 1 root root 203072 Jan 24 2023 grep -rwxr-xr-x 2 root root 2346 Apr 9 2022 gunzip -rwxr-xr-x 1 root root 6447 Apr 9 2022 gzexe -rwxr-xr-x 1 root root 98048 Apr 9 2022 gzip -rwxr-xr-x 1 root root 22600 Nov 6 2019 hostname -rwxr-xr-x 1 root root 72840 Sep 23 2020 ln -rwxr-xr-x 1 root root 56952 Feb 7 2020 login -rwxr-xr-x 1 root root 147176 Sep 23 2020 ls -rwxr-xr-x 1 root root 149736 Mar 27 2024 lsblk -rwxr-xr-x 1 root root 85184 Sep 23 2020 mkdir -rwxr-xr-x 1 root root 76896 Sep 23 2020 mknod -rwxr-xr-x 1 root root 48064 Sep 23 2020 mktemp -rwxr-xr-x 1 root root 59632 Mar 27 2024 more -rwsr-xr-x 1 root root 55528 Mar 27 2024 mount -rwxr-xr-x 1 root root 18664 Mar 27 2024 mountpoint -rwxr-xr-x 1 root root 147080 Sep 23 2020 mv lrwxrwxrwx 1 root root 8 Nov 6 2019 nisdomainname -> hostname lrwxrwxrwx 1 root root 14 Dec 16 2021 pidof -> /sbin/killall5 -rwxr-xr-x 1 root root 43872 Sep 23 2020 pwd lrwxrwxrwx 1 root root 4 Mar 27 2022 rbash -> bash -rwxr-xr-x 1 root root 52032 Sep 23 2020 readlink -rwxr-xr-x 1 root root 72704 Sep 23 2020 rm -rwxr-xr-x 1 root root 52032 Sep 23 2020 rmdir -rwxr-xr-x 1 root root 27472 Sep 27 2020 run-parts -rwxr-xr-x 1 root root 122224 Dec 22 2018 sed lrwxrwxrwx 1 root root 4 Aug 9 03:47 sh -> dash -rwxr-xr-x 1 root root 43808 Sep 23 2020 sleep -rwxr-xr-x 1 root root 84928 Sep 23 2020 stty -rwsr-xr-x 1 root root 71912 Mar 27 2024 su -rwxr-xr-x 1 root root 39744 Sep 23 2020 sync -rwxr-xr-x 1 root root 531928 Jan 19 2024 tar -rwxr-xr-x 1 root root 14456 Sep 27 2020 tempfile -rwxr-xr-x 1 root root 101408 Sep 23 2020 touch -rwxr-xr-x 1 root root 39680 Sep 23 2020 true -rwxr-xr-x 1 root root 14328 Feb 26 2021 ulockmgr_server -rwsr-xr-x 1 root root 35040 Mar 27 2024 umount -rwxr-xr-x 1 root root 39744 Sep 23 2020 uname -rwxr-xr-x 2 root root 2346 Apr 9 2022 uncompress -rwxr-xr-x 1 root root 147176 Sep 23 2020 vdir -rwxr-xr-x 1 root root 63744 Mar 27 2024 wdctl lrwxrwxrwx 1 root root 8 Nov 6 2019 ypdomainname -> hostname -rwxr-xr-x 1 root root 1984 Apr 9 2022 zcat -rwxr-xr-x 1 root root 1678 Apr 9 2022 zcmp -rwxr-xr-x 1 root root 5898 Apr 9 2022 zdiff -rwxr-xr-x 1 root root 29 Apr 9 2022 zegrep -rwxr-xr-x 1 root root 29 Apr 9 2022 zfgrep -rwxr-xr-x 1 root root 2081 Apr 9 2022 zforce -rwxr-xr-x 1 root root 8049 Apr 9 2022 zgrep -rwxr-xr-x 1 root root 2206 Apr 9 2022 zless -rwxr-xr-x 1 root root 1842 Apr 9 2022 zmore -rwxr-xr-x 1 root root 4577 Apr 9 2022 znew I: user script /srv/workspace/pbuilder/3642572/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy Version: 0.invalid.0 Architecture: amd64 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-compat (= 13), dh-python, 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 ... 19711 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-compat (= 13); however: Package debhelper-compat is not installed. pbuilder-satisfydepends-dummy depends on dh-python; however: Package dh-python 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} bsdextrautils{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} libdebhelper-perl{a} libelf1{a} libexpat1{a} libfile-stripnondeterminism-perl{a} libicu67{a} libmagic-mgc{a} libmagic1{a} libmpdec3{a} libpipeline1{a} libpython3-stdlib{a} libpython3.9-minimal{a} libpython3.9-stdlib{a} libreadline8{a} libsigsegv2{a} libsub-override-perl{a} libtool{a} libuchardet0{a} libxml2{a} m4{a} man-db{a} media-types{a} po-debconf{a} python3{a} python3-all{a} python3-distutils{a} python3-lib2to3{a} python3-minimal{a} python3-pkg-resources{a} python3-setuptools{a} python3.9{a} python3.9-minimal{a} readline-common{a} sensible-utils{a} The following packages are RECOMMENDED but will NOT be installed: ca-certificates curl libarchive-cpio-perl libltdl-dev libmail-sendmail-perl lynx wget 0 packages upgraded, 50 newly installed, 0 to remove and 0 not upgraded. Need to get 24.7 MB of archives. After unpacking 92.4 MB will be used. Writing extended state information... Get: 1 http://deb.debian.org/debian bullseye/main amd64 bsdextrautils amd64 2.36.1-8+deb11u2 [146 kB] Get: 2 http://deb.debian.org/debian bullseye/main amd64 libuchardet0 amd64 0.0.7-1 [67.8 kB] Get: 3 http://deb.debian.org/debian bullseye/main amd64 groff-base amd64 1.22.4-6 [936 kB] Get: 4 http://deb.debian.org/debian bullseye/main amd64 libpipeline1 amd64 1.5.3-1 [34.3 kB] Get: 5 http://deb.debian.org/debian bullseye/main amd64 man-db amd64 2.9.4-2 [1354 kB] Get: 6 http://deb.debian.org/debian bullseye/main amd64 libpython3.9-minimal amd64 3.9.2-1 [801 kB] Get: 7 http://deb.debian.org/debian bullseye/main amd64 libexpat1 amd64 2.2.10-2+deb11u5 [98.2 kB] Get: 8 http://deb.debian.org/debian bullseye/main amd64 python3.9-minimal amd64 3.9.2-1 [1955 kB] Get: 9 http://deb.debian.org/debian bullseye/main amd64 python3-minimal amd64 3.9.2-3 [38.2 kB] Get: 10 http://deb.debian.org/debian bullseye/main amd64 media-types all 4.0.0 [30.3 kB] Get: 11 http://deb.debian.org/debian bullseye/main amd64 libmpdec3 amd64 2.5.1-1 [87.7 kB] Get: 12 http://deb.debian.org/debian bullseye/main amd64 readline-common all 8.1-1 [73.7 kB] Get: 13 http://deb.debian.org/debian bullseye/main amd64 libreadline8 amd64 8.1-1 [169 kB] Get: 14 http://deb.debian.org/debian bullseye/main amd64 libpython3.9-stdlib amd64 3.9.2-1 [1684 kB] Get: 15 http://deb.debian.org/debian bullseye/main amd64 python3.9 amd64 3.9.2-1 [466 kB] Get: 16 http://deb.debian.org/debian bullseye/main amd64 libpython3-stdlib amd64 3.9.2-3 [21.4 kB] Get: 17 http://deb.debian.org/debian bullseye/main amd64 python3 amd64 3.9.2-3 [37.9 kB] Get: 18 http://deb.debian.org/debian bullseye/main amd64 sensible-utils all 0.0.14 [14.8 kB] Get: 19 http://deb.debian.org/debian bullseye/main amd64 libmagic-mgc amd64 1:5.39-3+deb11u1 [273 kB] Get: 20 http://deb.debian.org/debian bullseye/main amd64 libmagic1 amd64 1:5.39-3+deb11u1 [128 kB] Get: 21 http://deb.debian.org/debian bullseye/main amd64 file amd64 1:5.39-3+deb11u1 [69.2 kB] Get: 22 http://deb.debian.org/debian bullseye/main amd64 gettext-base amd64 0.21-4 [175 kB] Get: 23 http://deb.debian.org/debian bullseye/main amd64 python3-lib2to3 all 3.9.2-1 [77.8 kB] Get: 24 http://deb.debian.org/debian bullseye/main amd64 2to3 all 3.9.2-3 [22.4 kB] Get: 25 http://deb.debian.org/debian bullseye/main amd64 libsigsegv2 amd64 2.13-1 [34.8 kB] Get: 26 http://deb.debian.org/debian bullseye/main amd64 m4 amd64 1.4.18-5 [204 kB] Get: 27 http://deb.debian.org/debian bullseye/main amd64 autoconf all 2.69-14 [313 kB] Get: 28 http://deb.debian.org/debian bullseye/main amd64 autotools-dev all 20180224.1+nmu1 [77.1 kB] Get: 29 http://deb.debian.org/debian bullseye/main amd64 automake all 1:1.16.3-2 [814 kB] Get: 30 http://deb.debian.org/debian bullseye/main amd64 autopoint all 0.21-4 [510 kB] Get: 31 http://deb.debian.org/debian bullseye/main amd64 libdebhelper-perl all 13.3.4 [189 kB] Get: 32 http://deb.debian.org/debian bullseye/main amd64 libtool all 2.4.6-15 [513 kB] Get: 33 http://deb.debian.org/debian bullseye/main amd64 dh-autoreconf all 20 [17.1 kB] Get: 34 http://deb.debian.org/debian bullseye/main amd64 libarchive-zip-perl all 1.68-1 [104 kB] Get: 35 http://deb.debian.org/debian bullseye/main amd64 libsub-override-perl all 0.09-2 [10.2 kB] Get: 36 http://deb.debian.org/debian bullseye/main amd64 libfile-stripnondeterminism-perl all 1.12.0-1 [26.3 kB] Get: 37 http://deb.debian.org/debian bullseye/main amd64 dh-strip-nondeterminism all 1.12.0-1 [15.4 kB] Get: 38 http://deb.debian.org/debian bullseye/main amd64 libelf1 amd64 0.183-1 [165 kB] Get: 39 http://deb.debian.org/debian bullseye/main amd64 dwz amd64 0.13+20210201-1 [175 kB] Get: 40 http://deb.debian.org/debian bullseye/main amd64 libicu67 amd64 67.1-7 [8622 kB] Get: 41 http://deb.debian.org/debian bullseye/main amd64 libxml2 amd64 2.9.10+dfsg-6.7+deb11u4 [693 kB] Get: 42 http://deb.debian.org/debian bullseye/main amd64 gettext amd64 0.21-4 [1311 kB] Get: 43 http://deb.debian.org/debian bullseye/main amd64 intltool-debian all 0.35.0+20060710.5 [26.8 kB] Get: 44 http://deb.debian.org/debian bullseye/main amd64 po-debconf all 1.0.21+nmu1 [248 kB] Get: 45 http://deb.debian.org/debian bullseye/main amd64 debhelper all 13.3.4 [1049 kB] Get: 46 http://deb.debian.org/debian bullseye/main amd64 python3-distutils all 3.9.2-1 [143 kB] Get: 47 http://deb.debian.org/debian bullseye/main amd64 dh-python all 4.20201102+nmu1 [99.4 kB] Get: 48 http://deb.debian.org/debian bullseye/main amd64 python3-all amd64 3.9.2-3 [1056 B] Get: 49 http://deb.debian.org/debian bullseye/main amd64 python3-pkg-resources all 52.0.0-4 [190 kB] Get: 50 http://deb.debian.org/debian bullseye/main amd64 python3-setuptools all 52.0.0-4 [366 kB] Fetched 24.7 MB in 0s (53.4 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package bsdextrautils. (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 ... 19711 files and directories currently installed.) Preparing to unpack .../0-bsdextrautils_2.36.1-8+deb11u2_amd64.deb ... Unpacking bsdextrautils (2.36.1-8+deb11u2) ... Selecting previously unselected package libuchardet0:amd64. Preparing to unpack .../1-libuchardet0_0.0.7-1_amd64.deb ... Unpacking libuchardet0:amd64 (0.0.7-1) ... Selecting previously unselected package groff-base. Preparing to unpack .../2-groff-base_1.22.4-6_amd64.deb ... Unpacking groff-base (1.22.4-6) ... Selecting previously unselected package libpipeline1:amd64. Preparing to unpack .../3-libpipeline1_1.5.3-1_amd64.deb ... Unpacking libpipeline1:amd64 (1.5.3-1) ... Selecting previously unselected package man-db. Preparing to unpack .../4-man-db_2.9.4-2_amd64.deb ... Unpacking man-db (2.9.4-2) ... Selecting previously unselected package libpython3.9-minimal:amd64. Preparing to unpack .../5-libpython3.9-minimal_3.9.2-1_amd64.deb ... Unpacking libpython3.9-minimal:amd64 (3.9.2-1) ... Selecting previously unselected package libexpat1:amd64. Preparing to unpack .../6-libexpat1_2.2.10-2+deb11u5_amd64.deb ... Unpacking libexpat1:amd64 (2.2.10-2+deb11u5) ... Selecting previously unselected package python3.9-minimal. Preparing to unpack .../7-python3.9-minimal_3.9.2-1_amd64.deb ... Unpacking python3.9-minimal (3.9.2-1) ... Setting up libpython3.9-minimal:amd64 (3.9.2-1) ... Setting up libexpat1:amd64 (2.2.10-2+deb11u5) ... Setting up python3.9-minimal (3.9.2-1) ... 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 ... 20578 files and directories currently installed.) Preparing to unpack .../0-python3-minimal_3.9.2-3_amd64.deb ... Unpacking python3-minimal (3.9.2-3) ... Selecting previously unselected package media-types. Preparing to unpack .../1-media-types_4.0.0_all.deb ... Unpacking media-types (4.0.0) ... Selecting previously unselected package libmpdec3:amd64. Preparing to unpack .../2-libmpdec3_2.5.1-1_amd64.deb ... Unpacking libmpdec3:amd64 (2.5.1-1) ... Selecting previously unselected package readline-common. Preparing to unpack .../3-readline-common_8.1-1_all.deb ... Unpacking readline-common (8.1-1) ... Selecting previously unselected package libreadline8:amd64. Preparing to unpack .../4-libreadline8_8.1-1_amd64.deb ... Unpacking libreadline8:amd64 (8.1-1) ... Selecting previously unselected package libpython3.9-stdlib:amd64. Preparing to unpack .../5-libpython3.9-stdlib_3.9.2-1_amd64.deb ... Unpacking libpython3.9-stdlib:amd64 (3.9.2-1) ... Selecting previously unselected package python3.9. Preparing to unpack .../6-python3.9_3.9.2-1_amd64.deb ... Unpacking python3.9 (3.9.2-1) ... Selecting previously unselected package libpython3-stdlib:amd64. Preparing to unpack .../7-libpython3-stdlib_3.9.2-3_amd64.deb ... Unpacking libpython3-stdlib:amd64 (3.9.2-3) ... Setting up python3-minimal (3.9.2-3) ... 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 ... 20999 files and directories currently installed.) Preparing to unpack .../00-python3_3.9.2-3_amd64.deb ... Unpacking python3 (3.9.2-3) ... Selecting previously unselected package sensible-utils. Preparing to unpack .../01-sensible-utils_0.0.14_all.deb ... Unpacking sensible-utils (0.0.14) ... Selecting previously unselected package libmagic-mgc. Preparing to unpack .../02-libmagic-mgc_1%3a5.39-3+deb11u1_amd64.deb ... Unpacking libmagic-mgc (1:5.39-3+deb11u1) ... Selecting previously unselected package libmagic1:amd64. Preparing to unpack .../03-libmagic1_1%3a5.39-3+deb11u1_amd64.deb ... Unpacking libmagic1:amd64 (1:5.39-3+deb11u1) ... Selecting previously unselected package file. Preparing to unpack .../04-file_1%3a5.39-3+deb11u1_amd64.deb ... Unpacking file (1:5.39-3+deb11u1) ... Selecting previously unselected package gettext-base. Preparing to unpack .../05-gettext-base_0.21-4_amd64.deb ... Unpacking gettext-base (0.21-4) ... Selecting previously unselected package python3-lib2to3. Preparing to unpack .../06-python3-lib2to3_3.9.2-1_all.deb ... Unpacking python3-lib2to3 (3.9.2-1) ... Selecting previously unselected package 2to3. Preparing to unpack .../07-2to3_3.9.2-3_all.deb ... Unpacking 2to3 (3.9.2-3) ... Selecting previously unselected package libsigsegv2:amd64. Preparing to unpack .../08-libsigsegv2_2.13-1_amd64.deb ... Unpacking libsigsegv2:amd64 (2.13-1) ... Selecting previously unselected package m4. Preparing to unpack .../09-m4_1.4.18-5_amd64.deb ... Unpacking m4 (1.4.18-5) ... Selecting previously unselected package autoconf. Preparing to unpack .../10-autoconf_2.69-14_all.deb ... Unpacking autoconf (2.69-14) ... Selecting previously unselected package autotools-dev. Preparing to unpack .../11-autotools-dev_20180224.1+nmu1_all.deb ... Unpacking autotools-dev (20180224.1+nmu1) ... Selecting previously unselected package automake. Preparing to unpack .../12-automake_1%3a1.16.3-2_all.deb ... Unpacking automake (1:1.16.3-2) ... Selecting previously unselected package autopoint. Preparing to unpack .../13-autopoint_0.21-4_all.deb ... Unpacking autopoint (0.21-4) ... Selecting previously unselected package libdebhelper-perl. Preparing to unpack .../14-libdebhelper-perl_13.3.4_all.deb ... Unpacking libdebhelper-perl (13.3.4) ... Selecting previously unselected package libtool. Preparing to unpack .../15-libtool_2.4.6-15_all.deb ... Unpacking libtool (2.4.6-15) ... Selecting previously unselected package dh-autoreconf. Preparing to unpack .../16-dh-autoreconf_20_all.deb ... Unpacking dh-autoreconf (20) ... Selecting previously unselected package libarchive-zip-perl. Preparing to unpack .../17-libarchive-zip-perl_1.68-1_all.deb ... Unpacking libarchive-zip-perl (1.68-1) ... Selecting previously unselected package libsub-override-perl. Preparing to unpack .../18-libsub-override-perl_0.09-2_all.deb ... Unpacking libsub-override-perl (0.09-2) ... Selecting previously unselected package libfile-stripnondeterminism-perl. Preparing to unpack .../19-libfile-stripnondeterminism-perl_1.12.0-1_all.deb ... Unpacking libfile-stripnondeterminism-perl (1.12.0-1) ... Selecting previously unselected package dh-strip-nondeterminism. Preparing to unpack .../20-dh-strip-nondeterminism_1.12.0-1_all.deb ... Unpacking dh-strip-nondeterminism (1.12.0-1) ... Selecting previously unselected package libelf1:amd64. Preparing to unpack .../21-libelf1_0.183-1_amd64.deb ... Unpacking libelf1:amd64 (0.183-1) ... Selecting previously unselected package dwz. Preparing to unpack .../22-dwz_0.13+20210201-1_amd64.deb ... Unpacking dwz (0.13+20210201-1) ... Selecting previously unselected package libicu67:amd64. Preparing to unpack .../23-libicu67_67.1-7_amd64.deb ... Unpacking libicu67:amd64 (67.1-7) ... Selecting previously unselected package libxml2:amd64. Preparing to unpack .../24-libxml2_2.9.10+dfsg-6.7+deb11u4_amd64.deb ... Unpacking libxml2:amd64 (2.9.10+dfsg-6.7+deb11u4) ... Selecting previously unselected package gettext. Preparing to unpack .../25-gettext_0.21-4_amd64.deb ... Unpacking gettext (0.21-4) ... Selecting previously unselected package intltool-debian. Preparing to unpack .../26-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 .../27-po-debconf_1.0.21+nmu1_all.deb ... Unpacking po-debconf (1.0.21+nmu1) ... Selecting previously unselected package debhelper. Preparing to unpack .../28-debhelper_13.3.4_all.deb ... Unpacking debhelper (13.3.4) ... Selecting previously unselected package python3-distutils. Preparing to unpack .../29-python3-distutils_3.9.2-1_all.deb ... Unpacking python3-distutils (3.9.2-1) ... Selecting previously unselected package dh-python. Preparing to unpack .../30-dh-python_4.20201102+nmu1_all.deb ... Unpacking dh-python (4.20201102+nmu1) ... Selecting previously unselected package python3-all. Preparing to unpack .../31-python3-all_3.9.2-3_amd64.deb ... Unpacking python3-all (3.9.2-3) ... Selecting previously unselected package python3-pkg-resources. Preparing to unpack .../32-python3-pkg-resources_52.0.0-4_all.deb ... Unpacking python3-pkg-resources (52.0.0-4) ... Selecting previously unselected package python3-setuptools. Preparing to unpack .../33-python3-setuptools_52.0.0-4_all.deb ... Unpacking python3-setuptools (52.0.0-4) ... Setting up media-types (4.0.0) ... Setting up libpipeline1:amd64 (1.5.3-1) ... Setting up bsdextrautils (2.36.1-8+deb11u2) ... update-alternatives: using /usr/bin/write.ul to provide /usr/bin/write (write) in auto mode Setting up libicu67:amd64 (67.1-7) ... Setting up libmagic-mgc (1:5.39-3+deb11u1) ... Setting up libarchive-zip-perl (1.68-1) ... Setting up libdebhelper-perl (13.3.4) ... Setting up libmagic1:amd64 (1:5.39-3+deb11u1) ... Setting up gettext-base (0.21-4) ... Setting up file (1:5.39-3+deb11u1) ... Setting up autotools-dev (20180224.1+nmu1) ... Setting up libsigsegv2:amd64 (2.13-1) ... Setting up autopoint (0.21-4) ... Setting up sensible-utils (0.0.14) ... Setting up libuchardet0:amd64 (0.0.7-1) ... Setting up libmpdec3:amd64 (2.5.1-1) ... Setting up libsub-override-perl (0.09-2) ... Setting up libelf1:amd64 (0.183-1) ... Setting up readline-common (8.1-1) ... Setting up libxml2:amd64 (2.9.10+dfsg-6.7+deb11u4) ... Setting up libfile-stripnondeterminism-perl (1.12.0-1) ... Setting up gettext (0.21-4) ... Setting up libtool (2.4.6-15) ... Setting up libreadline8:amd64 (8.1-1) ... Setting up m4 (1.4.18-5) ... Setting up intltool-debian (0.35.0+20060710.5) ... Setting up autoconf (2.69-14) ... Setting up dh-strip-nondeterminism (1.12.0-1) ... Setting up dwz (0.13+20210201-1) ... Setting up groff-base (1.22.4-6) ... Setting up libpython3.9-stdlib:amd64 (3.9.2-1) ... Setting up libpython3-stdlib:amd64 (3.9.2-3) ... Setting up automake (1:1.16.3-2) ... update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (automake) in auto mode Setting up po-debconf (1.0.21+nmu1) ... Setting up man-db (2.9.4-2) ... Not building database; man-db/auto-update is not 'true'. Setting up dh-autoreconf (20) ... Setting up python3.9 (3.9.2-1) ... Setting up debhelper (13.3.4) ... Setting up python3 (3.9.2-3) ... Setting up python3-lib2to3 (3.9.2-1) ... Setting up python3-pkg-resources (52.0.0-4) ... Setting up python3-distutils (3.9.2-1) ... Setting up dh-python (4.20201102+nmu1) ... Setting up python3-setuptools (52.0.0-4) ... Setting up python3-all (3.9.2-3) ... Setting up 2to3 (3.9.2-3) ... Processing triggers for libc-bin (2.31-13+deb11u10) ... 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/reproducible-path/python-dsv-1.4.1/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../python-dsv_1.4.1-11_source.changes dpkg-buildpackage: info: source package python-dsv dpkg-buildpackage: info: source version 1.4.1-11 dpkg-buildpackage: info: source distribution unstable dpkg-buildpackage: info: source changed by Aaron M. Ucko dpkg-source --before-build . dpkg-buildpackage: info: host architecture amd64 debian/rules clean dh clean --with python3 --buildsystem=pybuild debian/rules override_dh_auto_clean make[1]: Entering directory '/build/reproducible-path/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:232: python3.9 setup.py clean running clean removing '/build/reproducible-path/python-dsv-1.4.1/.pybuild/cpython3_3.9_dsv/build' (and everything under it) 'build/bdist.linux-x86_64' does not exist -- can't clean it 'build/scripts-3.9' does not exist -- can't clean it make[1]: Leaving directory '/build/reproducible-path/python-dsv-1.4.1' dh_autoreconf_clean -O--buildsystem=pybuild dh_clean -O--buildsystem=pybuild debian/rules binary dh binary --with python3 --buildsystem=pybuild dh_update_autotools_config -O--buildsystem=pybuild dh_autoreconf -O--buildsystem=pybuild dh_auto_configure -O--buildsystem=pybuild I: pybuild base:232: python3.9 setup.py config running config dh_auto_build -O--buildsystem=pybuild I: pybuild pybuild:284: 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) @@ -129,6 +129,7 @@ import re import copy 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. @@ -146,10 +147,10 @@ except ImportError: wx = None -class InvalidDelimiter(StandardError): pass -class InvalidTextQualifier(StandardError): pass -class InvalidData(StandardError): pass -class InvalidNumberOfColumns(StandardError): pass +class InvalidDelimiter(Exception): pass +class InvalidTextQualifier(Exception): pass +class InvalidData(Exception): pass +class InvalidNumberOfColumns(Exception): pass # ------------------------------------------------------------------------------ def guessTextQualifier(input): @@ -176,7 +177,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 = {} @@ -188,7 +189,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 = '"'): @@ -247,8 +248,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: @@ -261,7 +262,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 @@ -273,7 +274,7 @@ consistency -= 0.01 if len(delims) == 1: - return delims.keys()[0] + return list(delims.keys())[0] # analyze another chunkLength lines start = end @@ -288,20 +289,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): @@ -320,7 +321,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): @@ -344,7 +345,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: @@ -356,7 +357,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)? @@ -377,7 +378,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 @@ -430,7 +431,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 # ------------------------------------------------------------------------------ @@ -485,15 +486,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('(?:(?:[,]|^)"(.*?)"(?=[,]|$))|(?:(?:[,]|^)([^",]*?)(?=[,]|$))') @@ -560,10 +561,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) @@ -581,18 +582,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 @@ -617,19 +618,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) + data = list(map(lambda i, q = textQualifier: + list(map(lambda j, q = q: str(j).replace(q, q * 2), i)),RefactoringTool: Files that were modified: RefactoringTool: DSV/DSV.py + 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] @@ -717,7 +718,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) @@ -730,7 +731,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) @@ -859,7 +860,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() @@ -880,8 +881,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() @@ -892,8 +893,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() @@ -1041,9 +1042,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 @@ -1072,16 +1073,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:232: /usr/bin/python3 setup.py build running build running build_py creating /build/reproducible-path/python-dsv-1.4.1/.pybuild/cpython3_3.9_dsv/build/DSV copying DSV/DSV.py -> /build/reproducible-path/python-dsv-1.4.1/.pybuild/cpython3_3.9_dsv/build/DSV copying DSV/__init__.py -> /build/reproducible-path/python-dsv-1.4.1/.pybuild/cpython3_3.9_dsv/build/DSV dh_auto_test -O--buildsystem=pybuild I: pybuild base:232: cd /build/reproducible-path/python-dsv-1.4.1/.pybuild/cpython3_3.9_dsv/build; python3.9 -m unittest discover -v ---------------------------------------------------------------------- Ran 0 tests in 0.000s OK create-stamp debian/debhelper-build-stamp dh_testroot -O--buildsystem=pybuild dh_prep -O--buildsystem=pybuild dh_auto_install -O--buildsystem=pybuild I: pybuild base:232: /usr/bin/python3 setup.py install --root /build/reproducible-path/python-dsv-1.4.1/debian/python3-dsv running install running build running build_py running install_lib creating /build/reproducible-path/python-dsv-1.4.1/debian/python3-dsv/usr creating /build/reproducible-path/python-dsv-1.4.1/debian/python3-dsv/usr/lib creating /build/reproducible-path/python-dsv-1.4.1/debian/python3-dsv/usr/lib/python3.9 creating /build/reproducible-path/python-dsv-1.4.1/debian/python3-dsv/usr/lib/python3.9/dist-packages creating /build/reproducible-path/python-dsv-1.4.1/debian/python3-dsv/usr/lib/python3.9/dist-packages/DSV copying /build/reproducible-path/python-dsv-1.4.1/.pybuild/cpython3_3.9_dsv/build/DSV/DSV.py -> /build/reproducible-path/python-dsv-1.4.1/debian/python3-dsv/usr/lib/python3.9/dist-packages/DSV copying /build/reproducible-path/python-dsv-1.4.1/.pybuild/cpython3_3.9_dsv/build/DSV/__init__.py -> /build/reproducible-path/python-dsv-1.4.1/debian/python3-dsv/usr/lib/python3.9/dist-packages/DSV creating /build/reproducible-path/python-dsv-1.4.1/debian/python3-dsv/usr/lib/python3.9/dist-packages/DSV/__pycache__ copying /build/reproducible-path/python-dsv-1.4.1/.pybuild/cpython3_3.9_dsv/build/DSV/__pycache__/__init__.cpython-39.pyc -> /build/reproducible-path/python-dsv-1.4.1/debian/python3-dsv/usr/lib/python3.9/dist-packages/DSV/__pycache__ byte-compiling /build/reproducible-path/python-dsv-1.4.1/debian/python3-dsv/usr/lib/python3.9/dist-packages/DSV/DSV.py to DSV.cpython-39.pyc byte-compiling /build/reproducible-path/python-dsv-1.4.1/debian/python3-dsv/usr/lib/python3.9/dist-packages/DSV/__init__.py to __init__.cpython-39.pyc running install_egg_info Writing /build/reproducible-path/python-dsv-1.4.1/debian/python3-dsv/usr/lib/python3.9/dist-packages/DSV-1.4.1.egg-info dh_installdocs -O--buildsystem=pybuild dh_installchangelogs -O--buildsystem=pybuild dh_python3 -O--buildsystem=pybuild dh_installsystemduser -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 dh_md5sums -O--buildsystem=pybuild dh_builddeb -O--buildsystem=pybuild dpkg-deb: building package 'python3-dsv' in '../python3-dsv_1.4.1-11_all.deb'. dpkg-genbuildinfo --build=binary dpkg-genchanges --build=binary >../python-dsv_1.4.1-11_amd64.changes dpkg-genchanges: info: binary-only upload (no source code included) dpkg-source --after-build . dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload 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/3642572 and its subdirectories I: Current time: Fri Aug 15 06:35:18 -12 2025 I: pbuilder-time-stamp: 1755282918 Sat Jul 13 12:12:19 UTC 2024 I: 1st build successful. Starting 2nd build on remote node infom01-amd64.debian.net. Sat Jul 13 12:12:20 UTC 2024 I: Preparing to do remote build '2' on infom01-amd64.debian.net. Sat Jul 13 12:13:01 UTC 2024 I: Deleting $TMPDIR on infom01-amd64.debian.net. Sat Jul 13 12:13:01 UTC 2024 I: python-dsv_1.4.1-11_amd64.changes: Format: 1.8 Date: Tue, 09 Feb 2021 22:09:55 -0500 Source: python-dsv Binary: python3-dsv Architecture: all Version: 1.4.1-11 Distribution: unstable Urgency: high Maintainer: Debian Python Team Changed-By: Aaron M. Ucko Description: python3-dsv - Python module for delimiter-separated-value files (Python 3) Changes: python-dsv (1.4.1-11) unstable; urgency=high . * 05-no-import-exceptions.patch (new): Belatedly bypass "exceptions". This module was superfluous in Python 2, and is gone altogether in Python 3. * d/tests/autopkgtest-pkg-python.conf (new): import_name = DSV.DSV. The default would have been dsv, which doesn't exist. Checksums-Sha1: c60e731aae8d0f780fa4c2a2e627963f42021b5d 5691 python-dsv_1.4.1-11_amd64.buildinfo 5f78743ece398cf1f36dfaddbe6a438fadb1dac0 18800 python3-dsv_1.4.1-11_all.deb Checksums-Sha256: ffe54fdefbd04ede484c761baa9eb752dc2a9755dd2e0e47e281748bca70a2d8 5691 python-dsv_1.4.1-11_amd64.buildinfo 5381763203bccec1b497e25966677e6d1ae2bdd2efbe6a8e5d838dccdbf00267 18800 python3-dsv_1.4.1-11_all.deb Files: d8f9506814f5bea17a031b53b7d269fe 5691 python optional python-dsv_1.4.1-11_amd64.buildinfo e304a2e10377b8e933becbb9dff4f8e8 18800 python optional python3-dsv_1.4.1-11_all.deb Sat Jul 13 12:13:02 UTC 2024 I: diffoscope 272 will be used to compare the two builds: Running as unit: rb-diffoscope-amd64_34-18673.service # Profiling output for: /usr/bin/diffoscope --timeout 7200 --html /srv/reproducible-results/rbuild-debian/r-b-build.Th55S6KH/python-dsv_1.4.1-11.diffoscope.html --profile=- /srv/reproducible-results/rbuild-debian/r-b-build.Th55S6KH/b1/python-dsv_1.4.1-11_amd64.changes /srv/reproducible-results/rbuild-debian/r-b-build.Th55S6KH/b2/python-dsv_1.4.1-11_amd64.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.262s) 0.262s 2 calls outputs 0.000s 1 call cleanup ## recognizes (total time: 0.016s) 0.016s 12 calls diffoscope.comparators.binary.FilesystemFile ## specialize (total time: 0.000s) 0.000s 1 call specialize Finished with result: success Main processes terminated with: code=exited/status=0 Service runtime: 523ms CPU time consumed: 527ms Sat Jul 13 12:13:03 UTC 2024 I: diffoscope 272 found no differences in the changes files, and a .buildinfo file also exists. Sat Jul 13 12:13:03 UTC 2024 I: python-dsv from bullseye built successfully and reproducibly on amd64. Sat Jul 13 12:13:04 UTC 2024 I: Submitting .buildinfo files to external archives: Sat Jul 13 12:13:04 UTC 2024 I: Submitting 8.0K b1/python-dsv_1.4.1-11_amd64.buildinfo.asc Sat Jul 13 12:13:07 UTC 2024 I: Submitting 8.0K b2/python-dsv_1.4.1-11_amd64.buildinfo.asc Sat Jul 13 12:13:09 UTC 2024 I: Done submitting .buildinfo files to http://buildinfo.debian.net/api/submit. Sat Jul 13 12:13:09 UTC 2024 I: Done submitting .buildinfo files. Sat Jul 13 12:13:09 UTC 2024 I: Removing signed python-dsv_1.4.1-11_amd64.buildinfo.asc files: removed './b1/python-dsv_1.4.1-11_amd64.buildinfo.asc' removed './b2/python-dsv_1.4.1-11_amd64.buildinfo.asc'