diff options
| author | Julian Andres Klode <jak@debian.org> | 2014-01-06 13:24:51 +0100 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2014-01-06 13:24:51 +0100 |
| commit | 8b8a55f10ca47fe297fbb9b16a8e100658c60df3 (patch) | |
| tree | d2e941190673478d7d92821715ac8df476e17843 /apt/progress/base.py | |
| parent | f6c94dbe9cbfa645b19832842183e248f940f829 (diff) | |
| download | python-apt-8b8a55f10ca47fe297fbb9b16a8e100658c60df3.tar.gz | |
Use print_function everywhere
This brings the code closer to Python 3. Automatically converted
using 2to3 -f print.
Diffstat (limited to 'apt/progress/base.py')
| -rw-r--r-- | apt/progress/base.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apt/progress/base.py b/apt/progress/base.py index 2c80ae29..66d56173 100644 --- a/apt/progress/base.py +++ b/apt/progress/base.py @@ -22,6 +22,8 @@ Custom progress classes should inherit from these classes. They can also be used as dummy progress classes which simply do nothing. """ +from __future__ import print_function + import errno import fcntl import os @@ -217,7 +219,7 @@ class InstallProgress(object): except IOError as err: # resource temporarly unavailable is ignored if err.errno != errno.EAGAIN and err.errno != errno.EWOULDBLOCK: - print err.strerror + print(err.strerror) return pkgname = status = status_str = percent = base = "" |
