It is not cool and/or helpfull to see an HTML dump of some
authorZac Medico <zmedico@gentoo.org>
Tue, 20 Nov 2007 19:31:55 +0000 (19:31 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 20 Nov 2007 19:31:55 +0000 (19:31 -0000)
page in case it is not what is expected (like a 404).
(trunk r8462)

svn path=/main/branches/2.1.2/; revision=8545

pym/getbinpkg.py

index 71969b00601243027b241dc2c3cee47ba959d3a2..f8529d79e704b812583a254e9d5392d383e6e85d 100644 (file)
@@ -236,9 +236,6 @@ def make_http_request(conn, address, params={}, headers={}, dest=None):
                                        break
        
        if (rc != 200) and (rc != 206):
-               sys.stderr.write(str(response.msg)+"\n")
-               sys.stderr.write(response.read()+"\n")
-               sys.stderr.write("address: "+address+"\n")
                return None,rc,"Server did not respond successfully ("+str(response.status)+": "+str(response.reason)+")"
 
        if dest: