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