Show More
@@ -38,6 +38,12 b' class httprepository(repo.repository):' | |||||
38 |
|
38 | |||
39 | self.urlopener = url.opener(ui, authinfo) |
|
39 | self.urlopener = url.opener(ui, authinfo) | |
40 |
|
40 | |||
|
41 | def __del__(self): | |||
|
42 | for h in self.urlopener.handlers: | |||
|
43 | h.close() | |||
|
44 | if hasattr(h, "close_all"): | |||
|
45 | h.close_all() | |||
|
46 | ||||
41 | def url(self): |
|
47 | def url(self): | |
42 | return self.path |
|
48 | return self.path | |
43 |
|
49 |
General Comments 0
You need to be logged in to leave comments.
Login now