Diego Manenti Martins added the comment:
It stoped to work. It was working when using with python 2.6 and crashed on
switching to python 2.7
I expect the same behavior of curl -X POST
http://server.com/post_image?tid=zoV6LJ -T test.jpg
New submission from Diego Manenti Martins :
this code sends data in a different way if using python 2.6 or python 2.7
>>> import urllib2
>>> url = 'http://server.com/post_image?tid=zoV6LJ'
>>> f = open('test.jpg')
>>> data = f.read()
Changes by Diego Manenti Martins <[EMAIL PROTECTED]>:
--
keywords: +patch
versions: +Python 2.6
Added file: http://bugs.python.org/file9922/decimal.patch
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.pytho