RUN: /usr/share/launchpad-buildd/slavebin/slave-prep ['slave-prep']
Forking launchpad-buildd slave process...
Kernel version: Linux panlong 3.2.0-37-generic #58-Ubuntu SMP Thu Jan 24 15:28:10 UTC 2013 x86_64
Buildd toolchain package versions: launchpad-buildd_121~0.IS.08.04.0 python-lpbuildd_121~0.IS.08.04.0 bzr_2.5.1-0ubuntu2 dpkg-dev_1.16.1.2ubuntu7.2.
Syncing the system clock with the buildd NTP service...
11 Apr 13:31:55 ntpdate[15211]: adjust time server 10.211.37.1 offset 0.000672 sec
RUN: /usr/share/launchpad-buildd/slavebin/unpack-chroot ['unpack-chroot', 'PACKAGEBUILD-5901808', '/home/buildd/filecache-default/d7dfd5d0b4f9c4935fa69c13e82581dbc1dbc3a6']
Unpacking chroot for build PACKAGEBUILD-5901808
RUN: /usr/share/launchpad-buildd/slavebin/mount-chroot ['mount-chroot', 'PACKAGEBUILD-5901808']
Mounting chroot for build PACKAGEBUILD-5901808
RUN: /usr/share/launchpad-buildd/slavebin/override-sources-list ['override-sources-list', 'PACKAGEBUILD-5901808', 'deb http://ftpmaster.internal/ubuntu trusty main', 'deb http://ftpmaster.internal/ubuntu trusty-security main', 'deb http://ftpmaster.internal/ubuntu trusty-updates main', 'deb http://ftpmaster.internal/ubuntu trusty-proposed main']
Overriding sources.list in build-PACKAGEBUILD-5901808
RUN: /usr/share/launchpad-buildd/slavebin/update-debian-chroot ['update-debian-chroot', 'PACKAGEBUILD-5901808', 'i386']
Updating debian chroot for build PACKAGEBUILD-5901808
Ign http://ftpmaster.internal trusty InRelease
Ign http://ftpmaster.internal trusty-security InRelease
Ign http://ftpmaster.internal trusty-updates InRelease
Ign http://archive-team.internal trusty InRelease
Ign http://ftpmaster.internal trusty-proposed InRelease
Ign http://archive-team.internal trusty Release.gpg
Get:1 http://ftpmaster.internal trusty Release.gpg [933 B]
Get:2 http://ftpmaster.internal trusty-security Release.gpg [933 B]
Get:3 http://archive-team.internal trusty Release [723 B]
Get:4 http://ftpmaster.internal trusty-updates Release.gpg [933 B]
Get:5 http://ftpmaster.internal trusty-proposed Release.gpg [933 B]
Get:6 http://ftpmaster.internal trusty Release [58.5 kB]
Get:7 http://ftpmaster.internal trusty-security Release [58.5 kB]
Get:8 http://ftpmaster.internal trusty-updates Release [58.5 kB]
Get:9 http://ftpmaster.internal trusty-proposed Release [58.5 kB]
Get:10 http://archive-team.internal trusty/main i386 Packages
Get:11 http://ftpmaster.internal trusty/main i386 Packages [1346 kB]
Ign http://archive-team.internal trusty/main Translation-en
Get:12 http://ftpmaster.internal trusty/main Translation-en [761 kB]
Get:13 http://ftpmaster.internal trusty-security/main i386 Packages [14 B]
Get:14 http://ftpmaster.internal trusty-security/main Translation-en [14 B]
Get:15 http://ftpmaster.internal trusty-updates/main i386 Packages [14 B]
Get:16 http://ftpmaster.internal trusty-updates/main Translation-en [14 B]
Get:17 http://ftpmaster.internal trusty-proposed/main i386 Packages [18.8 kB]
Get:18 http://ftpmaster.internal trusty-proposed/main Translation-en [12.3 kB]
Fetched 2377 kB in 1s (1719 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following package was automatically installed and is no longer required:
libtasn1-3
Use 'apt-get autoremove' to remove it.
The following NEW packages will be installed:
libcgmanager0 libtasn1-6
The following packages will be upgraded:
apt apt-transport-https base-files base-passwd bash binutils bsdutils
coreutils cpp cpp-4.8 dpkg dpkg-dev fakeroot g++ g++-4.8 gcc gcc-4.8
gcc-4.8-base gcc-4.9-base gnupg gpgv ifupdown initramfs-tools
initramfs-tools-bin initscripts kmod libapt-pkg4.12 libasan0 libatomic1
libattr1 libblkid1 libc-bin libc-dev-bin libc6 libc6-dev libcloog-isl4
libcurl3-gnutls libdb5.3 libdbus-1-3 libdpkg-perl libfakeroot libffi6
libgcc-4.8-dev libgcc1 libgnutls26 libgomp1 libgssapi-krb5-2 libitm1
libk5crypto3 libkmod2 libkrb5-3 libkrb5support0 libldap-2.4-2 libmount1
libncurses5 libncursesw5 libp11-kit0 libplymouth2 libpng12-0 libquadmath0
libreadline6 libssl1.0.0 libstdc++-4.8-dev libstdc++6 libtinfo5 libudev1
libuuid1 linux-libc-dev mawk module-init-tools mount multiarch-support
ncurses-base ncurses-bin openssl perl perl-base perl-modules
pkg-create-dbgsym pkgbinarymangler plymouth readline-common sysv-rc
sysvinit-utils tzdata udev upstart util-linux
88 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 49.3 MB of archives.
After this operation, 12.1 MB disk space will be freed.
Get:1 http://ftpmaster.internal/ubuntu/ trusty/main base-files i386 7.2ubuntu5 [70.2 kB]
Get:2 http://ftpmaster.internal/ubuntu/ trusty/main bash i386 4.3-6ubuntu1 [548 kB]
Get:3 http://ftpmaster.internal/ubuntu/ trusty/main coreutils i386 8.21-1ubuntu5 [1087 kB]
Get:4 http://ftpmaster.internal/ubuntu/ trusty/main dpkg i386 1.17.5ubuntu5 [1940 kB]
Get:5 http://ftpmaster.internal/ubuntu/ trusty/main mount i386 2.20.1-5.1ubuntu18 [113 kB]
Get:6 http://ftpmaster.internal/ubuntu/ trusty/main ncurses-bin i386 5.9+20140118-1ubuntu1 [135 kB]
Get:7 http://ftpmaster.internal/ubuntu/ trusty/main perl i386 5.18.2-2ubuntu1 [2173 kB]
Get:8 http://ftpmaster.internal/ubuntu/ trusty/main perl-base i386 5.18.2-2ubuntu1 [1133 kB]
Get:9 http://ftpmaster.internal/ubuntu/ trusty/main perl-modules all 5.18.2-2ubuntu1 [2696 kB]
Get:10 http://ftpmaster.internal/ubuntu/ trusty/main libc-bin i386 2.19-0ubuntu5 [1106 kB]
Get:11 http://ftpmaster.internal/ubuntu/ trusty/main sysv-rc all 2.88dsf-41ubuntu6 [36.5 kB]
Get:12 http://ftpmaster.internal/ubuntu/ trusty/main sysvinit-utils i386 2.88dsf-41ubuntu6 [51.5 kB]
Get:13 http://ftpmaster.internal/ubuntu/ trusty/main initscripts i386 2.88dsf-41ubuntu6 [27.7 kB]
Get:14 http://ftpmaster.internal/ubuntu/ trusty/main libdbus-1-3 i386 1.6.18-0ubuntu4 [132 kB]
Get:15 http://ftpmaster.internal/ubuntu/ trusty/main libcgmanager0 i386 0.24-0ubuntu4 [23.9 kB]
Get:16 http://ftpmaster.internal/ubuntu/ trusty/main libuuid1 i386 2.20.1-5.1ubuntu18 [11.6 kB]
Get:17 http://ftpmaster.internal/ubuntu/ trusty/main libblkid1 i386 2.20.1-5.1ubuntu18 [67.4 kB]
Get:18 http://ftpmaster.internal/ubuntu/ trusty/main libkmod2 i386 15-0ubuntu6 [40.5 kB]
Get:19 http://ftpmaster.internal/ubuntu/ trusty/main tzdata all 2014b-1 [182 kB]
Get:20 http://ftpmaster.internal/ubuntu/ trusty/main util-linux i386 2.20.1-5.1ubuntu18 [451 kB]
Get:21 http://ftpmaster.internal/ubuntu/ trusty/main udev i386 204-5ubuntu18 [738 kB]
Get:22 http://ftpmaster.internal/ubuntu/ trusty/main libudev1 i386 204-5ubuntu18 [34.4 kB]
Get:23 http://ftpmaster.internal/ubuntu/ trusty/main ifupdown i386 0.7.47.2ubuntu4 [51.2 kB]
Get:24 http://ftpmaster.internal/ubuntu/ trusty/main upstart i386 1.12.1-0ubuntu1 [367 kB]
Get:25 http://ftpmaster.internal/ubuntu/ trusty/main libc6-dev i386 2.19-0ubuntu5 [1555 kB]
Get:26 http://ftpmaster.internal/ubuntu/ trusty/main libc-dev-bin i386 2.19-0ubuntu5 [63.3 kB]
Get:27 http://ftpmaster.internal/ubuntu/ trusty-proposed/main linux-libc-dev i386 3.13.0-24.46 [781 kB]
Get:28 http://ftpmaster.internal/ubuntu/ trusty/main gcc-4.9-base i386 4.9-20140406-0ubuntu1 [13.9 kB]
Get:29 http://ftpmaster.internal/ubuntu/ trusty/main libgcc1 i386 1:4.9-20140406-0ubuntu1 [47.8 kB]
Get:30 http://ftpmaster.internal/ubuntu/ trusty/main libc6 i386 2.19-0ubuntu5 [4017 kB]
Get:31 http://ftpmaster.internal/ubuntu/ trusty/main libdb5.3 i386 5.3.28-3ubuntu3 [651 kB]
Get:32 http://ftpmaster.internal/ubuntu/ trusty/main libitm1 i386 4.8.2-19ubuntu1 [28.5 kB]
Get:33 http://ftpmaster.internal/ubuntu/ trusty/main libgomp1 i386 4.8.2-19ubuntu1 [24.9 kB]
Get:34 http://ftpmaster.internal/ubuntu/ trusty/main libasan0 i386 4.8.2-19ubuntu1 [64.1 kB]
Get:35 http://ftpmaster.internal/ubuntu/ trusty/main libatomic1 i386 4.8.2-19ubuntu1 [8258 B]
Get:36 http://ftpmaster.internal/ubuntu/ trusty/main libquadmath0 i386 4.8.2-19ubuntu1 [187 kB]
Get:37 http://ftpmaster.internal/ubuntu/ trusty/main libcloog-isl4 i386 0.18.2-1 [57.6 kB]
Get:38 http://ftpmaster.internal/ubuntu/ trusty/main g++-4.8 i386 4.8.2-19ubuntu1 [7023 kB]
Get:39 http://ftpmaster.internal/ubuntu/ trusty/main gcc-4.8 i386 4.8.2-19ubuntu1 [4884 kB]
Get:40 http://ftpmaster.internal/ubuntu/ trusty/main cpp-4.8 i386 4.8.2-19ubuntu1 [4448 kB]
Get:41 http://ftpmaster.internal/ubuntu/ trusty/main libstdc++-4.8-dev i386 4.8.2-19ubuntu1 [1058 kB]
Get:42 http://ftpmaster.internal/ubuntu/ trusty/main binutils i386 2.24-5ubuntu2 [2111 kB]
Get:43 http://ftpmaster.internal/ubuntu/ trusty/main libgcc-4.8-dev i386 4.8.2-19ubuntu1 [1736 kB]
Get:44 http://ftpmaster.internal/ubuntu/ trusty/main gcc-4.8-base i386 4.8.2-19ubuntu1 [15.5 kB]
Get:45 http://ftpmaster.internal/ubuntu/ trusty/main libstdc++6 i386 4.8.2-19ubuntu1 [262 kB]
Get:46 http://ftpmaster.internal/ubuntu/ trusty/main libapt-pkg4.12 i386 1.0.1ubuntu2 [633 kB]
Get:47 http://ftpmaster.internal/ubuntu/ trusty/main readline-common all 6.3-4ubuntu2 [51.2 kB]
Get:48 http://ftpmaster.internal/ubuntu/ trusty/main libncursesw5 i386 5.9+20140118-1ubuntu1 [122 kB]
Get:49 http://ftpmaster.internal/ubuntu/ trusty/main libtinfo5 i386 5.9+20140118-1ubuntu1 [70.8 kB]
Get:50 http://ftpmaster.internal/ubuntu/ trusty/main libncurses5 i386 5.9+20140118-1ubuntu1 [93.8 kB]
Get:51 http://ftpmaster.internal/ubuntu/ trusty/main libreadline6 i386 6.3-4ubuntu2 [111 kB]
Get:52 http://ftpmaster.internal/ubuntu/ trusty/main gpgv i386 1.4.16-1ubuntu2 [152 kB]
Get:53 http://ftpmaster.internal/ubuntu/ trusty/main gnupg i386 1.4.16-1ubuntu2 [591 kB]
Get:54 http://ftpmaster.internal/ubuntu/ trusty/main apt i386 1.0.1ubuntu2 [954 kB]
Get:55 http://ftpmaster.internal/ubuntu/ trusty/main base-passwd i386 3.5.33 [47.7 kB]
Get:56 http://ftpmaster.internal/ubuntu/ trusty/main bsdutils i386 1:2.20.1-5.1ubuntu18 [34.2 kB]
Get:57 http://ftpmaster.internal/ubuntu/ trusty/main ncurses-base all 5.9+20140118-1ubuntu1 [16.6 kB]
Get:58 http://ftpmaster.internal/ubuntu/ trusty/main libattr1 i386 1:2.4.47-1ubuntu1 [9414 B]
Get:59 http://ftpmaster.internal/ubuntu/ trusty/main libmount1 i386 2.20.1-5.1ubuntu18 [59.8 kB]
Get:60 http://ftpmaster.internal/ubuntu/ trusty/main libffi6 i386 3.1~rc1+r3.0.13-12 [14.4 kB]
Get:61 http://ftpmaster.internal/ubuntu/ trusty/main libp11-kit0 i386 0.20.2-2ubuntu2 [71.4 kB]
Get:62 http://ftpmaster.internal/ubuntu/ trusty/main libtasn1-6 i386 3.4-3 [42.5 kB]
Get:63 http://ftpmaster.internal/ubuntu/ trusty/main libgnutls26 i386 2.12.23-12ubuntu2 [374 kB]
Get:64 http://ftpmaster.internal/ubuntu/ trusty/main libssl1.0.0 i386 1.0.1f-1ubuntu2 [778 kB]
Get:65 http://ftpmaster.internal/ubuntu/ trusty/main initramfs-tools all 0.103ubuntu4 [44.3 kB]
Get:66 http://ftpmaster.internal/ubuntu/ trusty/main initramfs-tools-bin i386 0.103ubuntu4 [8726 B]
Get:67 http://ftpmaster.internal/ubuntu/ trusty/main kmod i386 15-0ubuntu6 [86.0 kB]
Get:68 http://ftpmaster.internal/ubuntu/ trusty/main module-init-tools all 15-0ubuntu6 [1938 B]
Get:69 http://ftpmaster.internal/ubuntu/ trusty/main plymouth i386 0.8.8-0ubuntu16 [99.1 kB]
Get:70 http://ftpmaster.internal/ubuntu/ trusty/main libpng12-0 i386 1.2.50-1ubuntu2 [118 kB]
Get:71 http://ftpmaster.internal/ubuntu/ trusty/main libplymouth2 i386 0.8.8-0ubuntu16 [76.9 kB]
Get:72 http://ftpmaster.internal/ubuntu/ trusty/main mawk i386 1.3.3-17ubuntu2 [75.6 kB]
Get:73 http://ftpmaster.internal/ubuntu/ trusty/main libk5crypto3 i386 1.12+dfsg-2ubuntu4 [77.6 kB]
Get:74 http://ftpmaster.internal/ubuntu/ trusty/main libgssapi-krb5-2 i386 1.12+dfsg-2ubuntu4 [111 kB]
Get:75 http://ftpmaster.internal/ubuntu/ trusty/main libkrb5-3 i386 1.12+dfsg-2ubuntu4 [260 kB]
Get:76 http://ftpmaster.internal/ubuntu/ trusty/main libkrb5support0 i386 1.12+dfsg-2ubuntu4 [29.8 kB]
Get:77 http://ftpmaster.internal/ubuntu/ trusty/main libldap-2.4-2 i386 2.4.31-1+nmu2ubuntu8 [150 kB]
Get:78 http://ftpmaster.internal/ubuntu/ trusty/main libcurl3-gnutls i386 7.35.0-1ubuntu2 [166 kB]
Get:79 http://ftpmaster.internal/ubuntu/ trusty/main multiarch-support i386 2.19-0ubuntu5 [4486 B]
Get:80 http://ftpmaster.internal/ubuntu/ trusty/main apt-transport-https i386 1.0.1ubuntu2 [25.4 kB]
Get:81 http://ftpmaster.internal/ubuntu/ trusty/main openssl i386 1.0.1f-1ubuntu2 [479 kB]
Get:82 http://ftpmaster.internal/ubuntu/ trusty/main cpp i386 4:4.8.2-1ubuntu6 [27.4 kB]
Get:83 http://ftpmaster.internal/ubuntu/ trusty/main dpkg-dev all 1.17.5ubuntu5 [726 kB]
Get:84 http://ftpmaster.internal/ubuntu/ trusty/main libdpkg-perl all 1.17.5ubuntu5 [178 kB]
Get:85 http://ftpmaster.internal/ubuntu/ trusty/main libfakeroot i386 1.20-3ubuntu2 [25.4 kB]
Get:86 http://ftpmaster.internal/ubuntu/ trusty/main fakeroot i386 1.20-3ubuntu2 [55.4 kB]
Get:87 http://ftpmaster.internal/ubuntu/ trusty/main gcc i386 4:4.8.2-1ubuntu6 [5096 B]
Get:88 http://ftpmaster.internal/ubuntu/ trusty/main g++ i386 4:4.8.2-1ubuntu6 [1500 B]
Get:89 http://ftpmaster.internal/ubuntu/ trusty/main pkg-create-dbgsym all 0.64 [7564 B]
Get:90 http://ftpmaster.internal/ubuntu/ trusty/main pkgbinarymangler all 121 [28.4 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 49.3 MB in 3s (13.3 MB/s)
(Reading database ... 11760 files and directories currently installed.)
Preparing to unpack .../base-files_7.2ubuntu5_i386.deb ...
Unpacking base-files (7.2ubuntu5) over (7.2ubuntu3) ...
Setting up base-files (7.2ubuntu5) ...
Installing new version of config file /etc/issue ...
Installing new version of config file /etc/issue.net ...
Installing new version of config file /etc/lsb-release ...
Installing new version of config file /etc/os-release ...
(Reading database ... 11760 files and directories currently installed.)
Preparing to unpack .../bash_4.3-6ubuntu1_i386.deb ...
Unpacking bash (4.3-6ubuntu1) over (4.2-5ubuntu3) ...
Setting up bash (4.3-6ubuntu1) ...
update-alternatives: using /usr/share/man/man7/bash-builtins.7.gz to provide /usr/share/man/man7/builtins.7.gz (builtins.7.gz) in auto mode
(Reading database ... 11761 files and directories currently installed.)
Preparing to unpack .../coreutils_8.21-1ubuntu5_i386.deb ...
Unpacking coreutils (8.21-1ubuntu5) over (8.21-1ubuntu4) ...
Setting up coreutils (8.21-1ubuntu5) ...
(Reading database ... 11761 files and directories currently installed.)
Preparing to unpack .../dpkg_1.17.5ubuntu5_i386.deb ...
Unpacking dpkg (1.17.5ubuntu5) over (1.17.5ubuntu4) ...
Setting up dpkg (1.17.5ubuntu5) ...
(Reading database ... 11761 files and directories currently installed.)
Preparing to unpack .../mount_2.20.1-5.1ubuntu18_i386.deb ...
Unpacking mount (2.20.1-5.1ubuntu18) over (2.20.1-5.1ubuntu14) ...
Setting up mount (2.20.1-5.1ubuntu18) ...
(Reading database ... 11761 files and directories currently installed.)
Preparing to unpack .../ncurses-bin_5.9+20140118-1ubuntu1_i386.deb ...
Unpacking ncurses-bin (5.9+20140118-1ubuntu1) over (5.9+20131221-1ubuntu1) ...
Setting up ncurses-bin (5.9+20140118-1ubuntu1) ...
(Reading database ... 11761 files and directories currently installed.)
Preparing to unpack .../perl_5.18.2-2ubuntu1_i386.deb ...
Unpacking perl (5.18.2-2ubuntu1) over (5.18.2-2) ...
Preparing to unpack .../perl-base_5.18.2-2ubuntu1_i386.deb ...
Unpacking perl-base (5.18.2-2ubuntu1) over (5.18.2-2) ...
Setting up perl-base (5.18.2-2ubuntu1) ...
(Reading database ... 11761 files and directories currently installed.)
Preparing to unpack .../perl-modules_5.18.2-2ubuntu1_all.deb ...
Unpacking perl-modules (5.18.2-2ubuntu1) over (5.18.2-2) ...
Preparing to unpack .../libc-bin_2.19-0ubuntu5_i386.deb ...
Unpacking libc-bin (2.19-0ubuntu5) over (2.19-0ubuntu2) ...
Preparing to unpack .../libc6_2.19-0ubuntu5_i386.deb ...
Unpacking libc6:i386 (2.19-0ubuntu5) over (2.19-0ubuntu2) ...
Preparing to unpack .../libgcc1_1%3a4.9-20140406-0ubuntu1_i386.deb ...
Unpacking libgcc1:i386 (1:4.9-20140406-0ubuntu1) over (1:4.9-20140222-0ubuntu1) ...
Preparing to unpack .../gcc-4.9-base_4.9-20140406-0ubuntu1_i386.deb ...
Unpacking gcc-4.9-base:i386 (4.9-20140406-0ubuntu1) over (4.9-20140222-0ubuntu1) ...
Setting up gcc-4.9-base:i386 (4.9-20140406-0ubuntu1) ...
Setting up libgcc1:i386 (1:4.9-20140406-0ubuntu1) ...
Setting up libc6:i386 (2.19-0ubuntu5) ...
Setting up libc-bin (2.19-0ubuntu5) ...
(Reading database ... 11761 files and directories currently installed.)
Preparing to unpack .../sysv-rc_2.88dsf-41ubuntu6_all.deb ...
Unpacking sysv-rc (2.88dsf-41ubuntu6) over (2.88dsf-41ubuntu5) ...
Preparing to unpack .../sysvinit-utils_2.88dsf-41ubuntu6_i386.deb ...
Unpacking sysvinit-utils (2.88dsf-41ubuntu6) over (2.88dsf-41ubuntu5) ...
Setting up sysvinit-utils (2.88dsf-41ubuntu6) ...
Installing new version of config file /etc/init/startpar-bridge.conf ...
Setting up sysv-rc (2.88dsf-41ubuntu6) ...
(Reading database ... 11761 files and directories currently installed.)
Preparing to unpack .../initscripts_2.88dsf-41ubuntu6_i386.deb ...
Unpacking initscripts (2.88dsf-41ubuntu6) over (2.88dsf-41ubuntu5) ...
Preparing to unpack .../libdbus-1-3_1.6.18-0ubuntu4_i386.deb ...
Unpacking libdbus-1-3:i386 (1.6.18-0ubuntu4) over (1.6.18-0ubuntu3) ...
Selecting previously unselected package libcgmanager0:i386.
Preparing to unpack .../libcgmanager0_0.24-0ubuntu4_i386.deb ...
Unpacking libcgmanager0:i386 (0.24-0ubuntu4) ...
Preparing to unpack .../libuuid1_2.20.1-5.1ubuntu18_i386.deb ...
Unpacking libuuid1:i386 (2.20.1-5.1ubuntu18) over (2.20.1-5.1ubuntu14) ...
Setting up libuuid1:i386 (2.20.1-5.1ubuntu18) ...
Processing triggers for libc-bin (2.19-0ubuntu5) ...
(Reading database ... 11766 files and directories currently installed.)
Preparing to unpack .../libblkid1_2.20.1-5.1ubuntu18_i386.deb ...
Unpacking libblkid1:i386 (2.20.1-5.1ubuntu18) over (2.20.1-5.1ubuntu14) ...
Setting up libblkid1:i386 (2.20.1-5.1ubuntu18) ...
Processing triggers for libc-bin (2.19-0ubuntu5) ...
(Reading database ... 11766 files and directories currently installed.)
Preparing to unpack .../libkmod2_15-0ubuntu6_i386.deb ...
Unpacking libkmod2:i386 (15-0ubuntu6) over (15-0ubuntu5) ...
Preparing to unpack .../tzdata_2014b-1_all.deb ...
Unpacking tzdata (2014b-1) over (2013i-1) ...
Setting up tzdata (2014b-1) ...
Current default time zone: 'Etc/UTC'
Local time is now: Fri Apr 11 13:32:41 UTC 2014.
Universal Time is now: Fri Apr 11 13:32:41 UTC 2014.
Run 'dpkg-reconfigure tzdata' if you wish to change it.
(Reading database ... 11769 files and directories currently installed.)
Preparing to unpack .../util-linux_2.20.1-5.1ubuntu18_i386.deb ...
Unpacking util-linux (2.20.1-5.1ubuntu18) over (2.20.1-5.1ubuntu14) ...
Setting up util-linux (2.20.1-5.1ubuntu18) ...
(Reading database ... 11769 files and directories currently installed.)
Preparing to unpack .../udev_204-5ubuntu18_i386.deb ...
Adding 'diversion of /bin/udevadm to /bin/udevadm.upgrade by fake-udev'
Unpacking udev (204-5ubuntu18) over (204-5ubuntu11) ...
Preparing to unpack .../libudev1_204-5ubuntu18_i386.deb ...
Unpacking libudev1:i386 (204-5ubuntu18) over (204-5ubuntu11) ...
Preparing to unpack .../ifupdown_0.7.47.2ubuntu4_i386.deb ...
Unpacking ifupdown (0.7.47.2ubuntu4) over (0.7.47.2ubuntu1) ...
Preparing to unpack .../upstart_1.12.1-0ubuntu1_i386.deb ...
Unpacking upstart (1.12.1-0ubuntu1) over (1.11-0ubuntu5) ...
Preparing to unpack .../libc6-dev_2.19-0ubuntu5_i386.deb ...
Unpacking libc6-dev:i386 (2.19-0ubuntu5) over (2.19-0ubuntu2) ...
Preparing to unpack .../libc-dev-bin_2.19-0ubuntu5_i386.deb ...
Unpacking libc-dev-bin (2.19-0ubuntu5) over (2.19-0ubuntu2) ...
Preparing to unpack .../linux-libc-dev_3.13.0-24.46_i386.deb ...
Unpacking linux-libc-dev:i386 (3.13.0-24.46) over (3.13.0-12.32) ...
Preparing to unpack .../libdb5.3_5.3.28-3ubuntu3_i386.deb ...
Unpacking libdb5.3:i386 (5.3.28-3ubuntu3) over (5.3.28-3ubuntu1) ...
Setting up libdb5.3:i386 (5.3.28-3ubuntu3) ...
Processing triggers for libc-bin (2.19-0ubuntu5) ...
(Reading database ... 11735 files and directories currently installed.)
Preparing to unpack .../libitm1_4.8.2-19ubuntu1_i386.deb ...
Unpacking libitm1:i386 (4.8.2-19ubuntu1) over (4.8.2-16ubuntu3) ...
Preparing to unpack .../libgomp1_4.8.2-19ubuntu1_i386.deb ...
Unpacking libgomp1:i386 (4.8.2-19ubuntu1) over (4.8.2-16ubuntu3) ...
Preparing to unpack .../libasan0_4.8.2-19ubuntu1_i386.deb ...
Unpacking libasan0:i386 (4.8.2-19ubuntu1) over (4.8.2-16ubuntu3) ...
Preparing to unpack .../libatomic1_4.8.2-19ubuntu1_i386.deb ...
Unpacking libatomic1:i386 (4.8.2-19ubuntu1) over (4.8.2-16ubuntu3) ...
Preparing to unpack .../libquadmath0_4.8.2-19ubuntu1_i386.deb ...
Unpacking libquadmath0:i386 (4.8.2-19ubuntu1) over (4.8.2-16ubuntu3) ...
Preparing to unpack .../libcloog-isl4_0.18.2-1_i386.deb ...
Unpacking libcloog-isl4:i386 (0.18.2-1) over (0.18.1-3) ...
Preparing to unpack .../g++-4.8_4.8.2-19ubuntu1_i386.deb ...
Unpacking g++-4.8 (4.8.2-19ubuntu1) over (4.8.2-16ubuntu3) ...
Preparing to unpack .../gcc-4.8_4.8.2-19ubuntu1_i386.deb ...
Unpacking gcc-4.8 (4.8.2-19ubuntu1) over (4.8.2-16ubuntu3) ...
Preparing to unpack .../cpp-4.8_4.8.2-19ubuntu1_i386.deb ...
Unpacking cpp-4.8 (4.8.2-19ubuntu1) over (4.8.2-16ubuntu3) ...
Preparing to unpack .../libstdc++-4.8-dev_4.8.2-19ubuntu1_i386.deb ...
Unpacking libstdc++-4.8-dev:i386 (4.8.2-19ubuntu1) over (4.8.2-16ubuntu3) ...
Preparing to unpack .../binutils_2.24-5ubuntu2_i386.deb ...
Unpacking binutils (2.24-5ubuntu2) over (2.24-2ubuntu3) ...
Preparing to unpack .../libgcc-4.8-dev_4.8.2-19ubuntu1_i386.deb ...
Unpacking libgcc-4.8-dev:i386 (4.8.2-19ubuntu1) over (4.8.2-16ubuntu3) ...
Preparing to unpack .../gcc-4.8-base_4.8.2-19ubuntu1_i386.deb ...
Unpacking gcc-4.8-base:i386 (4.8.2-19ubuntu1) over (4.8.2-16ubuntu3) ...
Setting up gcc-4.8-base:i386 (4.8.2-19ubuntu1) ...
(Reading database ... 11776 files and directories currently installed.)
Preparing to unpack .../libstdc++6_4.8.2-19ubuntu1_i386.deb ...
Unpacking libstdc++6:i386 (4.8.2-19ubuntu1) over (4.8.2-16ubuntu3) ...
Setting up libstdc++6:i386 (4.8.2-19ubuntu1) ...
Processing triggers for libc-bin (2.19-0ubuntu5) ...
(Reading database ... 11776 files and directories currently installed.)
Preparing to unpack .../libapt-pkg4.12_1.0.1ubuntu2_i386.deb ...
Unpacking libapt-pkg4.12:i386 (1.0.1ubuntu2) over (0.9.15.4ubuntu1) ...
Setting up libapt-pkg4.12:i386 (1.0.1ubuntu2) ...
Processing triggers for libc-bin (2.19-0ubuntu5) ...
(Reading database ... 11776 files and directories currently installed.)
Preparing to unpack .../readline-common_6.3-4ubuntu2_all.deb ...
Unpacking readline-common (6.3-4ubuntu2) over (6.2-9ubuntu1) ...
Setting up readline-common (6.3-4ubuntu2) ...
(Reading database ... 11776 files and directories currently installed.)
Preparing to unpack .../libncursesw5_5.9+20140118-1ubuntu1_i386.deb ...
Unpacking libncursesw5:i386 (5.9+20140118-1ubuntu1) over (5.9+20131221-1ubuntu1) ...
Preparing to unpack .../libtinfo5_5.9+20140118-1ubuntu1_i386.deb ...
Unpacking libtinfo5:i386 (5.9+20140118-1ubuntu1) over (5.9+20131221-1ubuntu1) ...
Setting up libtinfo5:i386 (5.9+20140118-1ubuntu1) ...
Processing triggers for libc-bin (2.19-0ubuntu5) ...
(Reading database ... 11776 files and directories currently installed.)
Preparing to unpack .../libncurses5_5.9+20140118-1ubuntu1_i386.deb ...
Unpacking libncurses5:i386 (5.9+20140118-1ubuntu1) over (5.9+20131221-1ubuntu1) ...
Setting up libncurses5:i386 (5.9+20140118-1ubuntu1) ...
Processing triggers for libc-bin (2.19-0ubuntu5) ...
(Reading database ... 11776 files and directories currently installed.)
Preparing to unpack .../libreadline6_6.3-4ubuntu2_i386.deb ...
Unpacking libreadline6:i386 (6.3-4ubuntu2) over (6.2-9ubuntu1) ...
Setting up libreadline6:i386 (6.3-4ubuntu2) ...
Processing triggers for libc-bin (2.19-0ubuntu5) ...
(Reading database ... 11776 files and directories currently installed.)
Preparing to unpack .../gpgv_1.4.16-1ubuntu2_i386.deb ...
Unpacking gpgv (1.4.16-1ubuntu2) over (1.4.16-1ubuntu1) ...
Setting up gpgv (1.4.16-1ubuntu2) ...
(Reading database ... 11776 files and directories currently installed.)
Preparing to unpack .../gnupg_1.4.16-1ubuntu2_i386.deb ...
Unpacking gnupg (1.4.16-1ubuntu2) over (1.4.16-1ubuntu1) ...
Setting up gnupg (1.4.16-1ubuntu2) ...
(Reading database ... 11776 files and directories currently installed.)
Preparing to unpack .../apt_1.0.1ubuntu2_i386.deb ...
Unpacking apt (1.0.1ubuntu2) over (0.9.15.4ubuntu1) ...
Setting up apt (1.0.1ubuntu2) ...
Installing new version of config file /etc/apt/apt.conf.d/01autoremove ...
Installing new version of config file /etc/kernel/postinst.d/apt-auto-removal ...
Installing new version of config file /etc/cron.daily/apt ...
Processing triggers for libc-bin (2.19-0ubuntu5) ...
(Reading database ... 11770 files and directories currently installed.)
Preparing to unpack .../base-passwd_3.5.33_i386.deb ...
Unpacking base-passwd (3.5.33) over (3.5.32) ...
Setting up base-passwd (3.5.33) ...
(Reading database ... 11770 files and directories currently installed.)
Preparing to unpack .../bsdutils_1%3a2.20.1-5.1ubuntu18_i386.deb ...
Unpacking bsdutils (1:2.20.1-5.1ubuntu18) over (1:2.20.1-5.1ubuntu14) ...
Setting up bsdutils (1:2.20.1-5.1ubuntu18) ...
(Reading database ... 11770 files and directories currently installed.)
Preparing to unpack .../ncurses-base_5.9+20140118-1ubuntu1_all.deb ...
Unpacking ncurses-base (5.9+20140118-1ubuntu1) over (5.9+20131221-1ubuntu1) ...
Setting up ncurses-base (5.9+20140118-1ubuntu1) ...
(Reading database ... 11770 files and directories currently installed.)
Preparing to unpack .../libattr1_1%3a2.4.47-1ubuntu1_i386.deb ...
Unpacking libattr1:i386 (1:2.4.47-1ubuntu1) over (1:2.4.47-1) ...
Setting up libattr1:i386 (1:2.4.47-1ubuntu1) ...
Processing triggers for libc-bin (2.19-0ubuntu5) ...
(Reading database ... 11770 files and directories currently installed.)
Preparing to unpack .../libmount1_2.20.1-5.1ubuntu18_i386.deb ...
Unpacking libmount1:i386 (2.20.1-5.1ubuntu18) over (2.20.1-5.1ubuntu14) ...
Setting up libmount1:i386 (2.20.1-5.1ubuntu18) ...
Processing triggers for libc-bin (2.19-0ubuntu5) ...
(Reading database ... 11770 files and directories currently installed.)
Preparing to unpack .../libffi6_3.1~rc1+r3.0.13-12_i386.deb ...
Unpacking libffi6:i386 (3.1~rc1+r3.0.13-12) over (3.0.13-12) ...
Preparing to unpack .../libp11-kit0_0.20.2-2ubuntu2_i386.deb ...
Unpacking libp11-kit0:i386 (0.20.2-2ubuntu2) over (0.20.2-1ubuntu1) ...
Selecting previously unselected package libtasn1-6:i386.
Preparing to unpack .../libtasn1-6_3.4-3_i386.deb ...
Unpacking libtasn1-6:i386 (3.4-3) ...
Preparing to unpack .../libgnutls26_2.12.23-12ubuntu2_i386.deb ...
Unpacking libgnutls26:i386 (2.12.23-12ubuntu2) over (2.12.23-1ubuntu5) ...
Preparing to unpack .../libssl1.0.0_1.0.1f-1ubuntu2_i386.deb ...
Unpacking libssl1.0.0:i386 (1.0.1f-1ubuntu2) over (1.0.1f-1ubuntu1) ...
Preparing to unpack .../initramfs-tools_0.103ubuntu4_all.deb ...
Unpacking initramfs-tools (0.103ubuntu4) over (0.103ubuntu3) ...
Preparing to unpack .../initramfs-tools-bin_0.103ubuntu4_i386.deb ...
Unpacking initramfs-tools-bin (0.103ubuntu4) over (0.103ubuntu3) ...
Preparing to unpack .../kmod_15-0ubuntu6_i386.deb ...
Unpacking kmod (15-0ubuntu6) over (15-0ubuntu5) ...
Preparing to unpack .../module-init-tools_15-0ubuntu6_all.deb ...
Unpacking module-init-tools (15-0ubuntu6) over (15-0ubuntu5) ...
Preparing to unpack .../plymouth_0.8.8-0ubuntu16_i386.deb ...
Unpacking plymouth (0.8.8-0ubuntu16) over (0.8.8-0ubuntu15) ...
Preparing to unpack .../libpng12-0_1.2.50-1ubuntu2_i386.deb ...
Unpacking libpng12-0:i386 (1.2.50-1ubuntu2) over (1.2.50-1ubuntu1) ...
Preparing to unpack .../libplymouth2_0.8.8-0ubuntu16_i386.deb ...
Unpacking libplymouth2:i386 (0.8.8-0ubuntu16) over (0.8.8-0ubuntu15) ...
Preparing to unpack .../mawk_1.3.3-17ubuntu2_i386.deb ...
Unpacking mawk (1.3.3-17ubuntu2) over (1.3.3-17ubuntu1) ...
Preparing to unpack .../libk5crypto3_1.12+dfsg-2ubuntu4_i386.deb ...
Unpacking libk5crypto3:i386 (1.12+dfsg-2ubuntu4) over (1.12+dfsg-2ubuntu2) ...
Preparing to unpack .../libgssapi-krb5-2_1.12+dfsg-2ubuntu4_i386.deb ...
Unpacking libgssapi-krb5-2:i386 (1.12+dfsg-2ubuntu4) over (1.12+dfsg-2ubuntu2) ...
Preparing to unpack .../libkrb5-3_1.12+dfsg-2ubuntu4_i386.deb ...
Unpacking libkrb5-3:i386 (1.12+dfsg-2ubuntu4) over (1.12+dfsg-2ubuntu2) ...
Preparing to unpack .../libkrb5support0_1.12+dfsg-2ubuntu4_i386.deb ...
Unpacking libkrb5support0:i386 (1.12+dfsg-2ubuntu4) over (1.12+dfsg-2ubuntu2) ...
Preparing to unpack .../libldap-2.4-2_2.4.31-1+nmu2ubuntu8_i386.deb ...
Unpacking libldap-2.4-2:i386 (2.4.31-1+nmu2ubuntu8) over (2.4.31-1+nmu2ubuntu5) ...
Preparing to unpack .../libcurl3-gnutls_7.35.0-1ubuntu2_i386.deb ...
Unpacking libcurl3-gnutls:i386 (7.35.0-1ubuntu2) over (7.35.0-1ubuntu1) ...
Preparing to unpack .../multiarch-support_2.19-0ubuntu5_i386.deb ...
Unpacking multiarch-support (2.19-0ubuntu5) over (2.19-0ubuntu2) ...
Setting up multiarch-support (2.19-0ubuntu5) ...
(Reading database ... 11779 files and directories currently installed.)
Preparing to unpack .../apt-transport-https_1.0.1ubuntu2_i386.deb ...
Unpacking apt-transport-https (1.0.1ubuntu2) over (0.9.15.4ubuntu1) ...
Preparing to unpack .../openssl_1.0.1f-1ubuntu2_i386.deb ...
Unpacking openssl (1.0.1f-1ubuntu2) over (1.0.1f-1ubuntu1) ...
Preparing to unpack .../cpp_4%3a4.8.2-1ubuntu6_i386.deb ...
Unpacking cpp (4:4.8.2-1ubuntu6) over (4:4.8.2-1ubuntu4) ...
Preparing to unpack .../dpkg-dev_1.17.5ubuntu5_all.deb ...
Unpacking dpkg-dev (1.17.5ubuntu5) over (1.17.5ubuntu4) ...
Preparing to unpack .../libdpkg-perl_1.17.5ubuntu5_all.deb ...
Unpacking libdpkg-perl (1.17.5ubuntu5) over (1.17.5ubuntu4) ...
Preparing to unpack .../libfakeroot_1.20-3ubuntu2_i386.deb ...
Unpacking libfakeroot:i386 (1.20-3ubuntu2) over (1.20-3ubuntu1) ...
Preparing to unpack .../fakeroot_1.20-3ubuntu2_i386.deb ...
Unpacking fakeroot (1.20-3ubuntu2) over (1.20-3ubuntu1) ...
Preparing to unpack .../gcc_4%3a4.8.2-1ubuntu6_i386.deb ...
Removing old gcc doc directory.
Unpacking gcc (4:4.8.2-1ubuntu6) over (4:4.8.2-1ubuntu4) ...
Preparing to unpack .../g++_4%3a4.8.2-1ubuntu6_i386.deb ...
Unpacking g++ (4:4.8.2-1ubuntu6) over (4:4.8.2-1ubuntu4) ...
Preparing to unpack .../pkg-create-dbgsym_0.64_all.deb ...
Unpacking pkg-create-dbgsym (0.64) over (0.63) ...
Preparing to unpack .../pkgbinarymangler_121_all.deb ...
Unpacking pkgbinarymangler (121) over (119) ...
Setting up libdbus-1-3:i386 (1.6.18-0ubuntu4) ...
Setting up libcgmanager0:i386 (0.24-0ubuntu4) ...
Setting up libudev1:i386 (204-5ubuntu18) ...
Setting up libkmod2:i386 (15-0ubuntu6) ...
Setting up udev (204-5ubuntu18) ...
invoke-rc.d: policy-rc.d denied execution of restart.
Removing 'diversion of /bin/udevadm to /bin/udevadm.upgrade by fake-udev'
update-initramfs: deferring update (trigger activated)
Setting up libc-dev-bin (2.19-0ubuntu5) ...
Setting up linux-libc-dev:i386 (3.13.0-24.46) ...
Setting up libc6-dev:i386 (2.19-0ubuntu5) ...
Setting up libitm1:i386 (4.8.2-19ubuntu1) ...
Setting up libgomp1:i386 (4.8.2-19ubuntu1) ...
Setting up libasan0:i386 (4.8.2-19ubuntu1) ...
Setting up libatomic1:i386 (4.8.2-19ubuntu1) ...
Setting up libquadmath0:i386 (4.8.2-19ubuntu1) ...
Setting up libcloog-isl4:i386 (0.18.2-1) ...
Setting up cpp-4.8 (4.8.2-19ubuntu1) ...
Setting up binutils (2.24-5ubuntu2) ...
Setting up libgcc-4.8-dev:i386 (4.8.2-19ubuntu1) ...
Setting up gcc-4.8 (4.8.2-19ubuntu1) ...
Setting up libstdc++-4.8-dev:i386 (4.8.2-19ubuntu1) ...
Setting up g++-4.8 (4.8.2-19ubuntu1) ...
Setting up libncursesw5:i386 (5.9+20140118-1ubuntu1) ...
Setting up libffi6:i386 (3.1~rc1+r3.0.13-12) ...
Setting up libp11-kit0:i386 (0.20.2-2ubuntu2) ...
Setting up libtasn1-6:i386 (3.4-3) ...
Setting up libgnutls26:i386 (2.12.23-12ubuntu2) ...
Setting up libssl1.0.0:i386 (1.0.1f-1ubuntu2) ...
Setting up initramfs-tools-bin (0.103ubuntu4) ...
Setting up kmod (15-0ubuntu6) ...
Installing new version of config file /etc/init/kmod.conf ...
Setting up module-init-tools (15-0ubuntu6) ...
Setting up initramfs-tools (0.103ubuntu4) ...
update-initramfs: deferring update (trigger activated)
Setting up libpng12-0:i386 (1.2.50-1ubuntu2) ...
Setting up libplymouth2:i386 (0.8.8-0ubuntu16) ...
Setting up mawk (1.3.3-17ubuntu2) ...
Setting up libkrb5support0:i386 (1.12+dfsg-2ubuntu4) ...
Setting up libk5crypto3:i386 (1.12+dfsg-2ubuntu4) ...
Setting up libkrb5-3:i386 (1.12+dfsg-2ubuntu4) ...
Setting up libgssapi-krb5-2:i386 (1.12+dfsg-2ubuntu4) ...
Setting up libldap-2.4-2:i386 (2.4.31-1+nmu2ubuntu8) ...
Setting up libcurl3-gnutls:i386 (7.35.0-1ubuntu2) ...
Setting up apt-transport-https (1.0.1ubuntu2) ...
Setting up openssl (1.0.1f-1ubuntu2) ...
Setting up cpp (4:4.8.2-1ubuntu6) ...
Setting up libfakeroot:i386 (1.20-3ubuntu2) ...
Setting up fakeroot (1.20-3ubuntu2) ...
Setting up gcc (4:4.8.2-1ubuntu6) ...
Setting up g++ (4:4.8.2-1ubuntu6) ...
Setting up pkg-create-dbgsym (0.64) ...
Setting up pkgbinarymangler (121) ...
Setting up perl-modules (5.18.2-2ubuntu1) ...
Setting up initscripts (2.88dsf-41ubuntu6) ...
Setting up ifupdown (0.7.47.2ubuntu4) ...
Installing new version of config file /etc/init.d/networking ...
Installing new version of config file /etc/init/network-interface-container.conf ...
Installing new version of config file /etc/init/networking.conf ...
Installing new version of config file /etc/init/network-interface.conf ...
Setting up perl (5.18.2-2ubuntu1) ...
Setting up upstart (1.12.1-0ubuntu1) ...
Installing new version of config file /etc/init/wait-for-state.conf ...
Setting up plymouth (0.8.8-0ubuntu16) ...
Installing new version of config file /etc/init/plymouth-upstart-bridge.conf ...
update-initramfs: deferring update (trigger activated)
Setting up libdpkg-perl (1.17.5ubuntu5) ...
Setting up dpkg-dev (1.17.5ubuntu5) ...
Processing triggers for libc-bin (2.19-0ubuntu5) ...
Processing triggers for initramfs-tools (0.103ubuntu4) ...
RUN: /usr/share/launchpad-buildd/slavebin/sbuild-package ['sbuild-package', 'PACKAGEBUILD-5901808', 'i386', 'trusty-proposed', '--nolog', '--batch', '--archive=ubuntu', '--dist=trusty-proposed', '-A', '--purpose=PRIMARY', '--architecture=i386', '--comp=main', 'paste_1.7.5.1-6ubuntu3.dsc']
Initiating build PACKAGEBUILD-5901808 with 8 jobs across 8 processor cores.
Kernel reported to sbuild: 3.2.0-37-generic #58-Ubuntu SMP Thu Jan 24 15:28:10 UTC 2013 i686
Automatic build of paste_1.7.5.1-6ubuntu3 on panlong by sbuild/i386 1.170.5
Build started at 20140411-1334
******************************************************************************
paste_1.7.5.1-6ubuntu3.dsc exists in cwd
** Using build dependencies supplied by package:
Build-Depends: debhelper (>= 9)
Build-Depends-Indep: python-all (>= 2.6.6-3), python3-all, python-setuptools (>= 0.6b3-1~), python-sphinx (>= 1.0.7+dfsg-1~), python3-setuptools, python3-sphinx
Checking for already installed source dependencies...
debhelper: missing
python-all: missing
python3-all: missing
python-setuptools: missing
python-sphinx: missing
python3-setuptools: missing
python3-sphinx: missing
Checking for source dependency conflicts...
/usr/bin/sudo /usr/bin/apt-get --purge $CHROOT_OPTIONS -q -y install debhelper python-all python3-all python-setuptools python-sphinx python3-setuptools python3-sphinx
Reading package lists...
Building dependency tree...
Reading state information...
The following package was automatically installed and is no longer required:
libtasn1-3
Use 'apt-get autoremove' to remove it.
The following extra packages will be installed:
bsdmainutils dh-apparmor dh-python docutils-common file gettext gettext-base
groff-base intltool-debian libasprintf0c2 libcroco3 libexpat1 libglib2.0-0
libjs-jquery libjs-sphinxdoc libjs-underscore libmagic1 libmpdec2
libpipeline1 libpython-stdlib libpython2.7-minimal libpython2.7-stdlib
libpython3-stdlib libpython3.4-minimal libpython3.4-stdlib libunistring0
libxml2 man-db mime-support po-debconf python python-docutils python-jinja2
python-markupsafe python-minimal python-pkg-resources python-pygments
python-roman python2.7 python2.7-minimal python3 python3-docutils
python3-jinja2 python3-markupsafe python3-minimal python3-pkg-resources
python3-pygments python3-roman python3.4 python3.4-minimal sgml-base
sphinx-common xml-core
Suggested packages:
wamerican wordlist whois vacation dh-make apparmor-easyprof gettext-doc
groff javascript-common less www-browser libmail-box-perl python-doc
python-tk texlive-latex-recommended texlive-latex-base texlive-lang-french
fonts-linuxlibertine ttf-linux-libertine python-jinja2-doc python-distribute
python-distribute-doc ttf-bitstream-vera jsmath libjs-mathjax dvipng
texlive-latex-extra texlive-fonts-recommended python2.7-doc binfmt-support
python3-doc python3-tk python3.4-doc sgml-base-doc
Recommended packages:
curl wget lynx-cur libasprintf-dev libgettextpo-dev libglib2.0-data
shared-mime-info libmail-sendmail-perl python-pil libpaper-utils
docutils-doc python-chardet sphinx-doc python3-pil
The following NEW packages will be installed:
bsdmainutils debhelper dh-apparmor dh-python docutils-common file gettext
gettext-base groff-base intltool-debian libasprintf0c2 libcroco3 libexpat1
libglib2.0-0 libjs-jquery libjs-sphinxdoc libjs-underscore libmagic1
libmpdec2 libpipeline1 libpython-stdlib libpython2.7-minimal
libpython2.7-stdlib libpython3-stdlib libpython3.4-minimal
libpython3.4-stdlib libunistring0 libxml2 man-db mime-support po-debconf
python python-all python-docutils python-jinja2 python-markupsafe
python-minimal python-pkg-resources python-pygments python-roman
python-setuptools python-sphinx python2.7 python2.7-minimal python3
python3-all python3-docutils python3-jinja2 python3-markupsafe
python3-minimal python3-pkg-resources python3-pygments python3-roman
python3-setuptools python3-sphinx python3.4 python3.4-minimal sgml-base
sphinx-common xml-core
0 upgraded, 60 newly installed, 0 to remove and 0 not upgraded.
Need to get 17.5 MB of archives.
After this operation, 74.7 MB of additional disk space will be used.
Get:1 http://ftpmaster.internal/ubuntu/ trusty/main libexpat1 i386 2.1.0-4ubuntu1 [71.4 kB]
Get:2 http://ftpmaster.internal/ubuntu/ trusty/main libmagic1 i386 1:5.14-2ubuntu3 [184 kB]
Get:3 http://ftpmaster.internal/ubuntu/ trusty/main libmpdec2 i386 2.4.0-6 [73.3 kB]
Get:4 http://ftpmaster.internal/ubuntu/ trusty-proposed/main libpython3.4-minimal i386 3.4.0-2 [442 kB]
Get:5 http://ftpmaster.internal/ubuntu/ trusty/main mime-support all 3.54ubuntu1 [31.7 kB]
Get:6 http://ftpmaster.internal/ubuntu/ trusty-proposed/main libpython3.4-stdlib i386 3.4.0-2 [1990 kB]
Get:7 http://ftpmaster.internal/ubuntu/ trusty-proposed/main python3.4-minimal i386 3.4.0-2 [1201 kB]
Get:8 http://ftpmaster.internal/ubuntu/ trusty/main libasprintf0c2 i386 0.18.3.1-1ubuntu2 [6618 B]
Get:9 http://ftpmaster.internal/ubuntu/ trusty/main libglib2.0-0 i386 2.40.0-2 [1031 kB]
Get:10 http://ftpmaster.internal/ubuntu/ trusty/main libpipeline1 i386 1.3.0-1 [23.5 kB]
Get:11 http://ftpmaster.internal/ubuntu/ trusty/main libxml2 i386 2.9.1+dfsg1-3ubuntu4 [555 kB]
Get:12 http://ftpmaster.internal/ubuntu/ trusty/main groff-base i386 1.22.2-5 [1030 kB]
Get:13 http://ftpmaster.internal/ubuntu/ trusty/main bsdmainutils i386 9.0.5ubuntu1 [197 kB]
Get:14 http://ftpmaster.internal/ubuntu/ trusty/main man-db i386 2.6.7.1-1 [851 kB]
Get:15 http://ftpmaster.internal/ubuntu/ trusty/main sgml-base all 1.26+nmu4ubuntu1 [12.5 kB]
Get:16 http://ftpmaster.internal/ubuntu/ trusty/main libcroco3 i386 0.6.8-2ubuntu1 [81.1 kB]
Get:17 http://ftpmaster.internal/ubuntu/ trusty/main libunistring0 i386 0.9.3-5ubuntu3 [272 kB]
Get:18 http://ftpmaster.internal/ubuntu/ trusty/main libpython2.7-minimal i386 2.7.6-8 [306 kB]
Get:19 http://ftpmaster.internal/ubuntu/ trusty/main python2.7-minimal i386 2.7.6-8 [1118 kB]
Get:20 http://ftpmaster.internal/ubuntu/ trusty-proposed/main python3.4 i386 3.4.0-2 [163 kB]
Get:21 http://ftpmaster.internal/ubuntu/ trusty/main python3-minimal i386 3.4.0-0ubuntu2 [23.3 kB]
Get:22 http://ftpmaster.internal/ubuntu/ trusty/main libpython3-stdlib i386 3.4.0-0ubuntu2 [6928 B]
Get:23 http://ftpmaster.internal/ubuntu/ trusty/main python3 i386 3.4.0-0ubuntu2 [8676 B]
Get:24 http://ftpmaster.internal/ubuntu/ trusty/main dh-python all 1.20140128-1ubuntu8 [51.0 kB]
Get:25 http://ftpmaster.internal/ubuntu/ trusty/main file i386 1:5.14-2ubuntu3 [18.5 kB]
Get:26 http://ftpmaster.internal/ubuntu/ trusty/main gettext-base i386 0.18.3.1-1ubuntu2 [47.9 kB]
Get:27 http://ftpmaster.internal/ubuntu/ trusty/main xml-core all 0.13+nmu2 [23.3 kB]
Get:28 http://ftpmaster.internal/ubuntu/ trusty/main gettext i386 0.18.3.1-1ubuntu2 [815 kB]
Get:29 http://ftpmaster.internal/ubuntu/ trusty/main intltool-debian all 0.35.0+20060710.1 [31.6 kB]
Get:30 http://ftpmaster.internal/ubuntu/ trusty/main po-debconf all 1.0.16+nmu2ubuntu1 [210 kB]
Get:31 http://ftpmaster.internal/ubuntu/ trusty/main dh-apparmor all 2.8.95~2430-0ubuntu5 [11.3 kB]
Get:32 http://ftpmaster.internal/ubuntu/ trusty/main debhelper all 9.20131227ubuntu1 [604 kB]
Get:33 http://ftpmaster.internal/ubuntu/ trusty/main docutils-common all 0.11-3 [143 kB]
Get:34 http://ftpmaster.internal/ubuntu/ trusty/main libjs-jquery all 1.7.2+dfsg-2ubuntu1 [78.8 kB]
Get:35 http://ftpmaster.internal/ubuntu/ trusty/main libjs-underscore all 1.4.4-2ubuntu1 [45.6 kB]
Get:36 http://ftpmaster.internal/ubuntu/ trusty/main libjs-sphinxdoc all 1.2.2+dfsg-1ubuntu1 [41.2 kB]
Get:37 http://ftpmaster.internal/ubuntu/ trusty/main libpython2.7-stdlib i386 2.7.6-8 [1842 kB]
Get:38 http://ftpmaster.internal/ubuntu/ trusty/main libpython-stdlib i386 2.7.5-5ubuntu3 [7010 B]
Get:39 http://ftpmaster.internal/ubuntu/ trusty/main python2.7 i386 2.7.6-8 [197 kB]
Get:40 http://ftpmaster.internal/ubuntu/ trusty/main python-minimal i386 2.7.5-5ubuntu3 [27.5 kB]
Get:41 http://ftpmaster.internal/ubuntu/ trusty/main python i386 2.7.5-5ubuntu3 [133 kB]
Get:42 http://ftpmaster.internal/ubuntu/ trusty/main python-all i386 2.7.5-5ubuntu3 [984 B]
Get:43 http://ftpmaster.internal/ubuntu/ trusty/main python-roman all 2.0.0-1 [7758 B]
Get:44 http://ftpmaster.internal/ubuntu/ trusty/main python-docutils all 0.11-3 [348 kB]
Get:45 http://ftpmaster.internal/ubuntu/ trusty/main python-markupsafe i386 0.18-1build2 [14.3 kB]
Get:46 http://ftpmaster.internal/ubuntu/ trusty/main python-jinja2 all 2.7.2-2 [161 kB]
Get:47 http://ftpmaster.internal/ubuntu/ trusty/main python-pkg-resources all 3.3-1ubuntu1 [61.9 kB]
Get:48 http://ftpmaster.internal/ubuntu/ trusty/main python-pygments all 1.6+dfsg-1ubuntu1 [519 kB]
Get:49 http://ftpmaster.internal/ubuntu/ trusty/main python-setuptools all 3.3-1ubuntu1 [230 kB]
Get:50 http://ftpmaster.internal/ubuntu/ trusty/main sphinx-common all 1.2.2+dfsg-1ubuntu1 [392 kB]
Get:51 http://ftpmaster.internal/ubuntu/ trusty/main python-sphinx all 1.2.2+dfsg-1ubuntu1 [270 kB]
Get:52 http://ftpmaster.internal/ubuntu/ trusty/main python3-all i386 3.4.0-0ubuntu2 [980 B]
Get:53 http://ftpmaster.internal/ubuntu/ trusty/main python3-roman all 2.0.0-1 [7836 B]
Get:54 http://ftpmaster.internal/ubuntu/ trusty/main python3-docutils all 0.11-3 [347 kB]
Get:55 http://ftpmaster.internal/ubuntu/ trusty/main python3-markupsafe i386 0.18-1build2 [14.6 kB]
Get:56 http://ftpmaster.internal/ubuntu/ trusty/main python3-jinja2 all 2.7.2-2 [163 kB]
Get:57 http://ftpmaster.internal/ubuntu/ trusty/main python3-pkg-resources all 3.3-1ubuntu1 [31.6 kB]
Get:58 http://ftpmaster.internal/ubuntu/ trusty/main python3-pygments all 1.6+dfsg-1ubuntu1 [458 kB]
Get:59 http://ftpmaster.internal/ubuntu/ trusty/main python3-setuptools all 3.3-1ubuntu1 [144 kB]
Get:60 http://ftpmaster.internal/ubuntu/ trusty/main python3-sphinx all 1.2.2+dfsg-1ubuntu1 [270 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 17.5 MB in 2s (6752 kB/s)
Selecting previously unselected package libexpat1:i386.
(Reading database ... 11786 files and directories currently installed.)
Preparing to unpack .../libexpat1_2.1.0-4ubuntu1_i386.deb ...
Unpacking libexpat1:i386 (2.1.0-4ubuntu1) ...
Selecting previously unselected package libmagic1:i386.
Preparing to unpack .../libmagic1_1%3a5.14-2ubuntu3_i386.deb ...
Unpacking libmagic1:i386 (1:5.14-2ubuntu3) ...
Selecting previously unselected package libmpdec2:i386.
Preparing to unpack .../libmpdec2_2.4.0-6_i386.deb ...
Unpacking libmpdec2:i386 (2.4.0-6) ...
Selecting previously unselected package libpython3.4-minimal:i386.
Preparing to unpack .../libpython3.4-minimal_3.4.0-2_i386.deb ...
Unpacking libpython3.4-minimal:i386 (3.4.0-2) ...
Selecting previously unselected package mime-support.
Preparing to unpack .../mime-support_3.54ubuntu1_all.deb ...
Unpacking mime-support (3.54ubuntu1) ...
Selecting previously unselected package libpython3.4-stdlib:i386.
Preparing to unpack .../libpython3.4-stdlib_3.4.0-2_i386.deb ...
Unpacking libpython3.4-stdlib:i386 (3.4.0-2) ...
Selecting previously unselected package python3.4-minimal.
Preparing to unpack .../python3.4-minimal_3.4.0-2_i386.deb ...
Unpacking python3.4-minimal (3.4.0-2) ...
Selecting previously unselected package libasprintf0c2:i386.
Preparing to unpack .../libasprintf0c2_0.18.3.1-1ubuntu2_i386.deb ...
Unpacking libasprintf0c2:i386 (0.18.3.1-1ubuntu2) ...
Selecting previously unselected package libglib2.0-0:i386.
Preparing to unpack .../libglib2.0-0_2.40.0-2_i386.deb ...
Unpacking libglib2.0-0:i386 (2.40.0-2) ...
Selecting previously unselected package libpipeline1:i386.
Preparing to unpack .../libpipeline1_1.3.0-1_i386.deb ...
Unpacking libpipeline1:i386 (1.3.0-1) ...
Selecting previously unselected package libxml2:i386.
Preparing to unpack .../libxml2_2.9.1+dfsg1-3ubuntu4_i386.deb ...
Unpacking libxml2:i386 (2.9.1+dfsg1-3ubuntu4) ...
Selecting previously unselected package groff-base.
Preparing to unpack .../groff-base_1.22.2-5_i386.deb ...
Unpacking groff-base (1.22.2-5) ...
Selecting previously unselected package bsdmainutils.
Preparing to unpack .../bsdmainutils_9.0.5ubuntu1_i386.deb ...
Unpacking bsdmainutils (9.0.5ubuntu1) ...
Selecting previously unselected package man-db.
Preparing to unpack .../man-db_2.6.7.1-1_i386.deb ...
Unpacking man-db (2.6.7.1-1) ...
Selecting previously unselected package sgml-base.
Preparing to unpack .../sgml-base_1.26+nmu4ubuntu1_all.deb ...
Unpacking sgml-base (1.26+nmu4ubuntu1) ...
Selecting previously unselected package libcroco3:i386.
Preparing to unpack .../libcroco3_0.6.8-2ubuntu1_i386.deb ...
Unpacking libcroco3:i386 (0.6.8-2ubuntu1) ...
Selecting previously unselected package libunistring0:i386.
Preparing to unpack .../libunistring0_0.9.3-5ubuntu3_i386.deb ...
Unpacking libunistring0:i386 (0.9.3-5ubuntu3) ...
Selecting previously unselected package libpython2.7-minimal:i386.
Preparing to unpack .../libpython2.7-minimal_2.7.6-8_i386.deb ...
Unpacking libpython2.7-minimal:i386 (2.7.6-8) ...
Selecting previously unselected package python2.7-minimal.
Preparing to unpack .../python2.7-minimal_2.7.6-8_i386.deb ...
Unpacking python2.7-minimal (2.7.6-8) ...
Selecting previously unselected package python3.4.
Preparing to unpack .../python3.4_3.4.0-2_i386.deb ...
Unpacking python3.4 (3.4.0-2) ...
Selecting previously unselected package python3-minimal.
Preparing to unpack .../python3-minimal_3.4.0-0ubuntu2_i386.deb ...
Unpacking python3-minimal (3.4.0-0ubuntu2) ...
Selecting previously unselected package libpython3-stdlib:i386.
Preparing to unpack .../libpython3-stdlib_3.4.0-0ubuntu2_i386.deb ...
Unpacking libpython3-stdlib:i386 (3.4.0-0ubuntu2) ...
Selecting previously unselected package python3.
Preparing to unpack .../python3_3.4.0-0ubuntu2_i386.deb ...
Unpacking python3 (3.4.0-0ubuntu2) ...
Selecting previously unselected package dh-python.
Preparing to unpack .../dh-python_1.20140128-1ubuntu8_all.deb ...
Unpacking dh-python (1.20140128-1ubuntu8) ...
Selecting previously unselected package file.
Preparing to unpack .../file_1%3a5.14-2ubuntu3_i386.deb ...
Unpacking file (1:5.14-2ubuntu3) ...
Selecting previously unselected package gettext-base.
Preparing to unpack .../gettext-base_0.18.3.1-1ubuntu2_i386.deb ...
Unpacking gettext-base (0.18.3.1-1ubuntu2) ...
Selecting previously unselected package xml-core.
Preparing to unpack .../xml-core_0.13+nmu2_all.deb ...
Unpacking xml-core (0.13+nmu2) ...
Selecting previously unselected package gettext.
Preparing to unpack .../gettext_0.18.3.1-1ubuntu2_i386.deb ...
Unpacking gettext (0.18.3.1-1ubuntu2) ...
Selecting previously unselected package intltool-debian.
Preparing to unpack .../intltool-debian_0.35.0+20060710.1_all.deb ...
Unpacking intltool-debian (0.35.0+20060710.1) ...
Selecting previously unselected package po-debconf.
Preparing to unpack .../po-debconf_1.0.16+nmu2ubuntu1_all.deb ...
Unpacking po-debconf (1.0.16+nmu2ubuntu1) ...
Selecting previously unselected package dh-apparmor.
Preparing to unpack .../dh-apparmor_2.8.95~2430-0ubuntu5_all.deb ...
Unpacking dh-apparmor (2.8.95~2430-0ubuntu5) ...
Selecting previously unselected package debhelper.
Preparing to unpack .../debhelper_9.20131227ubuntu1_all.deb ...
Unpacking debhelper (9.20131227ubuntu1) ...
Selecting previously unselected package docutils-common.
Preparing to unpack .../docutils-common_0.11-3_all.deb ...
Unpacking docutils-common (0.11-3) ...
Selecting previously unselected package libjs-jquery.
Preparing to unpack .../libjs-jquery_1.7.2+dfsg-2ubuntu1_all.deb ...
Unpacking libjs-jquery (1.7.2+dfsg-2ubuntu1) ...
Selecting previously unselected package libjs-underscore.
Preparing to unpack .../libjs-underscore_1.4.4-2ubuntu1_all.deb ...
Unpacking libjs-underscore (1.4.4-2ubuntu1) ...
Selecting previously unselected package libjs-sphinxdoc.
Preparing to unpack .../libjs-sphinxdoc_1.2.2+dfsg-1ubuntu1_all.deb ...
Unpacking libjs-sphinxdoc (1.2.2+dfsg-1ubuntu1) ...
Selecting previously unselected package libpython2.7-stdlib:i386.
Preparing to unpack .../libpython2.7-stdlib_2.7.6-8_i386.deb ...
Unpacking libpython2.7-stdlib:i386 (2.7.6-8) ...
Selecting previously unselected package libpython-stdlib:i386.
Preparing to unpack .../libpython-stdlib_2.7.5-5ubuntu3_i386.deb ...
Unpacking libpython-stdlib:i386 (2.7.5-5ubuntu3) ...
Selecting previously unselected package python2.7.
Preparing to unpack .../python2.7_2.7.6-8_i386.deb ...
Unpacking python2.7 (2.7.6-8) ...
Selecting previously unselected package python-minimal.
Preparing to unpack .../python-minimal_2.7.5-5ubuntu3_i386.deb ...
Unpacking python-minimal (2.7.5-5ubuntu3) ...
Selecting previously unselected package python.
Preparing to unpack .../python_2.7.5-5ubuntu3_i386.deb ...
Unpacking python (2.7.5-5ubuntu3) ...
Selecting previously unselected package python-all.
Preparing to unpack .../python-all_2.7.5-5ubuntu3_i386.deb ...
Unpacking python-all (2.7.5-5ubuntu3) ...
Selecting previously unselected package python-roman.
Preparing to unpack .../python-roman_2.0.0-1_all.deb ...
Unpacking python-roman (2.0.0-1) ...
Selecting previously unselected package python-docutils.
Preparing to unpack .../python-docutils_0.11-3_all.deb ...
Unpacking python-docutils (0.11-3) ...
Selecting previously unselected package python-markupsafe.
Preparing to unpack .../python-markupsafe_0.18-1build2_i386.deb ...
Unpacking python-markupsafe (0.18-1build2) ...
Selecting previously unselected package python-jinja2.
Preparing to unpack .../python-jinja2_2.7.2-2_all.deb ...
Unpacking python-jinja2 (2.7.2-2) ...
Selecting previously unselected package python-pkg-resources.
Preparing to unpack .../python-pkg-resources_3.3-1ubuntu1_all.deb ...
Unpacking python-pkg-resources (3.3-1ubuntu1) ...
Selecting previously unselected package python-pygments.
Preparing to unpack .../python-pygments_1.6+dfsg-1ubuntu1_all.deb ...
Unpacking python-pygments (1.6+dfsg-1ubuntu1) ...
Selecting previously unselected package python-setuptools.
Preparing to unpack .../python-setuptools_3.3-1ubuntu1_all.deb ...
Unpacking python-setuptools (3.3-1ubuntu1) ...
Selecting previously unselected package sphinx-common.
Preparing to unpack .../sphinx-common_1.2.2+dfsg-1ubuntu1_all.deb ...
Unpacking sphinx-common (1.2.2+dfsg-1ubuntu1) ...
Selecting previously unselected package python-sphinx.
Preparing to unpack .../python-sphinx_1.2.2+dfsg-1ubuntu1_all.deb ...
Unpacking python-sphinx (1.2.2+dfsg-1ubuntu1) ...
Selecting previously unselected package python3-all.
Preparing to unpack .../python3-all_3.4.0-0ubuntu2_i386.deb ...
Unpacking python3-all (3.4.0-0ubuntu2) ...
Selecting previously unselected package python3-roman.
Preparing to unpack .../python3-roman_2.0.0-1_all.deb ...
Unpacking python3-roman (2.0.0-1) ...
Selecting previously unselected package python3-docutils.
Preparing to unpack .../python3-docutils_0.11-3_all.deb ...
Unpacking python3-docutils (0.11-3) ...
Selecting previously unselected package python3-markupsafe.
Preparing to unpack .../python3-markupsafe_0.18-1build2_i386.deb ...
Unpacking python3-markupsafe (0.18-1build2) ...
Selecting previously unselected package python3-jinja2.
Preparing to unpack .../python3-jinja2_2.7.2-2_all.deb ...
Unpacking python3-jinja2 (2.7.2-2) ...
Selecting previously unselected package python3-pkg-resources.
Preparing to unpack .../python3-pkg-resources_3.3-1ubuntu1_all.deb ...
Unpacking python3-pkg-resources (3.3-1ubuntu1) ...
Selecting previously unselected package python3-pygments.
Preparing to unpack .../python3-pygments_1.6+dfsg-1ubuntu1_all.deb ...
Unpacking python3-pygments (1.6+dfsg-1ubuntu1) ...
Selecting previously unselected package python3-setuptools.
Preparing to unpack .../python3-setuptools_3.3-1ubuntu1_all.deb ...
Unpacking python3-setuptools (3.3-1ubuntu1) ...
Selecting previously unselected package python3-sphinx.
Preparing to unpack .../python3-sphinx_1.2.2+dfsg-1ubuntu1_all.deb ...
Unpacking python3-sphinx (1.2.2+dfsg-1ubuntu1) ...
Setting up libexpat1:i386 (2.1.0-4ubuntu1) ...
Setting up libmagic1:i386 (1:5.14-2ubuntu3) ...
Setting up libmpdec2:i386 (2.4.0-6) ...
Setting up libpython3.4-minimal:i386 (3.4.0-2) ...
Setting up mime-support (3.54ubuntu1) ...
update-alternatives: using /usr/bin/see to provide /usr/bin/view (view) in auto mode
Setting up libpython3.4-stdlib:i386 (3.4.0-2) ...
Setting up python3.4-minimal (3.4.0-2) ...
Setting up libasprintf0c2:i386 (0.18.3.1-1ubuntu2) ...
Setting up libglib2.0-0:i386 (2.40.0-2) ...
No schema files found: doing nothing.
Setting up libpipeline1:i386 (1.3.0-1) ...
Setting up libxml2:i386 (2.9.1+dfsg1-3ubuntu4) ...
Setting up groff-base (1.22.2-5) ...
Setting up bsdmainutils (9.0.5ubuntu1) ...
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 man-db (2.6.7.1-1) ...
Not building database; man-db/auto-update is not 'true'.
Setting up sgml-base (1.26+nmu4ubuntu1) ...
Setting up libcroco3:i386 (0.6.8-2ubuntu1) ...
Setting up libunistring0:i386 (0.9.3-5ubuntu3) ...
Setting up libpython2.7-minimal:i386 (2.7.6-8) ...
Setting up python2.7-minimal (2.7.6-8) ...
Linking and byte-compiling packages for runtime python2.7...
Setting up python3.4 (3.4.0-2) ...
Setting up python3-minimal (3.4.0-0ubuntu2) ...
Setting up libpython3-stdlib:i386 (3.4.0-0ubuntu2) ...
Setting up file (1:5.14-2ubuntu3) ...
Setting up gettext-base (0.18.3.1-1ubuntu2) ...
Setting up xml-core (0.13+nmu2) ...
Setting up gettext (0.18.3.1-1ubuntu2) ...
Setting up intltool-debian (0.35.0+20060710.1) ...
Setting up po-debconf (1.0.16+nmu2ubuntu1) ...
Setting up dh-apparmor (2.8.95~2430-0ubuntu5) ...
Setting up debhelper (9.20131227ubuntu1) ...
Setting up libjs-jquery (1.7.2+dfsg-2ubuntu1) ...
Setting up libjs-underscore (1.4.4-2ubuntu1) ...
Setting up libjs-sphinxdoc (1.2.2+dfsg-1ubuntu1) ...
Setting up libpython2.7-stdlib:i386 (2.7.6-8) ...
Setting up libpython-stdlib:i386 (2.7.5-5ubuntu3) ...
Setting up python2.7 (2.7.6-8) ...
Setting up python-minimal (2.7.5-5ubuntu3) ...
Setting up python (2.7.5-5ubuntu3) ...
Setting up python-all (2.7.5-5ubuntu3) ...
Setting up python-roman (2.0.0-1) ...
Setting up python-markupsafe (0.18-1build2) ...
Setting up python-jinja2 (2.7.2-2) ...
Setting up python-pkg-resources (3.3-1ubuntu1) ...
Setting up python-pygments (1.6+dfsg-1ubuntu1) ...
Setting up python-setuptools (3.3-1ubuntu1) ...
Setting up sphinx-common (1.2.2+dfsg-1ubuntu1) ...
Processing triggers for sgml-base (1.26+nmu4ubuntu1) ...
Setting up docutils-common (0.11-3) ...
Processing triggers for sgml-base (1.26+nmu4ubuntu1) ...
Setting up python-docutils (0.11-3) ...
update-alternatives: using /usr/share/docutils/scripts/python2/rst-buildhtml to provide /usr/bin/rst-buildhtml (rst-buildhtml) in auto mode
update-alternatives: using /usr/share/docutils/scripts/python2/rst2html to provide /usr/bin/rst2html (rst2html) in auto mode
update-alternatives: using /usr/share/docutils/scripts/python2/rst2latex to provide /usr/bin/rst2latex (rst2latex) in auto mode
update-alternatives: using /usr/share/docutils/scripts/python2/rst2man to provide /usr/bin/rst2man (rst2man) in auto mode
update-alternatives: using /usr/share/docutils/scripts/python2/rst2odt to provide /usr/bin/rst2odt (rst2odt) in auto mode
update-alternatives: using /usr/share/docutils/scripts/python2/rst2odt_prepstyles to provide /usr/bin/rst2odt_prepstyles (rst2odt_prepstyles) in auto mode
update-alternatives: using /usr/share/docutils/scripts/python2/rst2pseudoxml to provide /usr/bin/rst2pseudoxml (rst2pseudoxml) in auto mode
update-alternatives: using /usr/share/docutils/scripts/python2/rst2s5 to provide /usr/bin/rst2s5 (rst2s5) in auto mode
update-alternatives: using /usr/share/docutils/scripts/python2/rst2xetex to provide /usr/bin/rst2xetex (rst2xetex) in auto mode
update-alternatives: using /usr/share/docutils/scripts/python2/rst2xml to provide /usr/bin/rst2xml (rst2xml) in auto mode
update-alternatives: using /usr/share/docutils/scripts/python2/rstpep2html to provide /usr/bin/rstpep2html (rstpep2html) in auto mode
Setting up python-sphinx (1.2.2+dfsg-1ubuntu1) ...
Setting up python3 (3.4.0-0ubuntu2) ...
running python rtupdate hooks for python3.4...
running python post-rtupdate hooks for python3.4...
Setting up dh-python (1.20140128-1ubuntu8) ...
Setting up python3-all (3.4.0-0ubuntu2) ...
Setting up python3-roman (2.0.0-1) ...
Setting up python3-docutils (0.11-3) ...
Setting up python3-markupsafe (0.18-1build2) ...
Setting up python3-jinja2 (2.7.2-2) ...
Setting up python3-pkg-resources (3.3-1ubuntu1) ...
Setting up python3-pygments (1.6+dfsg-1ubuntu1) ...
Setting up python3-setuptools (3.3-1ubuntu1) ...
Setting up python3-sphinx (1.2.2+dfsg-1ubuntu1) ...
Processing triggers for libc-bin (2.19-0ubuntu5) ...
Checking correctness of source dependencies...
Toolchain package versions: libc6-dev_2.19-0ubuntu5 make_3.81-8.2ubuntu3 dpkg-dev_1.17.5ubuntu5 gcc-4.8_4.8.2-19ubuntu1 g++-4.8_4.8.2-19ubuntu1 binutils_2.24-5ubuntu2 libstdc++-4.8-dev_4.8.2-19ubuntu1 libstdc++6_4.8.2-19ubuntu1
------------------------------------------------------------------------------
dpkg-source: warning: -sn is not a valid option for Dpkg::Source::Package::V3::Quilt
gpgv: Signature made Fri Apr 11 13:21:47 2014 UTC using DSA key ID C6CEA0C9
gpgv: Can't check signature: public key not found
dpkg-source: warning: failed to verify signature on ./paste_1.7.5.1-6ubuntu3.dsc
dpkg-source: info: extracting paste in paste-1.7.5.1
dpkg-source: info: unpacking paste_1.7.5.1.orig.tar.gz
dpkg-source: info: unpacking paste_1.7.5.1-6ubuntu3.debian.tar.gz
dpkg-source: info: applying paste-27-lambda.patch
dpkg-source: info: applying paste-unbundle-stdlib.patch
dpkg-source: info: applying paste-unbundle-tempita.patch
dpkg-source: info: applying paste-userdict.patch
dpkg-source: info: applying rfc822.patch
dpkg-source: info: applying email-mime.patch
dpkg-source: info: applying types.patch
dpkg-source: info: applying hmac.patch
dpkg-buildpackage: source package paste
dpkg-buildpackage: source version 1.7.5.1-6ubuntu3
dpkg-buildpackage: source distribution trusty
dpkg-source --before-build paste-1.7.5.1
dpkg-buildpackage: host architecture i386
/usr/bin/fakeroot debian/rules clean
dh_testdir
dh_testroot
rm -rf dist build
find . -name *\.py[co] -delete
dh_clean build-docs* install-python2.7 install3-python3.4
debian/rules build
rm -rf debian/tmp
mkdir -p debian/tmp
cp -a MANIFEST.in PKG-INFO Paste.egg-info docs paste setup.cfg setup.py tests .pc debian/tmp
2to3 --write --nobackups debian/tmp
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
RefactoringTool: Skipping implicit fixer: buffer
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
RefactoringTool: Skipping implicit fixer: idioms
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
RefactoringTool: Skipping implicit fixer: set_literal
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
RefactoringTool: Skipping implicit fixer: ws_comma
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
RefactoringTool: No changes to debian/tmp/setup.py
RefactoringTool: No changes to debian/tmp/docs/conf.py
RefactoringTool: No changes to debian/tmp/paste/__init__.py
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
root: Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
RefactoringTool: Refactored debian/tmp/paste/cascade.py
RefactoringTool: Refactored debian/tmp/paste/cgiapp.py
RefactoringTool: Refactored debian/tmp/paste/cgitb_catcher.py
RefactoringTool: No changes to debian/tmp/paste/config.py
RefactoringTool: Refactored debian/tmp/paste/errordocument.py
--- debian/tmp/paste/cascade.py (original)
+++ debian/tmp/paste/cascade.py (refactored)
@@ -8,7 +8,7 @@
from paste import httpexceptions
from paste.util import converters
import tempfile
-from cStringIO import StringIO
+from io import StringIO
__all__ = ['Cascade']
@@ -26,9 +26,9 @@
...
catch = 404 500 ...
"""
- catch = map(int, converters.aslist(catch))
+ catch = list(map(int, converters.aslist(catch)))
apps = []
- for name, value in local_conf.items():
+ for name, value in list(local_conf.items()):
if not name.startswith('app'):
raise ValueError(
"Bad configuration key %r (=%r); all configuration keys "
@@ -123,7 +123,7 @@
list(v)
# then close:
v.close()
- except self.catch_exceptions, e:
+ except self.catch_exceptions as e:
pass
if copy_wsgi_input:
environ['wsgi.input'].seek(0)
--- debian/tmp/paste/cgiapp.py (original)
+++ debian/tmp/paste/cgiapp.py (refactored)
@@ -7,7 +7,7 @@
import os
import sys
import subprocess
-import urllib
+import urllib.request, urllib.parse, urllib.error
try:
import select
except ImportError:
@@ -69,8 +69,8 @@
def __call__(self, environ, start_response):
if 'REQUEST_URI' not in environ:
environ['REQUEST_URI'] = (
- urllib.quote(environ.get('SCRIPT_NAME', ''))
- + urllib.quote(environ.get('PATH_INFO', '')))
+ urllib.parse.quote(environ.get('SCRIPT_NAME', ''))
+ + urllib.parse.quote(environ.get('PATH_INFO', '')))
if self.include_os_environ:
cgi_environ = os.environ.copy()
else:
@@ -254,7 +254,7 @@
try:
proc.wait()
- except OSError, e:
+ except OSError as e:
if e.errno != 10:
raise
--- debian/tmp/paste/cgitb_catcher.py (original)
+++ debian/tmp/paste/cgitb_catcher.py (refactored)
@@ -10,7 +10,7 @@
"""
import cgitb
-from cStringIO import StringIO
+from io import StringIO
import sys
from paste.util import converters
@@ -31,7 +31,7 @@
global_conf = {}
if display is NoDefault:
display = global_conf.get('debug')
- if isinstance(display, basestring):
+ if isinstance(display, str):
display = converters.asbool(display)
self.display = display
self.logdir = logdir
--- debian/tmp/paste/errordocument.py (original)
+++ debian/tmp/paste/errordocument.py (refactored)
@@ -11,7 +11,7 @@
import warnings
import sys
-from urlparse import urlparse
+from urllib.parse import urlparse
from paste.recursive import ForwardRequestException, RecursiveMiddleware, RecursionLoop
from paste.util import converters
from paste.response import replace_header
@@ -46,7 +46,7 @@
'%s is not valid'%repr(code))
def error_codes_mapper(code, message, environ, global_conf, codes):
- if codes.has_key(code):
+ if code in codes:
return codes[code]
else:
return None
@@ -84,7 +84,7 @@
#raise Exception(self.url, self.status)
try:
return self.app(environ, keep_status_start_response)
- except RecursionLoop, e:
+ except RecursionLoop as e:
environ['wsgi.errors'].write('Recursion error getting error page: %s\n' % e)
keep_status_start_response('500 Server Error', [('Content-type', 'text/plain')], sys.exc_info())
return ['Error: %s. (Error page could not be fetched)'
@@ -218,7 +218,7 @@
404 = /lib/msg/404.html
"""
map = {}
- for status, redir_loc in kw.items():
+ for status, redir_loc in list(kw.items()):
try:
status = int(status)
except ValueError:
@@ -340,7 +340,7 @@
if url:
url_ = url[0]
new_environ = {}
- for k, v in environ.items():
+ for k, v in list(environ.items()):
RefactoringTool: Refactored debian/tmp/paste/fileapp.py
RefactoringTool: Refactored debian/tmp/paste/fixture.py
if k != 'QUERY_STRING':
new_environ['QUERY_STRING'] = urlparse(url_)[4]
else:
@@ -363,7 +363,7 @@
forward.start_response = eat_start_response
try:
app_iter = forward(url_, new_environ)
- except InvalidForward, e:
+ except InvalidForward as e:
code, message = code_message[0]
environ['wsgi.errors'].write(
'Error occurred in '
--- debian/tmp/paste/fileapp.py (original)
+++ debian/tmp/paste/fileapp.py (refactored)
@@ -66,7 +66,7 @@
if allowed_methods is not None:
self.allowed_methods = allowed_methods
self.headers = headers or []
- for (k, v) in kwargs.items():
+ for (k, v) in list(kwargs.items()):
header = get_header(k)
header.update(self.headers, v)
ACCEPT_RANGES.update(self.headers, bytes=True)
@@ -123,7 +123,7 @@
head.delete(headers)
start_response('304 Not Modified', headers)
return ['']
- except HTTPBadRequest, exce:
+ except HTTPBadRequest as exce:
return exce.wsgi_application(environ, start_response)
# If we get If-None-Match and If-Modified-Since, and
@@ -139,7 +139,7 @@
head.delete(headers)
start_response('304 Not Modified', headers)
return [''] # empty body
- except HTTPBadRequest, exce:
+ except HTTPBadRequest as exce:
return exce.wsgi_application(environ, start_response)
(lower, upper) = (0, self.content_length - 1)
@@ -215,7 +215,7 @@
return exc(environ, start_response)
try:
file = open(self.filename, 'rb')
- except (IOError, OSError), e:
+ except (IOError, OSError) as e:
exc = HTTPForbidden(
'You are not permitted to view this file (%s)' % e)
return exc.wsgi_application(
@@ -246,7 +246,7 @@
def __iter__(self):
return self
- def next(self):
+ def __next__(self):
chunk_size = self.block_size
if self.size is not None:
if chunk_size > self.size:
--- debian/tmp/paste/fixture.py (original)
+++ debian/tmp/paste/fixture.py (refactored)
@@ -11,8 +11,8 @@
import sys
import random
-import urllib
-import urlparse
+import urllib.request, urllib.parse, urllib.error
+import urllib.parse
import mimetypes
import time
import cgi
@@ -20,11 +20,12 @@
import shutil
import smtplib
import shlex
-from Cookie import BaseCookie
+from http.cookies import BaseCookie
+import collections
try:
- from cStringIO import StringIO
+ from io import StringIO
except ImportError:
- from StringIO import StringIO
+ from io import StringIO
import re
import subprocess
@@ -122,7 +123,7 @@
``post_request_hook`` is a function, similar to
``pre_request_hook``, to be called after requests are made.
"""
- if isinstance(app, (str, unicode)):
+ if isinstance(app, str):
from paste.deploy import loadapp
# @@: Should pick up relative_to from calling module's
# __file__
@@ -186,8 +187,8 @@
# Hide from py.test:
__tracebackhide__ = True
if params:
- if not isinstance(params, (str, unicode)):
- params = urllib.urlencode(params, doseq=True)
+ if not isinstance(params, str):
+ params = urllib.parse.urlencode(params, doseq=True)
if '?' in url:
url += '&'
else:
@@ -216,10 +217,10 @@
environ = self._make_environ()
# @@: Should this be all non-strings?
if isinstance(params, (list, tuple, dict)):
- params = urllib.urlencode(params)
+ params = urllib.parse.urlencode(params)
if hasattr(params, 'items'):
# Some other multi-dict like format
- params = urllib.urlencode(params.items())
+ params = urllib.parse.urlencode(list(params.items()))
if upload_files:
params = cgi.parse_qsl(params, keep_blank_values=True)
content_type, params = self.encode_multipart(
@@ -299,7 +300,7 @@
"""
if not headers:
return
- for header, value in headers.items():
+ for header, value in list(headers.items()):
if header.lower() == 'content-type':
var = 'CONTENT_TYPE'
elif header.lower() == 'content-length':
@@ -367,9 +368,9 @@
__tracebackhide__ = True
if self.cookies:
c = BaseCookie()
- for name, value in self.cookies.items():
+ for name, value in list(self.cookies.items()):
c[name] = value
- hc = '; '.join(['='.join([m.key, m.value]) for m in c.values()])
+ hc = '; '.join(['='.join([m.key, m.value]) for m in list(c.values())])
req.environ['HTTP_COOKIE'] = hc
req.environ['paste.testing'] = True
req.environ['paste.testing_variables'] = {}
@@ -390,7 +391,7 @@
sys.stderr.write(out.getvalue())
res = self._make_response(raw_res, end_time - start_time)
res.request = req
- for name, value in req.environ['paste.testing_variables'].items():
+ for name, value in list(req.environ['paste.testing_variables'].items()):
if hasattr(res, name):
raise ValueError(
"paste.testing_variables contains the variable %r, but "
@@ -405,7 +406,7 @@
res.cookies_set = {}
for header in res.all_headers('set-cookie'):
c = BaseCookie(header)
- for key, morsel in c.items():
+ for key, morsel in list(c.items()):
self.cookies[key] = morsel.value
res.cookies_set[key] = morsel.value
if self.post_request_hook:
@@ -443,7 +444,8 @@
raise AppError(
"Application had errors logged:\n%s" % res.errors)
- def _make_response(self, (status, headers, body, errors), total_time):
+ def _make_response(self, xxx_todo_changeme, total_time):
+ (status, headers, body, errors) = xxx_todo_changeme
return TestResponse(self, status, headers, body, errors,
total_time)
@@ -594,8 +596,8 @@
"You can only follow redirect responses (not %s)"
% self.full_status)
location = self.header('location')
- type, rest = urllib.splittype(location)
- host, path = urllib.splithost(rest)
+ type, rest = urllib.parse.splittype(location)
+ host, path = urllib.parse.splithost(rest)
# @@: We should test that it's not a remote redirect
return self.test_app.get(location, **kw)
@@ -682,7 +684,7 @@
def printlog(s):
if verbose:
- print s
+ print(s)
found_links = []
total_links = 0
@@ -753,11 +755,11 @@
All hostnames and schemes will be ignored.
"""
- scheme, host, path, query, fragment = urlparse.urlsplit(href)
+ scheme, host, path, query, fragment = urllib.parse.urlsplit(href)
# We
scheme = host = fragment = ''
- href = urlparse.urlunsplit((scheme, host, path, query, fragment))
- href = urlparse.urljoin(self.request.full_url, href)
+ href = urllib.parse.urlunsplit((scheme, host, path, query, fragment))
+ href = urllib.parse.urljoin(self.request.full_url, href)
method = method.lower()
assert method in ('get', 'post'), (
'Only "get" or "post" are allowed for method (you gave %r)'
@@ -787,9 +789,9 @@
of the response. Whitespace is normalized when searching
for a string.
"""
- if not isinstance(s, (str, unicode)):
+ if not isinstance(s, str):
s = str(s)
- if isinstance(s, unicode):
+ if isinstance(s, str):
## FIXME: we don't know that this response uses utf8:
s = s.encode('utf8')
return (self.body.find(s) != -1
@@ -807,7 +809,7 @@
if 'no' in kw:
no = kw['no']
del kw['no']
- if isinstance(no, basestring):
+ if isinstance(no, str):
no = [no]
else:
no = []
@@ -816,14 +818,14 @@
"The only keyword argument allowed is 'no'")
for s in strings:
if not s in self:
- print >> sys.stderr, "Actual response (no %r):" % s
- print >> sys.stderr, self
+ print("Actual response (no %r):" % s, file=sys.stderr)
+ print(self, file=sys.stderr)
raise IndexError(
"Body does not contain string %r" % s)
for no_s in no:
if no_s in self:
- print >> sys.stderr, "Actual response (has %r)" % no_s
- print >> sys.stderr, self
+ print("Actual response (has %r)" % no_s, file=sys.stderr)
+ print(self, file=sys.stderr)
raise IndexError(
"Body contains string %r" % s)
@@ -1020,7 +1022,7 @@
fields = self.fields.get(name)
assert fields is not None, (
"No field by the name %r found (fields: %s)"
- % (name, ', '.join(map(repr, self.fields.keys()))))
+ % (name, ', '.join(map(repr, list(self.fields.keys())))))
assert len(fields) == 1, (
"Multiple fields match %r: %s"
% (name, ', '.join(map(repr, fields))))
@@ -1100,7 +1102,7 @@
if name is not None:
field = self.get(name, index=index)
submit.append((field.name, field.value_if_submitted()))
- for name, fields in self.fields.items():
+ for name, fields in list(self.fields.items()):
if name is None:
continue
for field in fields:
@@ -1379,9 +1381,9 @@
cwd = _popget(kw, 'cwd', self.cwd)
stdin = _popget(kw, 'stdin', None)
printresult = _popget(kw, 'printresult', True)
- args = map(str, args)
+ args = list(map(str, args))
assert not kw, (
- "Arguments not expected: %s" % ', '.join(kw.keys()))
+ "Arguments not expected: %s" % ', '.join(list(kw.keys())))
if ' ' in script:
assert not args, (
"You cannot give a multi-argument script (%r) "
@@ -1404,8 +1406,8 @@
files_before=files_before,
files_after=files_after)
if printresult:
- print result
- print '-'*40
+ print(result)
+ print('-'*40)
if not expect_error:
result.assert_no_error()
if not expect_stderr:
@@ -1515,7 +1517,7 @@
self.files_deleted = {}
self.files_updated = {}
self.files_created = files_after.copy()
- for path, f in files_before.items():
+ for path, f in list(files_before.items()):
if path not in files_after:
self.files_deleted[path] = f
continue
@@ -1531,8 +1533,8 @@
def assert_no_stderr(self):
__tracebackhide__ = True
if self.stderr:
- print 'Error output:'
- print self.stderr
+ print('Error output:')
+ print(self.stderr)
raise AssertionError("stderr output not expected")
def __str__(self):
@@ -1551,7 +1553,7 @@
('updated', self.files_updated, True)]:
if files:
s.append('-- %s: -------------------' % name)
- files = files.items()
+ files = list(files.items())
files.sort()
last = ''
for path, f in files:
@@ -1614,8 +1616,8 @@
__tracebackhide__ = True
bytes = self.bytes
if s not in bytes:
- print 'Could not find %r inRefactoringTool: Refactored debian/tmp/paste/flup_session.py
RefactoringTool: Refactored debian/tmp/paste/gzipper.py
RefactoringTool: Refactored debian/tmp/paste/httpexceptions.py
:' % s
- print bytes
+ print('Could not find %r in:' % s)
+ print(bytes)
assert s in bytes
def __repr__(self):
@@ -1680,11 +1682,11 @@
def _make_pattern(pat):
if pat is None:
return None
- if isinstance(pat, (str, unicode)):
+ if isinstance(pat, str):
pat = re.compile(pat)
if hasattr(pat, 'search'):
return pat.search
- if callable(pat):
+ if isinstance(pat, collections.Callable):
return pat
assert 0, (
"Cannot make callable pattern object out of %r" % pat)
@@ -1706,7 +1708,7 @@
if module is None:
# The module we were called from must be the module...
module = sys._getframe().f_back.f_globals['__name__']
- if isinstance(module, (str, unicode)):
+ if isinstance(module, str):
module = sys.modules[module]
if hasattr(module, 'reset_state'):
module.reset_state()
--- debian/tmp/paste/flup_session.py (original)
+++ debian/tmp/paste/flup_session.py (refactored)
@@ -59,7 +59,7 @@
raise KeyError(
"The session_type %s is unknown (I know about %s)"
% (self.session_type,
- ', '.join(self.session_classes.keys())))
+ ', '.join(list(self.session_classes.keys()))))
kw = {}
for config_name, kw_name, coercer, default in self.store_args:
value = coercer(store_config.get(config_name, default))
@@ -81,8 +81,8 @@
try:
app_iter = self.application(environ, cookie_start_response)
- except httpexceptions.HTTPException, e:
- headers = (e.headers or {}).items()
+ except httpexceptions.HTTPException as e:
+ headers = list((e.headers or {}).items())
service.addCookie(headers)
e.headers = dict(headers)
service.close()
--- debian/tmp/paste/gzipper.py (original)
+++ debian/tmp/paste/gzipper.py (refactored)
@@ -15,9 +15,9 @@
from paste.httpheaders import CONTENT_LENGTH
try:
- from cStringIO import StringIO
+ from io import StringIO
except ImportError:
- from StringIO import StringIO
+ from io import StringIO
class GzipOutput(object):
pass
--- debian/tmp/paste/httpexceptions.py (original)
+++ debian/tmp/paste/httpexceptions.py (refactored)
@@ -177,9 +177,9 @@
assert isinstance(headers, (type(None), list)), (
"headers must be None or a list: %r"
% headers)
- assert isinstance(detail, (type(None), basestring)), (
+ assert isinstance(detail, (type(None), str)), (
"detail must be None or a string: %r" % detail)
- assert isinstance(comment, (type(None), basestring)), (
+ assert isinstance(comment, (type(None), str)), (
"comment must be None or a string: %r" % comment)
self.headers = headers or tuple()
for req in self.required_headers:
@@ -200,13 +200,13 @@
'detail': escfunc(self.detail),
'comment': comment_escfunc(self.comment)}
if HTTPException.template != self.template:
- for (k, v) in environ.items():
+ for (k, v) in list(environ.items()):
args[k] = escfunc(v)
if self.headers:
for (k, v) in self.headers:
args[k.lower()] = escfunc(v)
- for key, value in args.items():
- if isinstance(value, unicode):
+ for key, value in list(args.items()):
+ if isinstance(value, str):
args[key] = value.encode('utf8', 'xmlcharrefreplace')
return template % args
@@ -236,7 +236,7 @@
else:
replace_header(headers, 'content-type', 'text/plain')
content = self.plain(environ)
- if isinstance(content, unicode):
+ if isinstance(content, str):
content = content.encode('utf8')
cur_content_type = (
header_value(headers, 'content-type')
@@ -587,8 +587,8 @@
__all__ = ['HTTPException', 'HTTPRedirRefactoringTool: Refactored debian/tmp/paste/httpheaders.py
RefactoringTool: Refactored debian/tmp/paste/httpserver.py
ection', 'HTTPError' ]
_exceptions = {}
-for name, value in globals().items():
- if (isinstance(value, (type, types.ClassType)) and
+for name, value in list(globals().items()):
+ if (isinstance(value, type) and
issubclass(value, HTTPException) and
value.code):
_exceptions[value.code] = value
@@ -631,7 +631,7 @@
[]).append(HTTPException)
try:
return self.application(environ, start_response)
- except HTTPException, exc:
+ except HTTPException as exc:
return exc(environ, start_response)
def middleware(*args, **kw):
--- debian/tmp/paste/httpheaders.py (original)
+++ debian/tmp/paste/httpheaders.py (refactored)
@@ -135,14 +135,14 @@
"""
import mimetypes
-import urllib2
+import urllib.request, urllib.error, urllib.parse
import re
try:
from rfc822 import formatdate, parsedate_tz, mktime_tz
except ImportError:
from email.utils import formatdate, parsedate_tz, mktime_tz
from time import time as now
-from httpexceptions import HTTPBadRequest
+from .httpexceptions import HTTPBadRequest
__all__ = ['get_header', 'list_headers', 'normalize_headers',
'HTTPHeader', 'EnvironVariable' ]
@@ -167,7 +167,7 @@
SCRIPT_NAME = EnvironVariable("SCRIPT_NAME")
PATH_INFO = EnvironVariable("PATH_INFO")
-for _name, _obj in globals().items():
+for _name, _obj in list(globals().items()):
if isinstance(_obj, EnvironVariable):
__all__.append(_name)
@@ -562,7 +562,7 @@
(response, 'response'), (entity, 'entity')):
if bool:
search.append(strval)
- return [head for head in _headers.values() if head.category in search]
+ return [head for head in list(_headers.values()) if head.category in search]
def normalize_headers(response_headers, strict=True):
"""
@@ -736,7 +736,7 @@
result.append('max-age=%d' % max_age)
if s_maxage is not None:
result.append('s-maxage=%d' % s_maxage)
- for (k, v) in extensions.items():
+ for (k, v) in list(extensions.items()):
if k not in self.extensions:
raise AssertionError("unexpected extension used: '%s'" % k)
result.append('%s="%s"' % (k.replace("_", "-"), v))
@@ -1010,7 +1010,7 @@
path = path or "/"
(_, realm) = challenge.split('realm="')
(realm, _) = realm.split('"', 1)
- auth = urllib2.AbstractDigestAuthHandler()
+ auth = urllib.request.AbstractDigestAuthHandler()
auth.add_password(realm, path, username, password)
(token, challenge) = challenge.split(' ', 1)
chal = urllib2.parse_keqv_list(urllib2.parse_http_list(challenge))
@@ -1089,12 +1089,12 @@
klass(name, category, comment, version).__doc__ = comment
del klass
-for head in _headers.values():
+for head in list(_headers.values()):
headname = head.name.replace("-","_").upper()
locals()[headname] = head
__all__.append(headname)
__pudge_all__ = __all__[:]
-for _name, _obj in globals().items():
+for _name, _obj in list(globals().items()):
if isinstance(_obj, type) and issubclass(_obj, HTTPHeader):
__pudge_all__.append(_name)
--- debian/tmp/paste/httpserver.py (original)
+++ debian/tmp/paste/httpserver.py (refactored)
@@ -19,14 +19,14 @@
import atexit
import traceback
-import socket, sys, threading, urlparse, Queue, urllib
+import socket, sys, threading, urllib.parse, queue, urllib.request, urllib.parse, urllib.error
import posixpath
import time
-import thread
+import _thread
import os
from itertools import count
-from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
-from SocketServer import ThreadingMixIn
+from http.server import BaseHTTPRequestHandler, HTTPServer
+from socketserver import ThreadingMixIn
from paste.util import converters
import logging
try:
@@ -153,7 +153,7 @@
if exc_info:
try:
if self.wsgi_headers_sent:
- raise exc_info[0], exc_info[1], exc_info[2]
+ raise exc_info[0](exc_info[1]).with_traceback(exc_info[2])
else:
# In this case, we're going to assume that the
# higher-level code is currently handling the
@@ -176,8 +176,8 @@
argument can be used to override any settings.
"""
- (scheme, netloc, path, query, fragment) = urlparse.urlsplit(self.path)
- path = urllib.unquote(path)
+ (scheme, netloc, path, query, fragment) = urllib.parse.urlsplit(self.path)
+ path = urllib.parse.unquote(path)
endslash = path.endswith('/')
path = posixpath.normpath(path)
if endslash and path != '/':
@@ -245,10 +245,10 @@
if hasattr(self.server, 'thread_pool'):
# Now that we know what the request was for, we should
# tell the thread pool what its worker is working on
- self.server.thread_pool.worker_tracker[thread.get_ident()][1] = self.wsgi_environ
+ self.server.thread_pool.worker_tracker[_thread.get_ident()][1] = self.wsgi_environ
self.wsgi_environ['paste.httpserver.thread_pool'] = self.server.thread_pool
- for k, v in self.headers.items():
+ for k, v in list(self.headers.items()):
key = 'HTTP_' + k.replace("-","_").upper()
if key in ('HTTP_CONTENT_TYPE','HTTP_CONTENT_LENGTH'):
continue
@@ -294,7 +294,7 @@
if hasattr(result,'close'):
result.close()
result = None
- except socket.error, exce:
+ except socket.error as exce:
self.wsgi_connection_drop(exce, environ)
return
except:
@@ -397,7 +397,7 @@
cert = OpenSSL.crypto.X509()
- cert.set_serial_number(random.randint(0, sys.maxint))
+ cert.set_serial_number(random.randint(0, sys.maxsize))
cert.gmtime_adj_notBefore(0)
cert.gmtime_adj_notAfter(60 * 60 * 24 * 365)
cert.get_subject().CN = '*'
@@ -440,7 +440,7 @@
# don't bother logging disconnects while handling a request
try:
BaseHTTPRequestHandler.handle(self)
- except SocketErrors, exce:
+ except SocketErrors as exce:
self.wsgi_connection_drop(exce)
def address_string(self):
@@ -492,7 +492,7 @@
def __iter__(self):
return self
- def next(self):
+ def __next__(self):
if self.length - self._consumed <= 0:
raise StopIteration
return self.readline()
@@ -576,12 +576,12 @@
self.nworkers = nworkers
self.max_requests = max_requests
self.name = name
- self.queue = Queue.Queue()
+ self.queue = queue.Queue()
self.workers = []
self.daemon = daemon
if logger is None:
logger = logging.getLogger('paste.httpserver.ThreadPool')
- if isinstance(logger, basestring):
+ if isinstance(logger, str):
logger = logging.getLogger(logger)
self.logger = logger
self.error_email = error_email
@@ -690,7 +690,7 @@
result['busy'].append(worker)
else:
result['idle'].append(worker)
- for thread_id, (time_killed, worker) in self.dying_threads.items():
+ for thread_id, (time_killed, worker) in list(self.dying_threads.items()):
if not self.thread_exists(thread_id):
# Cull dying threads that are actually dead and gone
self.logger.info('Killed thread %s no longer around',
@@ -735,7 +735,7 @@
return thread_id in threading._active
def add_worker_thread(self, *args, **kwargs):
- index = self._worker_count.next()
+ index = next(self._worker_count)
worker = threading.Thread(target=self.worker_thread_callback,
args=args, kwargs=kwargs,
name=("worker %d" % index))
@@ -814,7 +814,7 @@
return
found = []
now = time.time()
- RefactoringTool: Refactored debian/tmp/paste/lint.py
for thread_id, (time_killed, worker) in self.dying_threads.items():
+ for thread_id, (time_killed, worker) in list(self.dying_threads.items()):
if not self.thread_exists(thread_id):
# Cull dying threads that are actually dead and gone
try:
@@ -840,7 +840,7 @@
ids="\n ".join(map(str, found))),
subject="Process restart (too many zombie threads)")
self.shutdown(10)
- print 'Shutting down', threading.currentThread()
+ print('Shutting down', threading.currentThread())
raise ServerExit(3)
def worker_thread_callback(self, message=None):
@@ -849,7 +849,7 @@
callables.
"""
thread_obj = threading.currentThread()
- thread_id = thread_obj.thread_id = thread.get_ident()
+ thread_id = thread_obj.thread_id = _thread.get_ident()
self.workers.append(thread_obj)
self.idle_workers.append(thread_id)
requests_processed = 0
@@ -881,8 +881,8 @@
# removing all remnants of any exception, so
# we should log it now. But ideally no
# exception should reach this level
- print >> sys.stderr, (
- 'Unexpected exception in worker %r' % runnable)
+ print((
+ 'Unexpected exception in worker %r' % runnable), file=sys.stderr)
traceback.print_exc()
if thread_id in self.dying_threads:
# That last exception was intended to kill me
@@ -948,7 +948,7 @@
timed_out = True
worker.join(force_quit_timeout)
if worker.isAlive():
- print "Worker %s won't die" % worker
+ print("Worker %s won't die" % worker)
need_force_quit = True
if need_force_quit:
import atexit
@@ -962,7 +962,7 @@
if mod == 'threading':
atexit._exithandlers.remove(callback)
atexit._run_exitfuncs()
- print 'Forcefully exiting process'
+ print('Forcefully exiting process')
os._exit(3)
else:
self.logger.info('All workers eventually killed')
@@ -1021,7 +1021,7 @@
if e.strip()]
server.sendmail(from_address, error_emails, message)
server.quit()
- print 'email sent to', error_emails, message
+ print('email sent to', error_emails, message)
class ThreadPoolMixIn(object):
"""
@@ -1302,10 +1302,10 @@
protocol = is_ssl and 'https' or 'http'
host, port = server.server_address[:2]
if host == '0.0.0.0':
- print 'serving on 0.0.0.0:%s view at %s://127.0.0.1:%s' % \
- (port, protocol, port)
+ print('serving on 0.0.0.0:%s view at %s://127.0.0.1:%s' % \
+ (port, protocol, port))
else:
- print "serving on %s://%s:%s" % (protocol, host, port)
+ print("serving on %s://%s:%s" % (protocol, host, port))
try:
server.serve_forever()
except KeyboardInterrupt:
@@ -1331,7 +1331,7 @@
if name in kwargs:
kwargs[name] = asbool(kwargs[name])
threadpool_options = {}
- for name, value in kwargs.items():
+ for name, value in list(kwargs.items()):
if name.startswith('threadpool_') and name != 'threadpool_workers':
threadpool_options[name[len('threadpool_'):]] = value
del kwargs[name]
--- debian/tmp/paste/lint.py (original)
+++ debian/tmp/paste/lint.py (refactored)
@@ -258,10 +258,10 @@
def __iter__(self):
return self
- def next(self):
+ def __next__(self):
assert not self.closed, (
"Iterator read after closed")
- v = self.iteraRefactoringTool: Refactored debian/tmp/paste/modpython.py
RefactoringTool: No changes to debian/tmp/paste/pony.py
RefactoringTool: Refactored debian/tmp/paste/progress.py
RefactoringTool: Refactored debian/tmp/paste/proxy.py
tor.next()
+ v = next(self.iterator)
if self.check_start_response is not None:
assert self.check_start_response, (
"The application returns and we started iterating over its body, but start_response has not yet been called")
@@ -304,7 +304,7 @@
'so application errors are more likely',
WSGIWarning)
- for key in environ.keys():
+ for key in list(environ.keys()):
if '.' in key:
# Extension, we don't care about its type
continue
@@ -338,7 +338,7 @@
"Invalid CONTENT_LENGTH: %r" % environ['CONTENT_LENGTH'])
if not environ.get('SCRIPT_NAME'):
- assert environ.has_key('PATH_INFO'), (
+ assert 'PATH_INFO' in environ, (
"One of SCRIPT_NAME or PATH_INFO are required (PATH_INFO "
"should at least be '/' if SCRIPT_NAME is empty)")
assert environ.get('SCRIPT_NAME') != '/', (
--- debian/tmp/paste/modpython.py (original)
+++ debian/tmp/paste/modpython.py (refactored)
@@ -176,7 +176,7 @@
if exc_info:
try:
if self.started:
- raise exc_info[0], exc_info[1], exc_info[2]
+ raise exc_info[0](exc_info[1]).with_traceback(exc_info[2])
finally:
exc_info = None
--- debian/tmp/paste/progress.py (original)
+++ debian/tmp/paste/progress.py (refactored)
@@ -206,7 +206,7 @@
for map in [self.report(env) for env in self.monitor.uploads()
if self.match(environ, env)]:
parts = []
- for k, v in map.items():
+ for k, v in list(map.items()):
v = str(v).replace("\\", "\\\\").replace('"', '\\"')
parts.append('%s: "%s"' % (k, v))
body.append("{ %s }" % ", ".join(parts))
--- debian/tmp/paste/proxy.py (original)
+++ debian/tmp/paste/proxy.py (refactored)
@@ -29,9 +29,9 @@
"""
-import httplib
-import urlparse
-import urllib
+import http.client
+import urllib.parse
+import urllib.request, urllib.parse, urllib.error
from paste import httpexceptions
from paste.util.converters import aslist
@@ -54,7 +54,7 @@
def __init__(self, address, allowed_request_methods=(),
suppress_http_headers=()):
self.address = address
- self.parsed = urlparse.urlsplit(address)
+ self.parsed = urllib.parse.urlsplit(address)
self.scheme = self.parsed[0].lower()
self.host = self.parsed[1]
self.path = self.parsed[2]
@@ -70,15 +70,15 @@
return httpexceptions.HTTPBadRequest("Disallowed")(environ, start_response)
if self.scheme == 'http':
- ConnClass = httplib.HTTPConnection
+ ConnClass = http.client.HTTPConnection
elif self.scheme == 'https':
- ConnClass = httplib.HTTPSConnection
+ ConnClass = http.client.HTTPSConnection
else:
raise ValueError(
"Unknown scheme for %r: %r" % (self.address, self.scheme))
conn = ConnClass(self.host)
headers = {}
- for key, value in environ.items():
+ for key, value in list(environ.items()):
if key.startswith('HTTP_'):
key = key[5:].lower().replace('_', '-')
if key == 'host' or key in self.suppress_http_headers:
@@ -101,13 +101,13 @@
else:
body = ''
- path_info = urllib.quote(environ['PATH_INFO'])
+ path_info = urllib.parse.quote(environ['PATH_INFO'])
if self.path:
request_path = path_info
if request_path and request_path[0] == '/':
request_path = request_path[1:]
- path = urlparse.urljoin(self.path, request_path)
+ path = urllib.parse.urljoin(self.path, request_path)
else:
path = path_info
if environ.get('QUERY_STRING'):
@@ -188,9 +188,9 @@
else:
conn_scheme = selfRefactoringTool: Refactored debian/tmp/paste/recursive.py
RefactoringTool: Refactored debian/tmp/paste/registry.py
.force_scheme
if conn_scheme == 'http':
- ConnClass = httplib.HTTPConnection
+ ConnClass = http.client.HTTPConnection
elif conn_scheme == 'https':
- ConnClass = httplib.HTTPSConnection
+ ConnClass = http.client.HTTPSConnection
else:
raise ValueError(
"Unknown scheme %r" % scheme)
@@ -204,7 +204,7 @@
conn_host = self.force_host
conn = ConnClass(conn_host)
headers = {}
- for key, value in environ.items():
+ for key, value in list(environ.items()):
if key.startswith('HTTP_'):
key = key[5:].lower().replace('_', '-')
headers[key] = value
@@ -227,7 +227,7 @@
path = (environ.get('SCRIPT_NAME', '')
+ environ.get('PATH_INFO', ''))
- path = urllib.quote(path)
+ path = urllib.parse.quote(path)
if 'QUERY_STRING' in environ:
path += '?' + environ['QUERY_STRING']
conn.request(environ['REQUEST_METHOD'],
--- debian/tmp/paste/recursive.py (original)
+++ debian/tmp/paste/recursive.py (refactored)
@@ -23,7 +23,7 @@
(aborting the current request).
"""
-from cStringIO import StringIO
+from io import StringIO
import warnings
__all__ = ['RecursiveMiddleware']
@@ -82,7 +82,7 @@
environ['paste.recursive.script_name'] = my_script_name
try:
return self.application(environ, start_response)
- except ForwardRequestException, e:
+ except ForwardRequestException as e:
middleware = CheckForRecursionMiddleware(
e.factory(self), environ)
return middleware(environ, start_response)
@@ -319,7 +319,7 @@
response = IncludedResponse()
def start_response(status, headers, exc_info=None):
if exc_info:
- raise exc_info[0], exc_info[1], exc_info[2]
+ raise exc_info[0](exc_info[1]).with_traceback(exc_info[2])
response.status = status
response.headers = headers
return response.write
@@ -373,7 +373,7 @@
response = IncludedAppIterResponse()
def start_response(status, headers, exc_info=None):
if exc_info:
- raise exc_info[0], exc_info[1], exc_info[2]
+ raise exc_info[0](exc_info[1]).with_traceback(exc_info[2])
response.status = status
response.headers = headers
return response.write
--- debian/tmp/paste/registry.py (original)
+++ debian/tmp/paste/registry.py (refactored)
@@ -125,7 +125,7 @@
"""Return a list of the StackedObjectProxy's and proxied
object's (if one exists) names.
"""
- dir_list = dir(self.__class__) + self.__dict__.keys()
+ dir_list = dir(self.__class__) + list(self.__dict__.keys())
try:
dir_list.extend(dir(self._current_obj()))
except TypeError:
@@ -171,7 +171,7 @@
def __contains__(self, key):
return key in self._current_obj()
- def __nonzero__(self):
+ def __bool__(self):
return bool(self._current_obj())
def _current_obj(self):
@@ -345,7 +345,7 @@
def cleanup(self):
"""Remove all objects from all StackedObjectProxy instances that
were tracked at this Registry context"""
- for stacked, obj in self.reglist[-1].itervalues():
+ for stacked, obj in self.reglist[-1].values():
stacked._pop_object(obj)
self.reglist.pop()
@@ -377,7 +377,7 @@
try:
app_iter = self.application(environ, start_response)
- except Exception, e:
+ except Exception as e:
# Regardless of if the content is an iterable, generator, list
# or tuple, we clean-up right now. If its an iterable/generator
# care should be used to ensure the generator has its own ref
@@ -408,7 +408,7 @@
try:
for item in self.application(environ, start_response):
yield item
- RefactoringTool: Refactored debian/tmp/paste/reloader.py
RefactoringTool: Refactored debian/tmp/paste/request.py
except Exception, e:
+ except Exception as e:
# Regardless of if the content is an iterable, generator, list
# or tuple, we clean-up right now. If its an iterable/generator
# care should be used to ensure the generator has its own ref
@@ -498,7 +498,7 @@
# their methods to act differently when a restoration context is active
# in the current thread
for reglist in registry.reglist:
- for stacked, obj in reglist.itervalues():
+ for stacked, obj in reglist.values():
self.enable_restoration(stacked)
def get_saved_proxied_obj(self, stacked, request_id):
--- debian/tmp/paste/reloader.py (original)
+++ debian/tmp/paste/reloader.py (refactored)
@@ -93,12 +93,12 @@
try:
filenames.extend(file_callback())
except:
- print >> sys.stderr, "Error calling paste.reloader callback %r:" % file_callback
+ print("Error calling paste.reloader callback %r:" % file_callback, file=sys.stderr)
traceback.print_exc()
- for module in sys.modules.values():
+ for module in list(sys.modules.values()):
try:
filename = module.__file__
- except (AttributeError, ImportError), exc:
+ except (AttributeError, ImportError) as exc:
continue
if filename is not None:
filenames.append(filename)
@@ -116,11 +116,11 @@
elif filename.endswith('$py.class') and \
os.path.exists(filename[:-9] + '.py'):
mtime = max(os.stat(filename[:-9] + '.py').st_mtime, mtime)
- if not self.module_mtimes.has_key(filename):
+ if filename not in self.module_mtimes:
self.module_mtimes[filename] = mtime
elif self.module_mtimes[filename] < mtime:
- print >> sys.stderr, (
- "%s changed; reloading..." % filename)
+ print((
+ "%s changed; reloading..." % filename), file=sys.stderr)
return False
return True
--- debian/tmp/paste/request.py (original)
+++ debian/tmp/paste/request.py (refactored)
@@ -18,10 +18,10 @@
"""
import cgi
-from Cookie import SimpleCookie, CookieError
-from StringIO import StringIO
-import urlparse
-import urllib
+from http.cookies import SimpleCookie, CookieError
+from io import StringIO
+import urllib.parse
+import urllib.request, urllib.parse, urllib.error
try:
from UserDict import DictMixin
@@ -42,7 +42,7 @@
"""
header = environ.get('HTTP_COOKIE', '')
- if environ.has_key('paste.cookies'):
+ if 'paste.cookies' in environ:
cookies, check_header = environ['paste.cookies']
if check_header == header:
return cookies
@@ -65,7 +65,7 @@
header = environ.get('HTTP_COOKIE')
if not header:
return {}
- if environ.has_key('paste.cookies.dict'):
+ if 'paste.cookies.dict' in environ:
cookies, check_header = environ['paste.cookies.dict']
if check_header == header:
return cookies
@@ -186,7 +186,7 @@
environ['CONTENT_LENGTH'] = old_content_length
formvars = MultiDict()
if isinstance(fs.value, list):
- for name in fs.keys():
+ for name in list(fs.keys()):
values = fs[name]
if not isinstance(values, list):
values = [values]
@@ -233,14 +233,14 @@
url += ':' + environ['SERVER_PORT']
if script_name is None:
- url += urllib.quote(environ.get('SCRIPT_NAME',''))
+ url += urllib.parse.quote(environ.get('SCRIPT_NAME',''))
else:
- url += urllib.quote(script_name)
+ url += urllib.parse.quote(script_name)
if with_path_info:
if path_info is None:
- url += urllib.quote(environ.get('PATH_INFO',''))
+ url += urllib.parse.quote(environ.get('PATH_INFO',''))
else:
- url += urllib.quote(patRefactoringTool: Refactored debian/tmp/paste/response.py
RefactoringTool: Refactored debian/tmp/paste/session.py
RefactoringTool: Refactored debian/tmp/paste/transaction.py
RefactoringTool: Refactored debian/tmp/paste/translogger.py
h_info)
+ url += urllib.parse.quote(path_info)
if with_query_string:
if querystring is None:
if environ.get('QUERY_STRING'):
@@ -259,7 +259,7 @@
"""
cur_url = construct_url(environ, with_query_string=False)
- return urlparse.urljoin(cur_url, url)
+ return urllib.parse.urljoin(cur_url, url)
def path_info_split(path_info):
"""
@@ -333,7 +333,7 @@
yield a sequence of those (header_name, value) tuples.
"""
# @@: Maybe should parse out comma-separated headers?
- for cgi_var, value in environ.iteritems():
+ for cgi_var, value in environ.items():
if cgi_var in _parse_headers_special:
yield _parse_headers_special[cgi_var], value
elif cgi_var.startswith('HTTP_'):
--- debian/tmp/paste/response.py (original)
+++ debian/tmp/paste/response.py (refactored)
@@ -68,7 +68,7 @@
def headeritems(self):
result = []
- for key, value in self.items():
+ for key, value in list(self.items()):
if isinstance(value, list):
for v in value:
result.append((key, str(v)))
--- debian/tmp/paste/session.py (original)
+++ debian/tmp/paste/session.py (refactored)
@@ -23,7 +23,7 @@
expired.
"""
-from Cookie import SimpleCookie
+from http.cookies import SimpleCookie
import time
import random
import os
@@ -32,7 +32,7 @@
import tempfile
try:
- import cPickle
+ import pickle
except ImportError:
import pickle as cPickle
try:
@@ -100,7 +100,7 @@
return self.session.data()
cookies = request.get_cookies(self.environ)
session = None
- if cookies.has_key(self.cookie_name):
+ if self.cookie_name in cookies:
self.sid = cookies[self.cookie_name].value
try:
session = self.session_class(self.sid, create=False,
@@ -121,7 +121,7 @@
if self.session is not None:
return True
cookies = request.get_cookies(self.environ)
- if cookies.has_key(self.cookie_name):
+ if self.cookie_name in cookies:
return True
return False
@@ -179,7 +179,7 @@
chmod=None,
expiration=2880, # in minutes: 48 hours
):
- if chmod and isinstance(chmod, basestring):
+ if chmod and isinstance(chmod, str):
chmod = int(chmod, 8)
self.chmod = chmod
if not sid:
@@ -203,7 +203,7 @@
return self._data
if os.path.exists(self.filename()):
f = open(self.filename(), 'rb')
- self._data = cPickle.load(f)
+ self._data = pickle.load(f)
f.close()
else:
self._data = {}
@@ -218,7 +218,7 @@
os.unlink(filename)
else:
f = open(filename, 'wb')
- cPickle.dump(self._data, f)
+ pickle.dump(self._data, f)
f.close()
if not exists and self.chmod:
os.chmod(filename, self.chmod)
--- debian/tmp/paste/transaction.py (original)
+++ debian/tmp/paste/transaction.py (refactored)
@@ -14,7 +14,7 @@
This is experimental, and will change in the future.
"""
from paste.httpexceptions import HTTPException
-from wsgilib import catch_errors
+from .wsgilib import catch_errors
class TransactionManagerMiddleware(object):
@@ -116,5 +116,5 @@
curr = conn.cursor()
curr.execute("SELECT now(), %s" % conn.quote("B'n\\'gles"))
(time, bing) = curr.fetchone()
- print bing, time
+ print(bing, time)
--- debian/tmp/paste/translogger.py (original)
+++ debian/tmp/paste/translogger.py (refactored)
@@ -6,7 +6,7 @@
import logging
import time
-import urllib
+import urllib.request, urllib.parse, urllib.error
class TransLogger(object):
"""
@@ -50,7 +50,7 @@
def __call__(self, environ, start_response):
start = time.localtime()
- req_uri = urllib.quote(environ.get('SCRIPT_NAME', '')
+ req_uri = urllib.parse.quote(enRefactoringTool: Refactored debian/tmp/paste/url.py
viron.get('SCRIPT_NAME', '')
+ environ.get('PATH_INFO', ''))
if environ.get('QUERY_STRING'):
req_uri += '?'+environ['QUERY_STRING']
@@ -106,9 +106,9 @@
setup_console_handler=True,
set_logger_level=logging.DEBUG):
from paste.util.converters import asbool
- if isinstance(logging_level, basestring):
+ if isinstance(logging_level, str):
logging_level = logging._levelNames[logging_level]
- if isinstance(set_logger_level, basestring):
+ if isinstance(set_logger_level, str):
set_logger_level = logging._levelNames[set_logger_level]
return TransLogger(
app,
--- debian/tmp/paste/url.py (original)
+++ debian/tmp/paste/url.py (refactored)
@@ -4,7 +4,7 @@
"""
This module implements a class for handling URLs.
"""
-import urllib
+import urllib.request, urllib.parse, urllib.error
import cgi
from paste import request
# Imported lazily from FormEncode:
@@ -20,9 +20,9 @@
def url_quote(v):
if v is None:
return ''
- return urllib.quote(str(v))
-
-url_unquote = urllib.unquote
+ return urllib.parse.quote(str(v))
+
+url_unquote = urllib.parse.unquote
def js_repr(v):
if v is None:
@@ -39,12 +39,12 @@
for key, value in v])
elif isinstance(v, str):
return repr(v)
- elif isinstance(v, unicode):
+ elif isinstance(v, str):
# @@: how do you do Unicode literals in Javascript?
return repr(v.encode('UTF-8'))
elif isinstance(v, (float, int)):
return repr(v)
- elif isinstance(v, long):
+ elif isinstance(v, int):
return repr(v).lstrip('L')
elif hasattr(v, '__js_repr__'):
return v.__js_repr__()
@@ -106,7 +106,7 @@
return self._add_positional((item,))
def attr(self, **kw):
- for key in kw.keys():
+ for key in list(kw.keys()):
if key.endswith('_'):
kw[key[:-1]] = kw[key]
del kw[key]
@@ -126,7 +126,7 @@
def coerce_vars(self, vars):
global variabledecode
need_variable_encode = False
- for key, value in vars.items():
+ for key, value in list(vars.items()):
if isinstance(value, dict):
need_variable_encode = True
if key.endswith('_'):
@@ -141,7 +141,7 @@
def var(self, **kw):
kw = self.coerce_vars(kw)
- new_vars = self.vars + kw.items()
+ new_vars = self.vars + list(kw.items())
return self.__class__(self.url, vars=new_vars,
attrs=self.attrs,
params=self.original_params)
@@ -158,7 +158,7 @@
if name in kw:
continue
new_vars.append((name, values))
- new_vars.extend(kw.items())
+ new_vars.extend(list(kw.items()))
return self.__class__(self.url, vars=new_vars,
attrs=self.attrs,
params=self.original_params)
@@ -168,7 +168,7 @@
Creates a copy of this URL, but with all the variables set/reset
(like .setvar(), except clears past variables at the same time)
"""
- return self.__class__(self.url, vars=kw.items(),
+ return self.__class__(self.url, vars=list(kw.items()),
attrs=self.attrs,
params=self.original_params)
@@ -202,7 +202,7 @@
elif val is None:
continue
vars.append((name, val))
- s += urllib.urlencode(vars, True)
+ s += urllib.parse.urlencode(vars, True)
return s
href = property(href__get)
@@ -213,11 +213,11 @@
if self.attrs:
base += ' attrs(%s)' % (
' '.join(['%s="%s"' % (html_quote(n), html_quote(v))
- for n, v in self.attrs.items()]))
+ for n, v in list(self.attrs.items())]))
if self.original_params:
base += ' params(%s)' % (
RefactoringTool: Refactored debian/tmp/paste/urlmap.py
RefactoringTool: Refactored debian/tmp/paste/urlparser.py
', '.join(['%s=%r' % (n, v)
- for n, v in self.attrs.items()]))
+ for n, v in list(self.attrs.items())]))
return base + '>'
def html__get(self):
@@ -241,7 +241,7 @@
html = property(html__get)
def _html_attrs(self):
- return self.attrs.items()
+ return list(self.attrs.items())
def _html_extra(self):
return ''
@@ -309,7 +309,7 @@
return self.addpath(*args)
def _html_attrs(self):
- attrs = self.attrs.items()
+ attrs = list(self.attrs.items())
attrs.insert(0, ('href', self.href))
if self.params.get('confirm'):
attrs.append(('onclick', 'return confirm(%s)'
@@ -359,7 +359,7 @@
return self.addpath(*args)
def _html_attrs(self):
- attrs = self.attrs.items()
+ attrs = list(self.attrs.items())
attrs.insert(0, ('src', self.href))
return attrs
@@ -398,7 +398,7 @@
return self.addpath(*args)
def _html_attrs(self):
- attrs = self.attrs.items()
+ attrs = list(self.attrs.items())
onclick = 'location.href=%s' % js_repr(self.href)
if self.params.get('confirm'):
onclick = 'if (confirm(%s)) {%s}' % (
@@ -451,7 +451,7 @@
return ', '.join(map(js_repr, args))
def _html_attrs(self):
- attrs = self.attrs.items()
+ attrs = list(self.attrs.items())
onclick = ('window.open(%s); return false'
% self._window_args())
attrs.insert(0, ('target', self.params['target']))
--- debian/tmp/paste/urlmap.py (original)
+++ debian/tmp/paste/urlmap.py (refactored)
@@ -23,7 +23,7 @@
if not_found_app:
not_found_app = loader.get_app(not_found_app, global_conf=global_conf)
urlmap = URLMap(not_found_app=not_found_app)
- for path, app_name in local_conf.items():
+ for path, app_name in list(local_conf.items()):
path = parse_path_expression(path)
app = loader.get_app(app_name, global_conf=global_conf)
urlmap[path] = app
@@ -231,7 +231,7 @@
self.builder = builder
def __setitem__(self, url, app):
- if isinstance(app, (str, unicode)):
+ if isinstance(app, str):
app_fn = os.path.join(self.base_path, app)
app = self.builder(app_fn)
url = self.map.normalize_url(url)
--- debian/tmp/paste/urlparser.py (original)
+++ debian/tmp/paste/urlparser.py (refactored)
@@ -16,7 +16,7 @@
from paste import fileapp
from paste.util import import_string
from paste import httpexceptions
-from httpheaders import ETAG
+from .httpheaders import ETAG
from paste.util import converters
class NoDefault(object):
@@ -126,14 +126,14 @@
if constructors:
self.constructors.update(constructors)
# @@: Should we also check the global options for constructors?
- for name, value in constructor_conf.items():
+ for name, value in list(constructor_conf.items()):
if not name.startswith('constructor '):
raise ValueError(
"Only extra configuration keys allowed are "
"'constructor .ext = import_expr'; you gave %r "
"(=%r)" % (name, value))
ext = name[len('constructor '):].strip()
- if isinstance(value, (str, unicode)):
+ if isinstance(value, str):
value = import_string.eval_import(value)
self.constructors[ext] = value
@@ -298,7 +298,7 @@
``environ`` and ``filename``, and returns a WSGI application.
"""
d = cls.global_constructors
- assert not d.has_key(extension), (
+ assert extension not in d, (
"A constructor already exists for the extension %r (%r) "
"when attemption to register constructor %r"
% (extension, d[extension], constructor))
@@ -362,13 +362,13 @@
environ['wsgi.errors'])
def load_module_from_name(environ, filename, module_naRefactoringTool: Refactored debian/tmp/paste/wsgilib.py
me, errors):
- if sys.modules.has_key(module_name):
+ if module_name in sys.modules:
return sys.modules[module_name]
init_filename = os.path.join(os.path.dirname(filename), '__init__.py')
if not os.path.exists(init_filename):
try:
f = open(init_filename, 'w')
- except (OSError, IOError), e:
+ except (OSError, IOError) as e:
errors.write(
'Cannot write __init__.py file into directory %s (%s)\n'
% (os.path.dirname(filename), e))
@@ -376,7 +376,7 @@
f.write('#\n')
f.close()
fp = None
- if sys.modules.has_key(module_name):
+ if module_name in sys.modules:
return sys.modules[module_name]
if '.' in module_name:
parent_name = '.'.join(module_name.split('.')[:-1])
@@ -525,7 +525,7 @@
def __init__(self, egg_or_spec, resource_name, manager=None, root_resource=None):
if pkg_resources is None:
raise NotImplementedError("This class requires pkg_resources.")
- if isinstance(egg_or_spec, (str, unicode)):
+ if isinstance(egg_or_spec, str):
self.egg = pkg_resources.get_distribution(egg_or_spec)
else:
self.egg = egg_or_spec
@@ -574,7 +574,7 @@
# @@: I don't know what to do with the encoding.
try:
file = self.egg.get_resource_stream(self.manager, resource)
- except (IOError, OSError), e:
+ except (IOError, OSError) as e:
exc = httpexceptions.HTTPForbidden(
'You are not permitted to view this file (%s)' % e)
return exc.wsgi_application(environ, start_response)
--- debian/tmp/paste/wsgilib.py (original)
+++ debian/tmp/paste/wsgilib.py (refactored)
@@ -13,10 +13,10 @@
from paste.response import error_body_response, error_response, error_response_app
from traceback import print_exception
-import urllib
-from cStringIO import StringIO
+import urllib.request, urllib.parse, urllib.error
+from io import StringIO
import sys
-from urlparse import urlsplit
+from urllib.parse import urlsplit
import warnings
__all__ = ['add_close', 'add_start_close', 'capture_output', 'catch_errors',
@@ -41,8 +41,8 @@
def __iter__(self):
return self
- def next(self):
- return self.app_iter.next()
+ def __next__(self):
+ return next(self.app_iter)
def close(self):
self._closed = True
@@ -53,10 +53,10 @@
def __del__(self):
if not self._closed:
# We can't raise an error or anything at this stage
- print >> sys.stderr, (
+ print((
"Error: app_iter.close() was not called when finishing "
"WSGI request. finalization function %s not called"
- % self.close_func)
+ % self.close_func), file=sys.stderr)
class add_start_close(object):
"""
@@ -76,11 +76,11 @@
def __iter__(self):
return self
- def next(self):
+ def __next__(self):
if self.first:
self.start_func()
self.first = False
- return self.app_iter.next()
+ return next(self.app_iter)
def close(self):
self._closed = True
@@ -92,10 +92,10 @@
def __del__(self):
if not self._closed:
# We can't raise an error or anything at this stage
- print >> sys.stderr, (
+ print((
"Error: app_iter.close() was not called when finishing "
"WSGI request. finalization function %s not called"
- % self.close_func)
+ % self.close_func), file=sys.stderr)
class chained_app_iters(object):
@@ -112,15 +112,15 @@
def __iter__(self):
return self
- def next(self):
+ def __next__(self):
if len(self.chained) == 1:
- return self.chained[0].next()
+ return next(self.chained[0])
else:
try:
- return self.chained[0].next()
+ return next(self.chained[0])
except StopIteration:
self.chained.pop(0)
- return self.next()
+ return next(self)
def close(self):
self._closed = True
@@ -132,15 +132,15 @@
except:
got_exc = sys.exc_info()
if got_exc:
- raise got_exc[0], got_exc[1], got_exc[2]
+ raise got_exc[0](got_exc[1]).with_traceback(got_exc[2])
def __del__(self):
if not self._closed:
# We can't raise an error or anything at this stage
- print >> sys.stderr, (
+ print((
"Error: app_iter.close() was not called when finishing "
"WSGI request. finalization function %s not called"
- % self.close_func)
+ % self.close_func), file=sys.stderr)
class encode_unicode_app_iter(object):
"""
@@ -157,9 +157,9 @@
def __iter__(self):
return self
- def next(self):
- content = self.app_iter.next()
- if isinstance(content, unicode):
+ def __next__(self):
+ content = next(self.app_iter)
+ if isinstance(content, str):
content = content.encode(self.encoding, self.errors)
return content
@@ -201,9 +201,9 @@
def __iter__(self):
return self
- def next(self):
+ def __next__(self):
try:
- return self.app_iter.next()
+ return next(self.app_iter)
except StopIteration:
if self.ok_callback:
self.ok_callback()
@@ -252,9 +252,9 @@
def __iter__(self):
return self
- def next(self):
+ def __next__(self):
try:
- return self.app_iter.next()
+ return next(self.app_iter)
except StopIteration:
if self.ok_callback:
self.ok_callback()
@@ -271,8 +271,8 @@
app_iter = iter(new_app_iterable)
if hasattr(new_app_iterable, 'close'):
self.close = new_app_iterable.close
- self.next = app_iter.next
- return self.next()
+ self.next = app_iter.__next__
+ return next(self)
def raw_interactive(application, path='', raise_on_wsgi_error=False,
**environ):
@@ -303,13 +303,13 @@
}
if path:
(_, _, path_info, query, fragment) = urlsplit(str(path))
- path_info = urllib.unquote(path_info)
+ path_info = urllib.parse.unquote(path_info)
# urlsplit returns unicode so coerce it back to str
path_info, query = str(path_info), str(query)
basic_environ['PATH_INFO'] = path_info
if query:
basic_environ['QUERY_STRING'] = query
- for name, value in environ.items():
+ for name, value in list(environ.items()):
name = name.replace('__', '.')
basic_environ[name] = value
if ('SERVER_NAME' in basic_environ
@@ -328,7 +328,7 @@
try:
if headers_sent:
# Re-raise original exception only if headers sent
- raise exc_info[0], exc_info[1], exc_info[2]
+ raise exc_info[0](exc_info[1]).with_traceback(exc_info[2])
finally:
# avoid dangling circular reference
exc_info = None
@@ -352,7 +352,7 @@
if not headers_set:
raise AssertionError("Content sent w/o headers!")
output.append(s)
- except TypeError, e:
+ except TypeError as e:
# Typically "iteration over non-sequence", so we want
# to give better debugging information...
e.args = ((e.args[0] + ' iterable: %r' % app_iter),) + e.args[1:]
@@ -406,7 +406,7 @@
variables out as a plain text response.
"""
output = []
- keys = environ.keys()
+ keys = list(environ.keys())
keys.sort()
for k in keys:
v = str(environ[k]).replace("\n","\n ")
@@ -568,8 +568,8 @@
HeaderDict.__init__(self, *args, **kw)
def _warn_deprecated(new_funRefactoringTool: Refactored debian/tmp/paste/wsgiwrappers.py
RefactoringTool: No changes to debian/tmp/paste/auth/__init__.py
RefactoringTool: Refactored debian/tmp/paste/auth/auth_tkt.py
c):
- new_name = new_func.func_name
- new_path = new_func.func_globals['__name__'] + '.' + new_name
+ new_name = new_func.__name__
+ new_path = new_func.__globals__['__name__'] + '.' + new_name
def replacement(*args, **kw):
warnings.warn(
"The function wsgilib.%s has been moved to %s"
@@ -577,7 +577,7 @@
DeprecationWarning, 2)
return new_func(*args, **kw)
try:
- replacement.func_name = new_func.func_name
+ replacement.__name__ = new_func.__name__
except:
pass
return replacement
@@ -588,7 +588,7 @@
for _name in __all__:
_func = globals()[_name]
if (hasattr(_func, 'func_globals')
- and _func.func_globals['__name__'] != __name__):
+ and _func.__globals__['__name__'] != __name__):
globals()[_name] = _warn_deprecated(_func)
if __name__ == '__main__':
--- debian/tmp/paste/wsgiwrappers.py (original)
+++ debian/tmp/paste/wsgiwrappers.py (refactored)
@@ -8,7 +8,7 @@
import re
import warnings
from pprint import pformat
-from Cookie import SimpleCookie
+from http.cookies import SimpleCookie
from paste.request import EnvironHeaders, get_cookie_dict, \
parse_dict_querystring, parse_formvars
from paste.util.multidict import MultiDict, UnicodeMultiDict
@@ -349,7 +349,7 @@
status_text = STATUS_CODE_TEXT[self.status_code]
status = '%s %s' % (self.status_code, status_text)
response_headers = self.headers.headeritems()
- for c in self.cookies.values():
+ for c in list(self.cookies.values()):
response_headers.append(('Set-Cookie', c.output(header='')))
start_response(status, response_headers)
is_file = isinstance(self.content, file)
@@ -375,7 +375,7 @@
warnings.warn('WSGIResponse.has_header is deprecated, use '
'WSGIResponse.headers.has_key instead', DeprecationWarning,
2)
- return self.headers.has_key(header)
+ return header in self.headers
def set_cookie(self, key, value='', max_age=None, expires=None, path='/',
domain=None, secure=None, httponly=None):
@@ -437,7 +437,7 @@
status_text = STATUS_CODE_TEXT[self.status_code]
status = '%s %s' % (self.status_code, status_text)
response_headers = self.headers.headeritems()
- for c in self.cookies.values():
+ for c in list(self.cookies.values()):
response_headers.append(('Set-Cookie', c.output(header='')))
return status, response_headers, self.get_content()
@@ -445,8 +445,8 @@
# See http://docs.python.org/lib/bltin-file-objects.html
def write(self, content):
if not self._is_str_iter:
- raise IOError, "This %s instance's content is not writable: (content " \
- 'is an iterator)' % self.__class__.__name__
+ raise IOError("This %s instance's content is not writable: (content " \
+ 'is an iterator)' % self.__class__.__name__)
self.content.append(content)
def flush(self):
@@ -454,8 +454,8 @@
def tell(self):
if not self._is_str_iter:
- raise IOError, 'This %s instance cannot tell its position: (content ' \
- 'is an iterator)' % self.__class__.__name__
+ raise IOError('This %s instance cannot tell its position: (content ' \
+ 'is an iterator)' % self.__class__.__name__)
return sum([len(chunk) for chunk in self._iter])
########################################
--- debian/tmp/paste/auth/auth_tkt.py (original)
+++ debian/tmp/paste/auth/auth_tkt.py (refactored)
@@ -42,10 +42,10 @@
from hashlib import md5
except ImportError:
from md5 import md5
-import Cookie
+import http.cookies
from paste import request
-from urllib import quote as url_quote
-from urllib import unquote as url_unquote
+from urllib.parse import quote as url_quote
+from urllib.parse import unquote as url_unquote
class AuthTicket(object):
@@ -112,7 +112,7 @@
return v
deRefactoringTool: No changes to debian/tmp/paste/auth/basic.py
RefactoringTool: Refactored debian/tmp/paste/auth/cas.py
RefactoringTool: Refactored debian/tmp/paste/auth/cookie.py
RefactoringTool: Refactored debian/tmp/paste/auth/digest.py
f cookie(self):
- c = Cookie.SimpleCookie()
+ c = http.cookies.SimpleCookie()
c[self.cookie_name] = self.cookie_value().encode('base64').strip().replace('\n', '')
c[self.cookie_name]['path'] = '/'
if self.secure:
@@ -143,7 +143,7 @@
digest = ticket[:32]
try:
timestamp = int(ticket[32:40], 16)
- except ValueError, e:
+ except ValueError as e:
raise BadTicket('Timestamp is not a hex integer: %s' % e)
try:
userid, data = ticket[40:].split('!', 1)
@@ -182,7 +182,7 @@
def encode_ip_timestamp(ip, timestamp):
- ip_chars = ''.join(map(chr, map(int, ip.split('.'))))
+ ip_chars = ''.join(map(chr, list(map(int, ip.split('.')))))
t = int(timestamp)
ts = ((t & 0xff000000) >> 24,
(t & 0xff0000) >> 16,
@@ -193,7 +193,7 @@
def maybe_encode(s, encoding='utf8'):
- if isinstance(s, unicode):
+ if isinstance(s, str):
s = s.encode(encoding)
return s
@@ -316,7 +316,7 @@
return self.app(environ, cookie_setting_start_response)
def set_user_cookie(self, environ, userid, tokens, user_data):
- if not isinstance(tokens, basestring):
+ if not isinstance(tokens, str):
tokens = ','.join(tokens)
if self.include_ip:
remote_addr = environ['REMOTE_ADDR']
--- debian/tmp/paste/auth/cas.py (original)
+++ debian/tmp/paste/auth/cas.py (refactored)
@@ -18,7 +18,7 @@
of processing. It has the secondary goal of allowing for other
authentication methods to be used concurrently.
"""
-import urllib
+import urllib.request, urllib.parse, urllib.error
from paste.request import construct_url
from paste.httpexceptions import HTTPSeeOther, HTTPForbidden
@@ -69,10 +69,10 @@
ticket = qs.pop().split("=", 1)[1]
environ['QUERY_STRING'] = "&".join(qs)
service = construct_url(environ)
- args = urllib.urlencode(
+ args = urllib.parse.urlencode(
{'service': service,'ticket': ticket})
requrl = authority + "validate?" + args
- result = urllib.urlopen(requrl).read().split("\n")
+ result = urllib.request.urlopen(requrl).read().split("\n")
if 'yes' == result[0]:
environ['REMOTE_USER'] = result[1]
environ['AUTH_TYPE'] = 'cas'
@@ -80,7 +80,7 @@
exce = CASLoginFailure()
else:
service = construct_url(environ)
- args = urllib.urlencode({'service': service})
+ args = urllib.parse.urlencode({'service': service})
location = authority + "login?" + args
exce = CASAuthenticate(location)
return exce.wsgi_application(environ, start_response)
--- debian/tmp/paste/auth/cookie.py (original)
+++ debian/tmp/paste/auth/cookie.py (refactored)
@@ -42,6 +42,7 @@
"""
import hmac, base64, random, time, warnings
+from functools import reduce
try:
from hashlib import sha1
except ImportError:
@@ -124,7 +125,7 @@
"""
def __init__(self, secret = None, timeout = None, maxlen = None):
self.timeout = timeout or 30
- if isinstance(timeout, basestring):
+ if isinstance(timeout, str):
raise ValueError(
"Timeout must be a number (minutes), not a string (%r)"
% timeout)
@@ -258,7 +259,7 @@
raise AssertionError("AuthCookie already installed!")
scanlist = self.environ_class(self, self.scanlist)
jar = get_cookies(environ)
- if jar.has_key(self.cookie_name):
+ if self.cookie_name in jar:
content = self.signer.auth(jar[self.cookie_name].value)
if content:
for pair in content.split(";"):
@@ -370,7 +371,7 @@
which is a typical browser maximum)
"""
- if isinstance(scanlist, basestring):
+ if isinstance(scanlist, str):
scanlist = scanlist.split()
if secret is None and global_conf.get('secret'):
secret = global_conf['secret']
--- deRefactoringTool: No changes to debian/tmp/paste/auth/form.py
RefactoringTool: Refactored debian/tmp/paste/auth/grantip.py
RefactoringTool: No changes to debian/tmp/paste/auth/multi.py
RefactoringTool: Refactored debian/tmp/paste/auth/open_id.py
RefactoringTool: No changes to debian/tmp/paste/cowbell/__init__.py
RefactoringTool: No changes to debian/tmp/paste/debug/__init__.py
RefactoringTool: Refactored debian/tmp/paste/debug/debugapp.py
bian/tmp/paste/auth/digest.py (original)
+++ debian/tmp/paste/auth/digest.py (refactored)
@@ -36,7 +36,7 @@
except ImportError:
from md5 import md5
import time, random
-from urllib import quote as url_quote
+from urllib.parse import quote as url_quote
def digest_password(realm, username, password):
""" construct the appropriate hashcode needed for HTTP digest """
@@ -60,7 +60,7 @@
'nonce': nonce, 'opaque': opaque }
if stale:
parts['stale'] = 'true'
- head = ", ".join(['%s="%s"' % (k, v) for (k, v) in parts.items()])
+ head = ", ".join(['%s="%s"' % (k, v) for (k, v) in list(parts.items())])
head = [("WWW-Authenticate", 'Digest %s' % head)]
return HTTPUnauthorized(headers=head)
--- debian/tmp/paste/auth/grantip.py (original)
+++ debian/tmp/paste/auth/grantip.py (refactored)
@@ -28,13 +28,13 @@
def __init__(self, app, ip_map, clobber_username=True):
self.app = app
self.ip_map = []
- for key, value in ip_map.items():
+ for key, value in list(ip_map.items()):
self.ip_map.append((ip4.IP4Range(key),
self._convert_user_role(value[0], value[1])))
self.clobber_username = clobber_username
def _convert_user_role(self, username, roles):
- if roles and isinstance(roles, basestring):
+ if roles and isinstance(roles, str):
roles = roles.split(',')
return (username, roles)
@@ -61,7 +61,7 @@
def _set_roles(self, environ, roles):
cur_roles = environ.get('REMOTE_USER_TOKENS', '').split(',')
# Get rid of empty roles:
- cur_roles = filter(None, cur_roles)
+ cur_roles = [_f for _f in cur_roles if _f]
remove_roles = []
for role in roles:
if role.startswith('-'):
@@ -97,7 +97,7 @@
from paste.deploy.converters import asbool
clobber_username = asbool(clobber_username)
ip_map = {}
- for key, value in kw.items():
+ for key, value in list(kw.items()):
if ':' in value:
username, role = value.split(':', 1)
else:
--- debian/tmp/paste/auth/open_id.py (original)
+++ debian/tmp/paste/auth/open_id.py (refactored)
@@ -56,7 +56,7 @@
__all__ = ['AuthOpenIDHandler']
import cgi
-import urlparse
+import urllib.parse
import re
import paste.request
@@ -126,7 +126,7 @@
with_query_string=False)
path = re.sub(self.auth_prefix, '', environ['PATH_INFO'])
- request['parsed_uri'] = urlparse.urlparse(path)
+ request['parsed_uri'] = urllib.parse.urlparse(path)
request['query'] = dict(paste.request.parse_querystring(environ))
path = request['parsed_uri'][2]
@@ -289,7 +289,7 @@
def build_url(self, request, action, **query):
"""Build a URL relative to the server base_url, with the given
query parameters added."""
- base = urlparse.urljoin(request['base_url'], self.auth_prefix + '/' + action)
+ base = urllib.parse.urljoin(request['base_url'], self.auth_prefix + '/' + action)
return appendArgs(base, query)
def redirect(self, request, redirect_url):
@@ -398,7 +398,7 @@
from paste.deploy.converters import asbool
from paste.util import import_string
catch_401 = asbool(catch_401)
- if url_to_username and isinstance(url_to_username, basestring):
+ if url_to_username and isinstance(url_to_username, str):
url_to_username = import_string.eval_import(url_to_username)
apply_auth_tkt = asbool(apply_auth_tkt)
new_app = AuthOpenIDHandler(
--- debian/tmp/paste/debug/debugapp.py (original)
+++ debian/tmp/paste/debug/debugapp.py (refactored)
@@ -41,7 +41,7 @@
remaining = int(total)
while remaining > 0:
if self.progress:
- print "%s of %s remaining" % (remaining, total)
+ print("%s of %s remaining" % (remaining, total))
if remaRefactoringTool: Refactored debian/tmp/paste/debug/doctest_webapp.py
RefactoringTool: Refactored debian/tmp/paste/debug/fsdiff.py
RefactoringTool: Refactored debian/tmp/paste/debug/prints.py
ining > 4096:
chunk = environ['wsgi.input'].read(4096)
else:
@@ -59,7 +59,7 @@
'\n'
'\n'
'