Searched refs:file_obj (Results 1 – 21 of 21) sorted by relevance
/external/python/apitools/ |
D | run_pylint.py | 67 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/ |
D | host_info_unittest.py | 360 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)
|
D | host_info.py | 357 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/ |
D | suite_preprocessor.py | 42 with open(options.output_file, 'w') as file_obj: 43 file_obj.write('%r' % test_deps)
|
D | control_file_preprocessor.py | 89 with open(options.output_file, 'w') as file_obj: 90 json.dump(suite_control_files, file_obj)
|
/external/python/oauth2client/oauth2client/ |
D | service_account.py | 220 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()
|
D | client.py | 1402 with open(filename) as file_obj: 1403 client_credentials = json.load(file_obj)
|
/external/python/oauth2client/tests/ |
D | test_service_account.py | 42 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()
|
D | test_clientsecrets.py | 173 with open(filename, 'wb') as file_obj: 174 file_obj.write(b'[')
|
D | test_jwt.py | 46 with open(data_filename(filename), 'rb') as file_obj: 47 return file_obj.read()
|
D | test_crypt.py | 32 with open(data_filename(filename), 'rb') as file_obj: 33 return file_obj.read()
|
/external/python/cpython3/Lib/test/test_importlib/source/ |
D | test_finder.py | 184 with tempfile.NamedTemporaryFile() as file_obj: 185 finder = self.get_finder(file_obj.name)
|
/external/autotest/client/common_lib/ |
D | utils.py | 893 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/ |
D | cloud_storage_unittest.py | 333 file_obj = self.fs.GetObject(hash_path) 334 file_obj.SetMTime(fetchts + 100)
|
/external/python/cpython2/Lib/ |
D | subprocess.py | 1155 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/ |
D | test_urllib2.py | 931 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/ |
D | 2.0.rst | 220 *stream_reader(file_obj)* returns an object that supports the :meth:`read`, 225 stream. *stream_writer(file_obj)* returns an object that supports the
|
D | 2.3.rst | 1075 the lines in a file, but now you can simply write ``for line in file_obj``.
|
/external/python/cpython3/Doc/whatsnew/ |
D | 2.0.rst | 220 *stream_reader(file_obj)* returns an object that supports the :meth:`read`, 225 stream. *stream_writer(file_obj)* returns an object that supports the
|
D | 2.3.rst | 1075 the lines in a file, but now you can simply write ``for line in file_obj``.
|
/external/python/cpython3/Doc/howto/ |
D | clinic.rst | 609 file as file_obj: object 615 array) would be ``file``, but the C variable would be named ``file_obj``.
|