Home
last modified time | relevance | path

Searched refs:fobj (Results 1 – 23 of 23) sorted by relevance

/external/fonttools/Lib/fontTools/ttLib/tables/
DF__e_a_t.py46 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/
Dtest_tarfile.py56 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 …]
Dtest_pydoc.py403 with open(init_path, 'w') as fobj:
404 fobj.write('''\
422 with open(init_path, 'w') as fobj:
423 fobj.write("foo = 1")
Dtest_gzip.py55 with open(unicode_filename, 'rb') as fobj, \
56 gzip.GzipFile(fileobj=fobj, mode="rb") as f:
/external/python/cpython3/Lib/test/
Dtest_tarfile.py94 with self.tar.extractfile(tarinfo) as fobj:
95 data = fobj.read()
107 with self.tar.extractfile(tarinfo) as fobj:
108 fobj2 = io.TextIOWrapper(fobj)
131 with open(os.path.join(TEMPDIR, "ustar/regtype"), "rb") as fobj:
132 data = fobj.read()
135 fobj = self.tar.extractfile(tarinfo)
137 text = fobj.read()
138 fobj.seek(0)
139 self.assertEqual(0, fobj.tell(),
[all …]
Dtest_pydoc.py594 with open(init_path, 'w') as fobj:
595 fobj.write("foo = 1")
820 with open(init_path, 'w') as fobj:
821 fobj.write("foo = 1")
Dtest_subprocess.py1819 with open(fd, "w", errors="surrogateescape") as fobj:
1820 fobj.write("#!%s\n" % support.unix_shell)
1821 fobj.write("exec '%s' -c 'import sys; sys.exit(47)'\n" %
1864 with open(fd, "w", errors="surrogateescape") as fobj:
1865 fobj.write("#!%s\n" % support.unix_shell)
1866 fobj.write("exec '%s' -c 'import sys; sys.exit(47)'\n" %
Dtest_urllib.py407 with urlopen(tmp_fileurl) as fobj:
408 self.assertTrue(fobj)
Dtest_os.py135 with open(support.TESTFN, "w+b") as fobj:
136 fobj.write(b"spam")
137 fobj.flush()
138 fd = fobj.fileno()
171 with open(support.TESTFN, "rb") as fobj:
172 self.assertEqual(fobj.read().splitlines(),
/external/python/cpython3/Tools/scripts/
Dgenerate_opcode_h.py48 with open(outfile, 'w') as fobj:
49 fobj.write(header)
52 fobj.write("#define %-23s %3s\n" % (name, opmap[name]))
54 fobj.write("#define %-23s %3d\n" %
56 fobj.write(footer)
/external/python/cpython2/Objects/
Dfileobject.c53 #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/
Dtest_file_util.py67 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/cpython3/Objects/
Dfileobject.c236 Py_UniversalNewlineFgets(char *buf, int n, FILE *stream, PyObject *fobj) in Py_UniversalNewlineFgets() argument
243 if (fobj) { in Py_UniversalNewlineFgets()
/external/python/cpython2/Doc/tutorial/
Dappendix.rst94 with open(filename) as fobj:
95 startup_file = fobj.read()
/external/python/cpython3/Doc/tutorial/
Dappendix.rst94 with open(filename) as fobj:
95 startup_file = fobj.read()
/external/python/cpython2/Parser/
Dpgenmain.c158 Py_UniversalNewlineFgets(char *buf, int n, FILE *stream, PyObject *fobj) in Py_UniversalNewlineFgets() argument
/external/python/cpython3/Parser/
Dpgenmain.c172 Py_UniversalNewlineFgets(char *buf, int n, FILE *stream, PyObject *fobj) in Py_UniversalNewlineFgets() argument
/external/python/cpython3/Python/
Dpylifecycle.c1059 file_is_closed(PyObject *fobj) in file_is_closed() argument
1062 PyObject *tmp = PyObject_GetAttrString(fobj, "closed"); in file_is_closed()
/external/python/dateutil/dateutil/tz/
Dtz.py1210 with fileobj as fobj:
1211 self._parse_rfc(fobj.read())
/external/python/mock/mock/tests/
Dtestpatch.py408 fobj = open('doesnotexists.txt')
409 data = fobj.read()
410 fobj.close()
/external/python/cpython3/Lib/unittest/test/testmock/
Dtestpatch.py404 fobj = open('doesnotexists.txt')
405 data = fobj.read()
406 fobj.close()
/external/libjpeg-turbo/simd/nasm/
Djsimdext.inc63 %elifdef OBJ32 ; ----(nasm -fobj -DOBJ32 ...)----------
/external/clang/bindings/python/clang/
Dcindex.py2464 def visitor(fobj, lptr, depth, includes): argument
2467 includes.append(FileInclusion(loc.file, File(fobj), loc, depth))