Show More
@@ -44,8 +44,7 b' class httprepository(wireproto.wirerepos' | |||||
44 | def __del__(self): |
|
44 | def __del__(self): | |
45 | for h in self.urlopener.handlers: |
|
45 | for h in self.urlopener.handlers: | |
46 | h.close() |
|
46 | h.close() | |
47 |
|
|
47 | getattr(h, "close_all", lambda : None)() | |
48 | h.close_all() |
|
|||
49 |
|
48 | |||
50 | def url(self): |
|
49 | def url(self): | |
51 | return self.path |
|
50 | return self.path |
General Comments 0
You need to be logged in to leave comments.
Login now