Lines Matching refs:fileobj
18 def fromfile(cls, fileobj):
19 if fileobj.read(4).decode() != "TZif":
21 fileobj.seek(20)
22 header = fileobj.read(24)
26 transitions.fromfile(fileobj, tzh_timecnt)
31 type_indices.fromfile(fileobj, tzh_timecnt)
35 ttis.append(ttinfo._make(struct.unpack(">lbb", fileobj.read(6))))
37 abbrs = fileobj.read(tzh_charcnt)
79 with open(filepath, 'rb') as fileobj:
80 tzi = TZInfo.fromfile(fileobj)