MCPcopy Create free account
hub / github.com/python/cpython / from_file_nokey

Method from_file_nokey

Lib/test/test_zoneinfo/test_zoneinfo.py:202–204  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

200 key = next(iter(self.zones()))
201
202 def from_file_nokey(key):
203 with open(self.zoneinfo_data.path_from_key(key), "rb") as f:
204 return self.klass.from_file(f)
205
206 constructors = (
207 ("Primary constructor", self.klass, key),

Callers

nothing calls this directly

Calls 3

path_from_keyMethod · 0.80
openFunction · 0.50
from_fileMethod · 0.45

Tested by

no test coverage detected