MCPcopy Index your code
hub / github.com/python/cpython / getinfo

Method getinfo

Lib/zipfile/__init__.py:1642–1649  ·  view source on GitHub ↗

Return the instance of ZipInfo given 'name'.

(self, name)

Source from the content-addressed store, hash-verified

1640 return zinfo.filename
1641
1642 def getinfo(self, name):
1643 """Return the instance of ZipInfo given 'name'."""
1644 info = self.NameToInfo.get(name)
1645 if info is None:
1646 raise KeyError(
1647 'There is no item named %r in the archive' % name)
1648
1649 return info
1650
1651 def setpassword(self, pwd):
1652 """Set default password for encrypted files."""

Callers 15

openMethod · 0.95
_extract_memberMethod · 0.95
testZip64LargeFileMethod · 0.45
assertDataEntryMethod · 0.45
zip_testMethod · 0.45
test_reprMethod · 0.45

Calls 1

getMethod · 0.45

Tested by 15

testZip64LargeFileMethod · 0.36
assertDataEntryMethod · 0.36
zip_testMethod · 0.36
test_reprMethod · 0.36