Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ open_resource
Method
open_resource
Lib/importlib/resources/readers.py:46–50 ·
view source on GitHub ↗
(self, resource)
Source
from the content-addressed store, hash-verified
44
self.archive = loader.archive
45
46
def
open_resource(self, resource):
47
try
:
48
return
super().open_resource(resource)
49
except
KeyError
as
exc:
50
raise
FileNotFoundError(exc.args[0])
51
52
def
is_resource(self, path):
53
""
"
Callers
2
open
Method · 0.45
open
Method · 0.45
Calls
1
super
Class · 0.85
Tested by
no test coverage detected