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

Method _possible_names

numpy/lib/_datasource.py:290–297  ·  view source on GitHub ↗

Return a tuple containing compressed filename variations.

(self, filename)

Source from the content-addressed store, hash-verified

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

Callers 1

_findfileMethod · 0.95

Calls 2

_iszipMethod · 0.95
keysMethod · 0.45

Tested by

no test coverage detected