diff options
| author | Julian Andres Klode <jak@debian.org> | 2010-01-17 15:48:16 +0100 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2010-01-17 15:48:16 +0100 |
| commit | 3c0c2fa47e2a519005f4c07dac8b1e09c86eeee4 (patch) | |
| tree | cb3b41f56ced0ed324bcd62ca742720135871fed | |
| parent | a1f06a125e59bf06ea8fccea9b584097221c0032 (diff) | |
| download | python-apt-3c0c2fa47e2a519005f4c07dac8b1e09c86eeee4.tar.gz | |
apt/progress/text.py: Replace one print statement with a .write() call.
| -rw-r--r-- | apt/progress/text.py | 2 | ||||
| -rw-r--r-- | debian/changelog | 2 |
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: |
