This even happens if I supply an explicit content type:
>>> b.addAttachment(comment='', data=open('/home/martin/thread.txt').read(), description='test353805', filename='test353805', is_patch=False, content_type='application/octet-stream')
with application/octet-stream it shouldn't make any assumptions about the content at least.
Also, in the Launchpad web UI I could attach thread.txt just fine, and it's even treated as text/plain (which is good for stack traces).
Is there a quick workaround for this?
This even happens if I supply an explicit content type:
>>> b.addAttachment (comment= '', data=open( '/home/ martin/ thread. txt').read( ), description= 'test353805' , filename= 'test353805' , is_patch=False, content_ type='applicati on/octet- stream' )
with application/ octet-stream it shouldn't make any assumptions about the content at least.
Also, in the Launchpad web UI I could attach thread.txt just fine, and it's even treated as text/plain (which is good for stack traces).
Is there a quick workaround for this?