diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2012-06-29 16:10:40 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2012-06-29 16:10:40 +0200 |
| commit | 794e9321c92aab78c3b7123d765967ba67b79851 (patch) | |
| tree | 9886905374b0ae9bc0043f12be0797c6f8f0af35 /apt/progress | |
| parent | 43aee9eda68e374067d6d6a9c4dd3c3e9b986041 (diff) | |
| parent | 6ec2e17ae6712655c1bacffa8c6ecde5f8810960 (diff) | |
| download | python-apt-794e9321c92aab78c3b7123d765967ba67b79851.tar.gz | |
merged from debian-sid
Diffstat (limited to 'apt/progress')
| -rw-r--r-- | apt/progress/base.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/apt/progress/base.py b/apt/progress/base.py index 88b1ad21..ab57dd82 100644 --- a/apt/progress/base.py +++ b/apt/progress/base.py @@ -142,14 +142,11 @@ 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) - def __del__(self): - self.write_stream.close() - self.status_stream.close() - def start_update(self): """(Abstract) Start update.""" |
