Home
last modified time | relevance | path

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

/external/webkit/Tools/Scripts/webkitpy/common/system/
Durlfetcher.py41 file_object = urllib.urlopen(url)
42 content = file_object.read()
43 file_object.close()
51 file_object, filename = self._filesystem.open_binary_tempfile('-fetched')
53 file_object.write(contents)
54 file_object.close()
/external/webkit/Tools/Scripts/webkitpy/common/net/bugzilla/
Dbugzilla.py447 file_object, argument
467 self.browser.add_file(file_object, mimetype, filename, 'data')
478 def _filename_for_upload(self, file_object, bug_id, extension="txt", timestamp=timestamp): argument
479 if hasattr(file_object, "name"):
480 return file_object.name
497 file_object = self._file_object_for_upload(file_or_string)
498 filename = filename or self._filename_for_upload(file_object, bug_id)
499 self._fill_attachment_form(description, file_object, filename=filename)
524 file_object = self._file_object_for_upload(file_or_string)
525 filename = self._filename_for_upload(file_object, bug_id, extension="patch")
[all …]
Dbugzilla_unittest.py330 file_object = StringIO.StringIO()
333 self.assertEqual(bugzilla._file_object_for_upload(file_object), file_object)