summaryrefslogtreecommitdiff
path: root/apt
diff options
context:
space:
mode:
Diffstat (limited to 'apt')
-rw-r--r--apt/progress/base.py5
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."""