Test if the filename is a zip file by looking at the file extension.
(self, filename)
| 261 | shutil.rmtree(self._destpath) |
| 262 | |
| 263 | def _iszip(self, filename): |
| 264 | """Test if the filename is a zip file by looking at the file extension. |
| 265 | |
| 266 | """ |
| 267 | fname, ext = os.path.splitext(filename) |
| 268 | return ext in _file_openers.keys() |
| 269 | |
| 270 | def _iswritemode(self, mode): |
| 271 | """Test if the given mode will open a file for writing.""" |
no test coverage detected