Home
last modified time | relevance | path

Searched refs:fileobj (Results 1 – 11 of 11) sorted by relevance

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dgzip.py46 compresslevel=9, fileobj=None, mtime=None): argument
88 if fileobj is None:
89 fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
91 if hasattr(fileobj, 'name'): filename = fileobj.name
94 if hasattr(fileobj, 'mode'): mode = fileobj.mode
122 self.fileobj = fileobj
138 s = repr(self.fileobj)
156 self.fileobj.write('\037\213') # magic header
157 self.fileobj.write('\010') # compression method
164 self.fileobj.write(chr(flags))
[all …]
Dtarfile.py398 def __init__(self, name, mode, comptype, fileobj, bufsize): argument
402 if fileobj is None:
403 fileobj = _LowLevelFile(name, mode)
409 fileobj = _StreamProxy(fileobj)
410 comptype = fileobj.getcomptype()
415 self.fileobj = fileobj
477 self.fileobj.write(self.buf[:self.bufsize])
491 self.fileobj.write(self.buf)
500 self.fileobj.write(struct.pack("<L", self.crc & 0xffffffffL))
501 self.fileobj.write(struct.pack("<L", self.pos & 0xffffFFFFL))
[all …]
Dplistlib.py400 def parse(self, fileobj): argument
406 parser.ParseFile(fileobj)
Dxmlrpclib.py1155 gzf = gzip.GzipFile(mode="wb", fileobj=f, compresslevel=1)
1179 gzf = gzip.GzipFile(mode="rb", fileobj=f)
1205 gzip.GzipFile.__init__(self, mode="rb", fileobj=self.stringio)
Dzipfile.py476 def __init__(self, fileobj, mode, zipinfo, decrypter=None): argument
477 self._fileobj = fileobj
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_csv.py122 fileobj = os.fdopen(fd, "w+b")
124 writer = csv.writer(fileobj, **kwargs)
126 fileobj.seek(0)
127 self.assertEqual(fileobj.read(),
130 fileobj.close()
199 fileobj = os.fdopen(fd, "w+b")
201 writer = csv.writer(fileobj)
204 fileobj.seek(0)
205 self.assertEqual(fileobj.read(), "a,b\r\nc,d\r\n")
207 fileobj.close()
[all …]
Dtest_tarfile.py208 tar = tarfile.open(fileobj=fobj, mode=self.mode)
215 tar = tarfile.open(fileobj=fobj, mode=self.mode)
222 tar = tarfile.open(fileobj=fobj, mode=self.mode)
247 tar = tar.open(self.tarname, mode="r:", fileobj=fobj)
263 self.assertRaises(tarfile.ReadError, tarfile.open, fileobj=fobj, mode=self.mode)
344 self.assertTrue(tar.fileobj.closed)
402 tarfile.open(name, mode, fileobj=open(name, "rb"))
544 self.tar.fileobj.seek(offset)
545 fobj = StringIO.StringIO(self.tar.fileobj.read(3 * 512))
546 self.assertRaises(tarfile.ReadError, tarfile.open, name="foo.tar", fileobj=fobj)
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/
Dmoduleobject.c83 PyObject *fileobj; in PyModule_GetFilename() local
90 (fileobj = PyDict_GetItemString(d, "__file__")) == NULL || in PyModule_GetFilename()
91 !PyString_Check(fileobj)) in PyModule_GetFilename()
96 return PyString_AsString(fileobj); in PyModule_GetFilename()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/
Dmoduleobject.c83 PyObject *fileobj; in PyModule_GetFilename() local
90 (fileobj = PyDict_GetItemString(d, "__file__")) == NULL || in PyModule_GetFilename()
91 !PyString_Check(fileobj)) in PyModule_GetFilename()
96 return PyString_AsString(fileobj); in PyModule_GetFilename()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
Dzipfile.py515 def __init__(self, fileobj, mode, zipinfo, decrypter=None, argument
517 self._fileobj = fileobj
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
D_elementtree.c2657 PyObject* fileobj; local
2658 if (!PyArg_ParseTuple(args, "O:_parse", &fileobj))
2661 reader = PyObject_GetAttrString(fileobj, "read");