/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)
|
/external/python/cpython2/Lib/ |
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...] |
/prebuilts/gdb/darwin-x86/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...] |
/prebuilts/gdb/linux-x86/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...] |
/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...] |
/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...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/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() 375 fileobj = os.fdopen(fd, "w+b") variable in class:TestDialectRegistry.test_dialect_apply.testC 386 fileobj = os.fdopen(fd, "w+b") variable in class:TestDialectRegistry.test_dialect_apply.testC 397 fileobj = os.fdopen(fd, "w+b") variable in class:TestDialectRegistry.test_dialect_apply.testC 408 fileobj = os.fdopen(fd, "w+b") variable in class:TestDialectRegistry.test_dialect_apply.testC 419 fileobj = os.fdopen(fd, "w+b") variable in class:TestDialectRegistry.test_dialect_apply.testC [all...] |
/prebuilts/gdb/darwin-x86/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...] |
/prebuilts/gdb/linux-x86/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...] |
/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...] |
/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...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
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'.
88 if fileobj is None:
89 fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
91 if hasattr(fileobj, 'name'): filename = fileobj.name [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...] |
/external/python/cpython2/Lib/test/ |
test_csv.py | 124 fileobj = os.fdopen(fd, "w+b") 126 writer = csv.writer(fileobj, **kwargs) 128 fileobj.seek(0) 129 self.assertEqual(fileobj.read(), 132 fileobj.close() 137 fileobj = os.fdopen(fd, "w+b") 139 writer = csv.writer(fileobj, **kwargs) 142 fileobj.seek(0) 143 self.assertEqual(fileobj.read(), '') 145 fileobj.close( 406 fileobj = os.fdopen(fd, "w+b") variable in class:TestDialectRegistry.test_dialect_apply.testC 417 fileobj = os.fdopen(fd, "w+b") variable in class:TestDialectRegistry.test_dialect_apply.testC 428 fileobj = os.fdopen(fd, "w+b") variable in class:TestDialectRegistry.test_dialect_apply.testC 439 fileobj = os.fdopen(fd, "w+b") variable in class:TestDialectRegistry.test_dialect_apply.testC 450 fileobj = os.fdopen(fd, "w+b") variable in class:TestDialectRegistry.test_dialect_apply.testC [all...] |
/external/python/cpython2/Lib/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)
|
/prebuilts/gdb/darwin-x86/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)
|
/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)
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/ |
moduleobject.c | 83 PyObject *fileobj;
local 90 (fileobj = PyDict_GetItemString(d, "__file__")) == NULL ||
91 !PyString_Check(fileobj))
96 return PyString_AsString(fileobj);
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/ |
moduleobject.c | 83 PyObject *fileobj;
local 90 (fileobj = PyDict_GetItemString(d, "__file__")) == NULL ||
91 !PyString_Check(fileobj))
96 return PyString_AsString(fileobj);
|
/external/python/cpython2/Objects/ |
moduleobject.c | 83 PyObject *fileobj; local 90 (fileobj = PyDict_GetItemString(d, "__file__")) == NULL || 91 !PyString_Check(fileobj)) 96 return PyString_AsString(fileobj);
|