Home
last modified time | relevance | path

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

12

/external/libvpx/libvpx/tools/
Dwrap-commit-msg.py42 def main(fileobj): argument
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/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/glacier/
Dutils.py110 def compute_hashes_from_fileobj(fileobj, chunk_size=1024 * 1024): argument
128 if six.PY3 and hasattr(fileobj, 'mode') and 'b' not in fileobj.mode:
133 chunk = fileobj.read(chunk_size)
139 chunk = chunk.encode(getattr(fileobj, 'encoding', '') or 'utf-8')
142 chunk = fileobj.read(chunk_size)
Dvault.py104 with open(filename, 'rb') as fileobj:
105 linear_hash, tree_hash = compute_hashes_from_fileobj(fileobj)
106 fileobj.seek(0)
107 response = self.layer1.upload_archive(self.name, fileobj,
Djob.py147 def _download_to_fileob(self, fileobj, num_chunks, chunk_size, verify_hashes, argument
160 fileobj.write(data)
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/unit/glacier/
Dtest_job.py63 fileobj = StringIO()
67 self.job.download_to_fileobj(fileobj)
68 fileobj.seek(0)
69 self.assertEqual(http_response.read.return_value, fileobj.read())
Dtest_concurrent.py122 self.fileobj = tempfile.NamedTemporaryFile()
123 self.filename = self.fileobj.name
129 fileobj = thread._fileobj
130 self.assertFalse(fileobj.closed)
135 self.assertTrue(fileobj.closed)
/external/chromium-trace/catapult/third_party/gsutil/third_party/apitools/
Dsetup.py60 with open('README.rst') as fileobj:
61 README = fileobj.read()
/external/autotest/client/bin/
Dtest_config.py107 fileobj = file(self.cfg, 'w')
109 self.parser.write(fileobj)
111 fileobj.close()
/external/v8/build/android/gyp/
Daidl.py49 with open(path) as fileobj:
50 data = fileobj.read()
Djavac.py117 with open(pdb_path) as fileobj:
118 pdb_data = fileobj.read()
119 with open(pdb_path, 'w') as fileobj:
120 fileobj.write(re.sub(r'/tmp/[^/]*', temp_dir, pdb_data))
/external/chromium-trace/catapult/third_party/WebOb/docs/
Dfile-example.txt83 ... self.fileobj = open(self.filename, 'rb')
87 ... chunk = self.fileobj.read(self.chunk_size)
156 ``fileobj.seek(pos)`` to move around the file much more efficiently.
176 ... self.fileobj = open(self.filename, 'rb')
178 ... self.fileobj.seek(start)
188 ... chunk = self.fileobj.read(self.chunk_size)
/external/jsoncpp/scons-tools/
Dtargz.py44 fileobj = gzip.GzipFile( target_path, 'wb', compression )
45 tar = tarfile.TarFile(os.path.splitext(target_path)[0], 'w', fileobj)
/external/chromium-trace/catapult/tracing/tracing_build/
Dhtml2trace.py77 return gzip.GzipFile(fileobj=original_file)
87 with gzip.GzipFile(fileobj=zipped_file, mode='wb') as gzip_wrapper:
Dtrace2html.py68 with gzip.GzipFile(fileobj=compressed_trace, mode='w') as f:
/external/autotest/client/cros/
Dkernel_config.py147 fileobj = self._open_config()
150 for item in fileobj.readlines():
/external/chromium-trace/catapult/third_party/closure_linter/closure_linter/
Drunner.py68 def _Tokenize(fileobj): argument
78 start_token = tokenizer.TokenizeFile(fileobj)
/external/v8/build/android/gyp/util/
Dmd5_check.py245 def FromFile(cls, fileobj): argument
248 obj = json.load(fileobj)
255 def ToFile(self, fileobj): argument
263 json.dump(obj, fileobj, indent=2)
/external/chromium-trace/catapult/third_party/Paste/tests/
Dtest_gzipper.py18 actual = gzip.GzipFile(fileobj=six.BytesIO(res.body)).read()
/external/chromium-trace/catapult/third_party/Paste/paste/
Dgzipper.py76 fileobj=self.buffer)
/external/autotest/client/site_tests/platform_DebugDaemonGetPerfData/
Dplatform_DebugDaemonGetPerfData.py54 gzip_file = gzip.GzipFile(fileobj=string_file, mode='wb')
/external/chromium-trace/catapult/systrace/systrace/
Doutput_generator.py154 with gzip.GzipFile(fileobj=compressed_trace, mode='w') as f:
/external/autotest/client/common_lib/
Dbase_job.py655 fileobj = open(log_file, 'a')
657 print >> fileobj, log_text
659 fileobj.close()
/external/chromium-trace/catapult/telemetry/telemetry/core/
Dmemory_cache_http_server.py191 gzf = gzip.GzipFile(fileobj=sio, compresslevel=9, mode='wb')
/external/chromium-trace/catapult/third_party/WebOb/webob/
Drequest.py977 fileobj = self.make_tempfile()
989 fileobj.write(data)
991 fileobj.seek(0)
992 self.body_file_raw = fileobj
/external/chromium-trace/catapult/telemetry/third_party/modulegraph/modulegraph/
Dmodulegraph.py1638 def graphreport(self, fileobj=None, flatpackages=()): argument
1639 if fileobj is None:
1640 fileobj = sys.stdout
1641 fileobj.writelines(self.itergraphreport(flatpackages=flatpackages))

12