httplib.HTTPResponse.read() unexpected keyword argument 'amt'
<p>I have a custom HTTP client I use in production done for python3.x.
Now I need the same function done for python2.7. 
I only have problems with one statement:</p>

<pre><code>data = response.read(amt = 10 *1024 *1024)
</code></pre>

<p>where the response is returned by:</p>

<pre><code>urllib2.urlopen(request, timeout=timeout)
</code></pre>

<p>so it is of type</p>

<pre><code>httplib.HTTPResponse

httplib.HTTPResponse.read()
</code></pre>

<p>supports amt as optional parameter of length under python2.7. Still I am getting the error:</p>

<pre><code>Traceback (most recent call last):
   File "D:\eclipse_workspace\py27\wsdconfirmationserver.py", line 152, in &lt;module&gt;
print(customHttpRequest(url="http://test.com/"))
   File "D:\eclipse_workspace\py27\wsdconfirmationserver.py", line 109, in customHttpRequest
   data = response.read(amt = 10 *1024 *1024)                                   
TypeError: read() got an unexpected keyword argument 'amt'
</code></pre>

<p>Now the funy thing is if I rename read() in the source of httplib.HTTPResponse this function does no fail any-more but obviously I introduce myriads of other problems in the code.
I wander why this happens... seems like a bug in python, but... maybe is something I don't understand. Thank you for your time!</p>
