/third_party/python/Lib/zoneinfo/ |
H A D | _common.py | 27 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.py | 78 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 D | generate_opcode_h.py | 105 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 D | generate_sre_constants.py | 7 with open(file, 'r') as fobj: 8 if fobj.read() == content: 12 with open(file, 'w') as fobj: 13 fobj.write(content)
|
H A D | generate_re_casefix.py | 11 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 D | generate_token.py | 40 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 D | stream.py | 373 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 D | test_tarfile.py | 108 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 D | test_pydoc.py | 714 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 D | test_fileinput.py | 321 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 D | test_subprocess.py | 2265 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 D | test_urllib.py | 535 with urlopen(tmp_fileurl) as fobj: 536 self.assertTrue(fobj)
|
H A D | test_os.py | 222 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 D | test_file_util.py | 69 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 D | fileobject.c | 234 _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 D | fontfile.h | 11 int fobj; member
|
/third_party/cups-filters/filter/ |
H A D | texttopdf.c | 179 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 D | testpatch.py | 398 fobj = open('doesnotexists.txt') 399 data = fobj.read() 400 fobj.close()
|
/third_party/python/Lib/test/test_zoneinfo/ |
H A D | test_zoneinfo.py | 249 fobj = io.BytesIO(bad_zone) 251 self.klass.from_file(fobj) 1515 self.klass.from_file(fobj=f)
|
/third_party/python/Python/ |
H A D | pylifecycle.c | 1607 file_is_closed(PyObject *fobj) in file_is_closed() argument 1610 PyObject *tmp = PyObject_GetAttrString(fobj, "closed"); in file_is_closed()
|