Package: python2.7 Version: 2.7.3-6+deb7u2 Severity: important Tags: patch Dear Maintainer,
While trying to run func (https://fedorahosted.org/func/), I encountered the error. The backtrace produced by python was: lw230024@labahold1:func-0.30$] func "*" call system list_modules {'ah9100-sb1': ['REMOTE_ERROR', 'exceptions.TypeError', 'makefile() takes exactly 3 arguments (2 given)', ' File "/usr/local/lib/python2.7/dist-packages/func/overlord/client.py", line 920, in process_server\n retval = getattr(conn, meth)(*args[:])\n File "/usr/lib/python2.7/xmlrpclib.py", line 1224, in __call__\n return self.__send(self.__name, args)\n File "/usr/lib/python2.7/xmlrpclib.py", line 1578, in __request\n verbose=self.__verbose\n File "/usr/lib/python2.7/xmlrpclib.py", line 1264, in request\n return self.single_request(host, handler, request_body, verbose)\n File "/usr/lib/python2.7/xmlrpclib.py", line 1294, in single_request\n response = h.getresponse(buffering=True)\n File "/usr/lib/python2.7/httplib.py", line 1032, in getresponse\n response = self.response_class(*args, **kwds)\n File "/usr/lib/python2.7/httplib.py", line 339, in __init__\n self.fp = sock.makefile(\'rb\')\n']} (The above formatted slightly for readability) The following patch fixed the problem - and looks to do the right thing (I am _not_ a python expert!) --- /usr/lib/python2.7/httplib.py 2014-03-13 11:54:53.000000000 +0100 +++ httplib.py.new 2015-02-10 19:18:41.000000000 +0100 @@ -336,7 +336,7 @@ if buffering: # The caller won't be using any sock.recv() calls, so buffering # is fine and recommended for performance. - self.fp = sock.makefile('rb') + self.fp = sock.makefile('rb', -1) else: # The buffer size is specified as zero, because the headers of # the response are read with readline(). If the reads were The patch makes func working OK. -- System Information: Debian Release: 7.7 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 3.2.0-4-amd64 (SMP w/16 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages python2.7 depends on: ii libbz2-1.0 1.0.6-4 ii libc6 2.13-38+deb7u7 ii libdb5.1 5.1.29-5 ii libexpat1 2.1.0-1+deb7u1 ii libgcc1 1:4.7.2-5 ii libncursesw5 5.9-10 ii libreadline6 6.2+dfsg-0.1 ii libsqlite3-0 3.7.16.2-1~bpo70+1 ii libtinfo5 5.9-10 ii mime-support 3.52-1 ii python2.7-minimal 2.7.3-6+deb7u2 python2.7 recommends no packages. Versions of packages python2.7 suggests: ii binutils 2.22-8 pn python2.7-doc <none> -- no debconf information

