Home
last modified time | relevance | path

Searched refs:fobj (Results 1 - 20 of 20) sorted by relevance

/third_party/python/Lib/zoneinfo/
H A D_common.py27 def load_data(fobj):
28 header = _TZifHeader.from_file(fobj)
49 fobj.seek(skip_bytes, 1)
53 header = _TZifHeader.from_file(fobj)
62 f">{timecnt}{time_type}", fobj.read(timecnt * time_size)
64 trans_idx = struct.unpack(f">{timecnt}B", fobj.read(timecnt))
72 *(struct.unpack(">lbb", fobj.read(6)) for i in range(typecnt))
84 abbr_chars = fobj.read(charcnt)
111 fobj.seek(skip_bytes, 1)
113 c = fobj
[all...]
H A D_zoneinfo.py78 def from_file(cls, fobj, /, key=None):
82 obj._load_file(fobj)
83 obj._file_repr = repr(fobj)
225 def _load_file(self, fobj):
228 fobj
/third_party/python/Tools/scripts/
H A Dgenerate_opcode_h.py105 with open(outfile, 'w') as fobj, open(internaloutfile, 'w') as iobj:
106 fobj.write(header)
111 fobj.write(DEFINE.format(name, opmap[name]))
113 fobj.write(DEFINE.format("HAVE_ARGUMENT", opcode["HAVE_ARGUMENT"]))
116 fobj.write(DEFINE.format(name, op))
142 fobj.write("\n")
143 fobj.write("#define HAS_CONST(op) (false\\")
145 fobj.write(f"\n || ((op) == {op}) \\")
146 fobj.write("\n )\n")
148 fobj
[all...]
H A Dgenerate_sre_constants.py7 with open(file, 'r') as fobj:
8 if fobj.read() == content:
12 with open(file, 'w') as fobj:
13 fobj.write(content)
H A Dgenerate_re_casefix.py11 with open(file, 'r', encoding='utf-8') as fobj:
12 if fobj.read() == content:
16 with open(file, 'w', encoding='utf-8') as fobj:
17 fobj.write(content)
H A Dgenerate_token.py40 with open(file, 'r') as fobj:
41 if fobj.read() == content:
45 with open(file, 'w') as fobj:
46 fobj.write(content)
/third_party/skia/third_party/externals/angle2/third_party/logdog/logdog/
H A Dstream.py373 fobj = self._connect_raw()
374 fobj.write(BUTLER_MAGIC)
375 varint.write_uvarint(fobj, len(params_bytes))
376 fobj.write(params_bytes)
377 return fobj
394 fobj = None
396 fobj = self.open_text(name, **kwargs)
397 yield fobj
399 if fobj is not None:
400 fobj
[all...]
/third_party/python/Lib/test/
H A Dtest_tarfile.py108 with self.tar.extractfile(tarinfo) as fobj:
109 data = fobj.read()
121 with self.tar.extractfile(tarinfo) as fobj:
122 fobj2 = io.TextIOWrapper(fobj)
146 with open(os.path.join(TEMPDIR, "ustar/regtype"), "rb") as fobj:
147 data = fobj.read()
150 with self.tar.extractfile(tarinfo) as fobj:
151 text = fobj.read()
152 fobj.seek(0)
153 self.assertEqual(0, fobj
[all...]
H A Dtest_pydoc.py714 with open(init_path, 'w') as fobj:
715 fobj.write("foo = 1")
943 with open(init_path, 'w') as fobj:
944 fobj.write("foo = 1")
H A Dtest_fileinput.py321 with FileInput(temp_file, mode='rb', inplace=True) as fobj:
322 line = fobj.readline()
332 encoding="ascii", errors="replace") as fobj:
333 line = fobj.readline()
H A Dtest_subprocess.py2265 with open(fd, "w", errors="surrogateescape") as fobj:
2266 fobj.write("#!%s\n" % support.unix_shell)
2267 fobj.write("exec '%s' -c 'import sys; sys.exit(47)'\n" %
2310 with open(fd, "w", errors="surrogateescape") as fobj:
2311 fobj.write("#!%s\n" % support.unix_shell)
2312 fobj.write("exec '%s' -c 'import sys; sys.exit(47)'\n" %
H A Dtest_urllib.py535 with urlopen(tmp_fileurl) as fobj:
536 self.assertTrue(fobj)
H A Dtest_os.py222 with open(os_helper.TESTFN, "w+b") as fobj:
223 fobj.write(b"spam")
224 fobj.flush()
225 fd = fobj.fileno()
258 with open(os_helper.TESTFN, "rb") as fobj:
259 self.assertEqual(fobj.read().splitlines(),
/third_party/python/Lib/distutils/tests/
H A Dtest_file_util.py69 with open(self.source, 'w') as fobj:
70 fobj.write('spam eggs')
78 with open(self.source, 'w') as fobj:
79 fobj.write('spam eggs')
/third_party/python/Objects/
H A Dfileobject.c234 _Py_UniversalNewlineFgetsWithSize(char *buf, int n, FILE *stream, PyObject *fobj, size_t* size) in _Py_UniversalNewlineFgetsWithSize() argument
239 if (fobj) { in _Py_UniversalNewlineFgetsWithSize()
271 ** The fobj parameter exists solely for legacy reasons and must be NULL.
277 Py_UniversalNewlineFgets(char *buf, int n, FILE *stream, PyObject *fobj) { in Py_UniversalNewlineFgets() argument
279 return _Py_UniversalNewlineFgetsWithSize(buf, n, stream, fobj, &size); in Py_UniversalNewlineFgets()
/third_party/cups-filters/fontembed/
H A Dfontfile.h11 int fobj; member
/third_party/cups-filters/filter/
H A Dtexttopdf.c179 if (emb->font->fobj) { // already embedded in WriteEpilogue()
183 emb->font->fobj=pdfOut_write_font(pdf,emb); in WriteEpilogue()
184 assert(emb->font->fobj); in WriteEpilogue()
202 if (emb->font->fobj) { // used in WriteEpilogue()
203 pdfOut_printf(pdf," /%s%02x %d 0 R\n",names[i],j,emb->font->fobj); in WriteEpilogue()
/third_party/python/Lib/unittest/test/testmock/
H A Dtestpatch.py398 fobj = open('doesnotexists.txt')
399 data = fobj.read()
400 fobj.close()
/third_party/python/Lib/test/test_zoneinfo/
H A Dtest_zoneinfo.py249 fobj = io.BytesIO(bad_zone)
251 self.klass.from_file(fobj)
1515 self.klass.from_file(fobj=f)
/third_party/python/Python/
H A Dpylifecycle.c1607 file_is_closed(PyObject *fobj) in file_is_closed() argument
1610 PyObject *tmp = PyObject_GetAttrString(fobj, "closed"); in file_is_closed()

Completed in 34 milliseconds