/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
gzip.py | 46 compresslevel=9, fileobj=None, mtime=None): 49 At least one of fileobj and filename must be given a 52 The new class instance is based on fileobj, which can be a regular 57 When fileobj is not None, the filename argument is only used to be 60 fileobj, if discernible; otherwise, it defaults to the empty string, 65 is the mode of fileobj if discernible; otherwise, the default is 'rb'. 93 if fileobj is None: 94 fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb') 96 # Issue #13781: os.fdopen() creates a fileobj with a bogus name 98 if hasattr(fileobj, 'name') and fileobj.name != '<fdopen>' [all...] |
tarfile.py | 260 """Copy length bytes from fileobj src to fileobj dst. 398 def __init__(self, name, mode, comptype, fileobj, bufsize): 402 if fileobj is None: 403 fileobj = _LowLevelFile(name, mode) 409 fileobj = _StreamProxy(fileobj) 410 comptype = fileobj.getcomptype() 415 self.fileobj = fileobj [all...] |
plistlib.py | 400 def parse(self, fileobj): 406 parser.ParseFile(fileobj)
|
xmlrpclib.py | [all...] |
zipfile.py | 515 def __init__(self, fileobj, mode, zipinfo, decrypter=None, 517 self._fileobj = fileobj [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
gzip.py | 46 compresslevel=9, fileobj=None, mtime=None): 49 At least one of fileobj and filename must be given a 52 The new class instance is based on fileobj, which can be a regular 57 When fileobj is not None, the filename argument is only used to be 60 fileobj, if discernible; otherwise, it defaults to the empty string, 65 is the mode of fileobj if discernible; otherwise, the default is 'rb'. 93 if fileobj is None: 94 fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb') 96 # Issue #13781: os.fdopen() creates a fileobj with a bogus name 98 if hasattr(fileobj, 'name') and fileobj.name != '<fdopen>' [all...] |
tarfile.py | 260 """Copy length bytes from fileobj src to fileobj dst. 398 def __init__(self, name, mode, comptype, fileobj, bufsize): 402 if fileobj is None: 403 fileobj = _LowLevelFile(name, mode) 409 fileobj = _StreamProxy(fileobj) 410 comptype = fileobj.getcomptype() 415 self.fileobj = fileobj [all...] |
plistlib.py | 400 def parse(self, fileobj): 406 parser.ParseFile(fileobj)
|
xmlrpclib.py | [all...] |
zipfile.py | 515 def __init__(self, fileobj, mode, zipinfo, decrypter=None, 517 self._fileobj = fileobj [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_csv.py | 122 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( 396 fileobj = os.fdopen(fd, "w+b") variable in class:TestDialectRegistry.test_dialect_apply.testC 407 fileobj = os.fdopen(fd, "w+b") variable in class:TestDialectRegistry.test_dialect_apply.testC 418 fileobj = os.fdopen(fd, "w+b") variable in class:TestDialectRegistry.test_dialect_apply.testC 429 fileobj = os.fdopen(fd, "w+b") variable in class:TestDialectRegistry.test_dialect_apply.testC 440 fileobj = os.fdopen(fd, "w+b") variable in class:TestDialectRegistry.test_dialect_apply.testC [all...] |
test_tarfile.py | 69 "fileobj.readlines() failed") 71 "fileobj.readlines() failed") 74 "fileobj.readlines() failed") 84 "fileobj.__iter__() failed") 211 tar = tarfile.open(fileobj=fobj, mode=self.mode) 218 tar = tarfile.open(fileobj=fobj, mode=self.mode) 225 tar = tarfile.open(fileobj=fobj, mode=self.mode) 250 tar = tar.open(self.tarname, mode="r:", fileobj=fobj) 253 # Read to the end of fileobj and test if seeking back to the 266 self.assertRaises(tarfile.ReadError, tarfile.open, fileobj=fobj, mode=self.mode [all...] |
test_gzip.py | 285 # Issue #13781: Creating a GzipFile using a fileobj from os.fdopen() 289 with gzip.GzipFile(fileobj=f, mode="w") as g: 297 with gzip.GzipFile(fileobj=io.BytesIO(gzdata)) as f:
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_csv.py | 122 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( 396 fileobj = os.fdopen(fd, "w+b") variable in class:TestDialectRegistry.test_dialect_apply.testC 407 fileobj = os.fdopen(fd, "w+b") variable in class:TestDialectRegistry.test_dialect_apply.testC 418 fileobj = os.fdopen(fd, "w+b") variable in class:TestDialectRegistry.test_dialect_apply.testC 429 fileobj = os.fdopen(fd, "w+b") variable in class:TestDialectRegistry.test_dialect_apply.testC 440 fileobj = os.fdopen(fd, "w+b") variable in class:TestDialectRegistry.test_dialect_apply.testC [all...] |
test_tarfile.py | 69 "fileobj.readlines() failed") 71 "fileobj.readlines() failed") 74 "fileobj.readlines() failed") 84 "fileobj.__iter__() failed") 211 tar = tarfile.open(fileobj=fobj, mode=self.mode) 218 tar = tarfile.open(fileobj=fobj, mode=self.mode) 225 tar = tarfile.open(fileobj=fobj, mode=self.mode) 250 tar = tar.open(self.tarname, mode="r:", fileobj=fobj) 253 # Read to the end of fileobj and test if seeking back to the 266 self.assertRaises(tarfile.ReadError, tarfile.open, fileobj=fobj, mode=self.mode [all...] |
test_gzip.py | 285 # Issue #13781: Creating a GzipFile using a fileobj from os.fdopen() 289 with gzip.GzipFile(fileobj=f, mode="w") as g: 297 with gzip.GzipFile(fileobj=io.BytesIO(gzdata)) as f:
|
/external/libvpx/libvpx/tools/ |
wrap-commit-msg.py | 42 def main(fileobj): 46 line = fileobj.readline() 59 if fileobj == sys.stdin: 60 fileobj = sys.stdout 62 fileobj.seek(0) 63 fileobj.truncate(0) 64 fileobj.write(output)
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/plat-mac/ |
applesingle.py | 51 def __init__(self, fileobj, verbose=False): 52 header = fileobj.read(AS_HEADER_LENGTH) 67 headers = [fileobj.read(AS_ENTRY_LENGTH) for i in xrange(nentry)] 76 fileobj.seek(offset) 77 data = fileobj.read(length)
|
/external/chromium_org/chrome/common/extensions/docs/server2/ |
rietveld_patcher.py | 46 tar = tarfile.open(fileobj=StringIO(tarball_result.content))
|
/external/chromium_org/tools/telemetry/telemetry/page/ |
cloud_storage.py | 57 with tarfile.open(fileobj=cStringIO.StringIO(response.read())) as tar_file:
|
/external/chromium_org/tools/telemetry/telemetry/core/ |
memory_cache_http_server.py | 165 gzf = gzip.GzipFile(fileobj=sio, compresslevel=9, mode='wb')
|
/external/chromium_org/third_party/jinja2/ |
ext.py | 553 def babel_extract(fileobj, keywords, comment_tags, options): 572 :param fileobj: the file-like object the messages should be extracted from 616 source = fileobj.read().decode(options.get('encoding', 'utf-8'))
|
/external/chromium/chrome/common/extensions/docs/examples/apps/hello-python/httplib2/ |
__init__.py | 349 content = gzip.GzipFile(fileobj=StringIO.StringIO(new_content)).read() [all...] |
/external/chromium_org/chrome/common/extensions/docs/examples/apps/hello-python/httplib2/ |
__init__.py | 349 content = gzip.GzipFile(fileobj=StringIO.StringIO(new_content)).read() [all...] |