Show More
@@ -233,10 +233,12 b' class bundlerepository(localrepo.localre' | |||
|
233 | 233 | self.bundlefile.close() |
|
234 | 234 | |
|
235 | 235 | def __del__(self): |
|
236 | if not self.bundlefile.closed: | |
|
237 |
|
|
|
238 | if self.tempfile is not None: | |
|
239 | os.unlink(self.tempfile) | |
|
236 | bundlefile = getattr(self, 'bundlefile', None) | |
|
237 | if bundlefile and not bundlefile.closed: | |
|
238 | bundlefile.close() | |
|
239 | tempfile = getattr(self, 'tempfile', None) | |
|
240 | if tempfile is not None: | |
|
241 | os.unlink(tempfile) | |
|
240 | 242 | |
|
241 | 243 | def instance(ui, path, create): |
|
242 | 244 | if create: |
General Comments 0
You need to be logged in to leave comments.
Login now