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

Method fromname

Lib/test/datetimetester.py:6668–6671  ·  view source on GitHub ↗
(cls, name)

Source from the content-addressed store, hash-verified

6666
6667 @classmethod
6668 def fromname(cls, name):
6669 path = os.path.join(cls.zoneroot, name)
6670 with open(path, 'rb') as f:
6671 return cls.fromfile(f)
6672
6673 EPOCHORDINAL = date(1970, 1, 1).toordinal()
6674

Callers 4

test_asn1objectMethod · 0.45
statsMethod · 0.45
setUpMethod · 0.45

Calls 3

fromfileMethod · 0.80
openFunction · 0.50
joinMethod · 0.45

Tested by

no test coverage detected