I'd like to filter the content print to sys.stdout
. Specifically, I'd like to replace crlf with lf. I don't want to call external program. Is there a way to do so within python?
from apiclient.http import MediaIoBaseDownload
downloader = MediaIoBaseDownload(sys.stdout, request)