MCPcopy Index your code
hub / github.com/numpy/numpy / _iszip

Method _iszip

numpy/lib/_datasource.py:262–267  ·  view source on GitHub ↗

Test if the filename is a zip file by looking at the file extension.

(self, filename)

Source from the content-addressed store, hash-verified

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."""

Callers 2

_splitzipextMethod · 0.95
_possible_namesMethod · 0.95

Calls 1

keysMethod · 0.45

Tested by

no test coverage detected