Home
last modified time | relevance | path

Searched refs:file_obj (Results 1 – 8 of 8) sorted by relevance

/third_party/python/Modules/
D_zoneinfo.c108 load_data(PyZoneInfo_ZoneInfo *self, PyObject *file_obj);
180 PyObject *file_obj = NULL; in zoneinfo_new_instance() local
188 file_obj = PyObject_CallMethod(_common_mod, "load_tzdata", "O", key); in zoneinfo_new_instance()
189 if (file_obj == NULL) { in zoneinfo_new_instance()
200 if (file_obj == NULL) { in zoneinfo_new_instance()
201 file_obj = PyObject_CallFunction(io_open, "Os", file_path, "rb"); in zoneinfo_new_instance()
202 if (file_obj == NULL) { in zoneinfo_new_instance()
207 if (load_data((PyZoneInfo_ZoneInfo *)self, file_obj)) { in zoneinfo_new_instance()
211 PyObject *rv = PyObject_CallMethod(file_obj, "close", NULL); in zoneinfo_new_instance()
212 Py_DECREF(file_obj); in zoneinfo_new_instance()
[all …]
/third_party/musl/tools/api_cmp_tool/
Dcompare.py302 with open(out_difference_path, 'w') as file_obj:
303 json.dump(result, file_obj, indent=4, separators=(',', ':'))
304 file_obj.close()
/third_party/python/Lib/test/test_importlib/source/
Dtest_finder.py184 with tempfile.NamedTemporaryFile() as file_obj:
185 finder = self.get_finder(file_obj.name)
/third_party/python/Lib/zoneinfo/
D_zoneinfo.py68 file_obj = open(obj._file_path, "rb")
70 file_obj = _common.load_tzdata(key)
72 with file_obj as f:
/third_party/python/Lib/test/
Dtest_urllib2.py930 file_obj = tempfile.NamedTemporaryFile(mode='w+b', delete=False)
931 file_path = file_obj.name
932 file_obj.close()
956 file_obj = io.BytesIO()
958 req = Request("http://example.com/", file_obj, {})
964 req = Request("http://example.com/", file_obj, headers)
969 file_obj.close()
/third_party/python/Doc/whatsnew/
D2.0.rst220 *stream_reader(file_obj)* returns an object that supports the :meth:`read`,
225 stream. *stream_writer(file_obj)* returns an object that supports the
D2.3.rst1075 the lines in a file, but now you can simply write ``for line in file_obj``.
/third_party/python/Doc/howto/
Dclinic.rst609 file as file_obj: object
615 array) would be ``file``, but the C variable would be named ``file_obj``.