summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apt/progress/text.py2
-rw-r--r--debian/changelog2
2 files changed, 3 insertions, 1 deletions
diff --git a/apt/progress/text.py b/apt/progress/text.py
index 796577e2..5e45c1db 100644
--- a/apt/progress/text.py
+++ b/apt/progress/text.py
@@ -41,7 +41,7 @@ class TextProgress(object):
def _write(self, msg, newline=True, maximize=False):
"""Write the message on the terminal, fill remaining space."""
self._file.write("\r")
- print >> self._file, msg,
+ self._file.write(msg)
# Fill remaining stuff with whitespace
if self._width > len(msg):
diff --git a/debian/changelog b/debian/changelog
index 5001f1fe..7b711e1d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -16,6 +16,8 @@ python-apt (0.7.93) UNRELEASED; urgency=low
- distro.py: Support Python 3, decode lsb_release results using utf-8.
* apt/progress/base.py:
- Fix some parsing of dpkg status fd.
+ * apt/progress/text.py:
+ - Replace one print statement with a .write() call.
[ Colin Watson ]
* apt/progress/__init__.py: