Home
last modified time | relevance | path

Searched refs:file_obj (Results 1 – 21 of 21) sorted by relevance

/external/python/apitools/
Drun_pylint.py67 with open(filename, 'r') as file_obj:
68 config.readfp(file_obj)
89 with open(target_filename, 'w') as file_obj:
90 test_cfg.write(file_obj)
/external/autotest/server/hosts/
Dhost_info_unittest.py360 file_obj = cStringIO.StringIO()
361 host_info.json_serialize(info, file_obj)
362 file_obj.seek(0)
368 self.assertEqual(json.load(file_obj), expected_dict)
375 file_obj = cStringIO.StringIO()
376 host_info.json_serialize(info, file_obj)
377 file_obj.seek(0)
383 self.assertEqual(json.load(file_obj), expected_dict)
Dhost_info.py357 def json_serialize(info, file_obj, version=_CURRENT_SERIALIZATION_VERSION): argument
370 return json.dump(info_json, file_obj, sort_keys=True, indent=4,
374 def json_deserialize(file_obj): argument
382 deserialized_json = json.load(file_obj)
/external/autotest/site_utils/
Dsuite_preprocessor.py42 with open(options.output_file, 'w') as file_obj:
43 file_obj.write('%r' % test_deps)
Dcontrol_file_preprocessor.py89 with open(options.output_file, 'w') as file_obj:
90 json.dump(suite_control_files, file_obj)
/external/python/oauth2client/oauth2client/
Dservice_account.py220 with open(filename, 'r') as file_obj:
221 client_credentials = json.load(file_obj)
330 with open(filename, 'rb') as file_obj:
331 private_key_pkcs12 = file_obj.read()
Dclient.py1402 with open(filename) as file_obj:
1403 client_credentials = json.load(file_obj)
/external/python/oauth2client/tests/
Dtest_service_account.py42 with open(data_filename(filename), 'rb') as file_obj:
43 return file_obj.read()
103 with open(filename, 'w') as file_obj:
104 json.dump(payload, file_obj)
169 with open(filename, 'rb') as file_obj:
170 key_contents = file_obj.read()
Dtest_clientsecrets.py173 with open(filename, 'wb') as file_obj:
174 file_obj.write(b'[')
Dtest_jwt.py46 with open(data_filename(filename), 'rb') as file_obj:
47 return file_obj.read()
Dtest_crypt.py32 with open(data_filename(filename), 'rb') as file_obj:
33 return file_obj.read()
/external/python/cpython3/Lib/test/test_importlib/source/
Dtest_finder.py184 with tempfile.NamedTemporaryFile() as file_obj:
185 finder = self.get_finder(file_obj.name)
/external/autotest/client/common_lib/
Dutils.py893 for file_obj in read_ready:
894 bg_job, is_stdout = reverse_dict[file_obj]
897 for file_obj in write_ready:
900 bg_job = reverse_dict[file_obj]
901 file_obj.write(bg_job.string_stdin[:512])
905 file_obj.close()
906 write_list.remove(file_obj)
907 del reverse_dict[file_obj]
/external/chromium-trace/catapult/common/py_utils/py_utils/
Dcloud_storage_unittest.py333 file_obj = self.fs.GetObject(hash_path)
334 file_obj.SetMTime(fetchts + 100)
/external/python/cpython2/Lib/
Dsubprocess.py1155 def register_and_append(file_obj, eventmask): argument
1156 poller.register(file_obj.fileno(), eventmask)
1157 fd2file[file_obj.fileno()] = file_obj
/external/python/cpython3/Lib/test/
Dtest_urllib2.py931 file_obj = tempfile.NamedTemporaryFile(mode='w+b', delete=False)
932 file_path = file_obj.name
933 file_obj.close()
957 file_obj = io.BytesIO()
959 req = Request("http://example.com/", file_obj, {})
965 req = Request("http://example.com/", file_obj, headers)
970 file_obj.close()
/external/python/cpython2/Doc/whatsnew/
D2.0.rst220 *stream_reader(file_obj)* returns an object that supports the :meth:`read`,
225 stream. *stream_writer(file_obj)* returns an object that supports the
D2.3.rst1075 the lines in a file, but now you can simply write ``for line in file_obj``.
/external/python/cpython3/Doc/whatsnew/
D2.0.rst220 *stream_reader(file_obj)* returns an object that supports the :meth:`read`,
225 stream. *stream_writer(file_obj)* returns an object that supports the
D2.3.rst1075 the lines in a file, but now you can simply write ``for line in file_obj``.
/external/python/cpython3/Doc/howto/
Dclinic.rst609 file as file_obj: object
615 array) would be ``file``, but the C variable would be named ``file_obj``.