MCPcopy Create free account
hub / github.com/numpy/numpy / _possible_names

Method _possible_names

numpy/lib/_datasource.py:294–301  ·  view source on GitHub ↗

Return a tuple containing compressed filename variations.

(self, filename)

Source from the content-addressed store, hash-verified

292 return filename, None
293
294 def _possible_names(self, filename):
295 """Return a tuple containing compressed filename variations."""
296 names = [filename]
297 if not self._iszip(filename):
298 for zipext in _file_openers.keys():
299 if zipext:
300 names.append(filename+zipext)
301 return names
302
303 def _isurl(self, path):
304 """Test if path is a net location. Tests the scheme and netloc."""

Callers 1

_findfileMethod · 0.95

Calls 2

_iszipMethod · 0.95
keysMethod · 0.80

Tested by

no test coverage detected