summaryrefslogtreecommitdiff
path: root/apt/progress/base.py
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2014-01-06 13:42:46 +0100
committerJulian Andres Klode <jak@debian.org>2014-01-06 13:47:31 +0100
commit86b1fa71cf952c5f4aae1cabef332ba0d4f5885c (patch)
tree1ef5ca37678cd559f50d4235a05c9fecc14ab6ad /apt/progress/base.py
parent8b8a55f10ca47fe297fbb9b16a8e100658c60df3 (diff)
downloadpython-apt-86b1fa71cf952c5f4aae1cabef332ba0d4f5885c.tar.gz
Use a single code base for Python 2 and 3
This is much better than running 2to3 during the build, as it gives us more control over the Python 3 code.
Diffstat (limited to 'apt/progress/base.py')
-rw-r--r--apt/progress/base.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/apt/progress/base.py b/apt/progress/base.py
index 66d56173..95eca9ec 100644
--- a/apt/progress/base.py
+++ b/apt/progress/base.py
@@ -271,7 +271,8 @@ class InstallProgress(object):
try:
select.select([self.status_stream], [], [],
self.select_timeout)
- except select.error as (errno_, _errstr):
+ except select.error as error:
+ (errno_, _errstr) = error.args
if errno_ != errno.EINTR:
raise