/external/fonttools/Lib/fontTools/ttLib/tables/ |
D | F__e_a_t.py | 46 fobj = Feature() 47 fobj.flags = flags 48 fobj.label = lid 49 self.features[grUtils.num2tag(fid)] = fobj 50 fobj.settings = {} 51 fobj.default = None 52 fobj.index = i 56 fobj.settings[vid] = vlid 57 if fobj.default is None: 58 fobj.default = vid [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_tarfile.py | 56 fobj = self.tar.extractfile(tarinfo) 57 data = fobj.read() 90 with open(os.path.join(TEMPDIR, "ustar/regtype"), "rb") as fobj: 91 data = fobj.read() 94 fobj = self.tar.extractfile(tarinfo) 96 text = fobj.read() 97 fobj.seek(0) 98 self.assertTrue(0 == fobj.tell(), 100 fobj.seek(2048, 0) 101 self.assertTrue(2048 == fobj.tell(), [all …]
|
D | test_pydoc.py | 403 with open(init_path, 'w') as fobj: 404 fobj.write('''\ 422 with open(init_path, 'w') as fobj: 423 fobj.write("foo = 1")
|
D | test_gzip.py | 55 with open(unicode_filename, 'rb') as fobj, \ 56 gzip.GzipFile(fileobj=fobj, mode="rb") as f:
|
/external/python/cpython3/Lib/test/ |
D | test_tarfile.py | 98 with self.tar.extractfile(tarinfo) as fobj: 99 data = fobj.read() 111 with self.tar.extractfile(tarinfo) as fobj: 112 fobj2 = io.TextIOWrapper(fobj) 135 with open(os.path.join(TEMPDIR, "ustar/regtype"), "rb") as fobj: 136 data = fobj.read() 139 with self.tar.extractfile(tarinfo) as fobj: 140 text = fobj.read() 141 fobj.seek(0) 142 self.assertEqual(0, fobj.tell(), [all …]
|
D | test_pydoc.py | 732 with open(init_path, 'w') as fobj: 733 fobj.write("foo = 1") 949 with open(init_path, 'w') as fobj: 950 fobj.write("foo = 1")
|
D | test_fileinput.py | 326 with FileInput(temp_file, mode='rb', inplace=True) as fobj: 327 line = fobj.readline()
|
D | test_subprocess.py | 1905 with open(fd, "w", errors="surrogateescape") as fobj: 1906 fobj.write("#!%s\n" % support.unix_shell) 1907 fobj.write("exec '%s' -c 'import sys; sys.exit(47)'\n" % 1950 with open(fd, "w", errors="surrogateescape") as fobj: 1951 fobj.write("#!%s\n" % support.unix_shell) 1952 fobj.write("exec '%s' -c 'import sys; sys.exit(47)'\n" %
|
D | test_os.py | 192 with open(support.TESTFN, "w+b") as fobj: 193 fobj.write(b"spam") 194 fobj.flush() 195 fd = fobj.fileno() 228 with open(support.TESTFN, "rb") as fobj: 229 self.assertEqual(fobj.read().splitlines(),
|
D | test_urllib.py | 469 with urlopen(tmp_fileurl) as fobj: 470 self.assertTrue(fobj)
|
/external/python/cpython3/Tools/scripts/ |
D | generate_opcode_h.py | 49 with open(outfile, 'w') as fobj: 50 fobj.write(header) 53 fobj.write("#define %-23s %3s\n" % (name, opmap[name])) 55 fobj.write("#define %-23s %3d\n" % 57 fobj.write(footer)
|
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)
|
/external/python/cpython2/Objects/ |
D | fileobject.c | 53 #define FILE_BEGIN_ALLOW_THREADS(fobj) \ argument 55 fobj->unlocked_count++; \ 58 #define FILE_END_ALLOW_THREADS(fobj) \ argument 60 fobj->unlocked_count--; \ 61 assert(fobj->unlocked_count >= 0); \ 64 #define FILE_ABORT_ALLOW_THREADS(fobj) \ argument 66 fobj->unlocked_count--; \ 67 assert(fobj->unlocked_count >= 0); 82 void PyFile_IncUseCount(PyFileObject *fobj) in PyFile_IncUseCount() argument 84 fobj->unlocked_count++; in PyFile_IncUseCount() [all …]
|
/external/python/cpython3/Lib/distutils/tests/ |
D | test_file_util.py | 67 with open(self.source, 'w') as fobj: 68 fobj.write('spam eggs') 76 with open(self.source, 'w') as fobj: 77 fobj.write('spam eggs')
|
/external/python/pybind11/include/pybind11/ |
D | eval.h | 90 auto fobj = reinterpret_steal<object>(PyFile_FromString( variable 94 if (fobj) 95 f = PyFile_AsFile(fobj.ptr());
|
/external/python/cpython3/Objects/ |
D | fileobject.c | 240 Py_UniversalNewlineFgets(char *buf, int n, FILE *stream, PyObject *fobj) in Py_UniversalNewlineFgets() argument 247 if (fobj) { in Py_UniversalNewlineFgets()
|
/external/python/cpython2/Doc/tutorial/ |
D | appendix.rst | 94 with open(filename) as fobj: 95 startup_file = fobj.read()
|
/external/python/cpython3/Doc/tutorial/ |
D | appendix.rst | 94 with open(filename) as fobj: 95 startup_file = fobj.read()
|
/external/python/cpython2/Parser/ |
D | pgenmain.c | 158 Py_UniversalNewlineFgets(char *buf, int n, FILE *stream, PyObject *fobj) in Py_UniversalNewlineFgets() argument
|
/external/python/dateutil/dateutil/tz/ |
D | tz.py | 1272 with fileobj as fobj: 1273 self._parse_rfc(fobj.read())
|
/external/python/cpython3/Lib/unittest/test/testmock/ |
D | testpatch.py | 397 fobj = open('doesnotexists.txt') 398 data = fobj.read() 399 fobj.close()
|
/external/python/cpython3/Python/ |
D | pylifecycle.c | 1093 file_is_closed(PyObject *fobj) in file_is_closed() argument 1096 PyObject *tmp = PyObject_GetAttrString(fobj, "closed"); in file_is_closed()
|
/external/python/mock/mock/tests/ |
D | testpatch.py | 397 fobj = open('doesnotexists.txt') 398 data = fobj.read() 399 fobj.close()
|
/external/libjpeg-turbo/simd/nasm/ |
D | jsimdext.inc | 63 %elifdef OBJ32 ; ----(nasm -fobj -DOBJ32 ...)----------
|
/external/clang/bindings/python/clang/ |
D | cindex.py | 2464 def visitor(fobj, lptr, depth, includes): argument 2467 includes.append(FileInclusion(loc.file, File(fobj), loc, depth))
|