Searched refs:file_or_string (Results 1 – 2 of 2) sorted by relevance
469 def _file_object_for_upload(self, file_or_string): argument470 if hasattr(file_or_string, 'read'):471 return file_or_string473 if isinstance(file_or_string, unicode):474 file_or_string = file_or_string.encode('utf-8')475 return StringIO.StringIO(file_or_string)485 file_or_string, argument497 file_object = self._file_object_for_upload(file_or_string)509 file_or_string, argument524 file_object = self._file_object_for_upload(file_or_string)
347 file_or_string, argument