summaryrefslogtreecommitdiff
path: root/apt/progress
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2012-06-26 13:43:22 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2012-06-26 13:43:22 +0200
commit16d567434f4c9e25f0a58d62228b12872f7209a5 (patch)
tree59c50961240c5121c712c697870ad4e41236f8cd /apt/progress
parent96b0facc6e57a39ad82f31bb1f248f0b8eed84ba (diff)
parentdfd6bacface878eecf3fec4876bdae2f0491a646 (diff)
downloadpython-apt-16d567434f4c9e25f0a58d62228b12872f7209a5.tar.gz
merged from the debian branch
Diffstat (limited to 'apt/progress')
-rw-r--r--apt/progress/base.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/apt/progress/base.py b/apt/progress/base.py
index 4943978c..ab57dd82 100644
--- a/apt/progress/base.py
+++ b/apt/progress/base.py
@@ -142,6 +142,7 @@ class InstallProgress(object):
def __init__(self):
(self.statusfd, self.writefd) = os.pipe()
+ # These will leak fds, but fixing this safely requires API changes.
self.write_stream = os.fdopen(self.writefd, "w")
self.status_stream = os.fdopen(self.statusfd, "r")
fcntl.fcntl(self.statusfd, fcntl.F_SETFL, os.O_NONBLOCK)