Home
last modified time | relevance | path

Searched refs:file_object (Results 1 – 8 of 8) sorted by relevance

/external/toolchain-utils/crosperf/
Dexperiment_file.py177 def __init__(self, file_object): argument
178 self.file_object = file_object
191 self.current_line = self.file_object.readline()
/external/autotest/scheduler/
Ddrone_utility.py242 file_object = open(file_path, 'a')
243 file_object.write(contents)
244 file_object.close()
386 file_object = open(failed_file, 'w')
388 file_object.write('%s:%s\n%s\n%s' %
393 file_object.close()
652 with open(pidfile_path, 'r') as file_object:
653 return _PidfileContent(pidfile_path, file_object.read())
/external/python/oauth2client/scripts/
Drun_system_tests.py84 with open(USER_KEY_PATH, 'r') as file_object:
85 client_credentials = json.load(file_object)
/external/python/cpython3/Lib/
Daifc.py350 file_object = builtins.open(f, 'rb')
352 self.initfp(file_object)
354 file_object.close()
561 file_object = builtins.open(f, 'wb')
563 self.initfp(file_object)
565 file_object.close()
/external/python/cpython3/Lib/test/test_warnings/
D__init__.py928 file_object = StringIO()
932 file_object)
933 self.assertEqual(file_object.getvalue(), expect)
938 file_object = StringIO()
940 file_object, expected_file_line)
941 self.assertEqual(expect, file_object.getvalue())
954 file_object = StringIO()
959 file_object, file_line)
960 self.assertEqual(file_object.getvalue(), expected)
/external/autotest/client/common_lib/
Dlogging_manager_test.py160 def set_stdout(file_object): argument
161 self.stdout = file_object
Dlogging_manager.py313 def set_stream(file_object): argument
314 setattr(sys, stream_name, file_object)
/external/python/cpython2/Lib/test/
Dtest_warnings.py710 file_object = StringIO.StringIO()
714 file_object)
715 self.assertEqual(file_object.getvalue(), expect)
720 file_object = StringIO.StringIO()
722 file_object, expected_file_line)
723 self.assertEqual(expect, file_object.getvalue())