From: Zac Medico Date: Fri, 3 Jun 2011 21:47:55 +0000 (-0700) Subject: make_http_request: fix request arguments X-Git-Tag: v2.2.0_alpha38~31 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=9bc101a8508a325de3ffe4f1b6239dc300adb8a6;p=portage.git make_http_request: fix request arguments This will fix "TypeError: must be string or buffer, not dict" with python 2.7, as reported in bug #369913. --- diff --git a/pym/portage/getbinpkg.py b/pym/portage/getbinpkg.py index 68e4543fc..a511f51ff 100644 --- a/pym/portage/getbinpkg.py +++ b/pym/portage/getbinpkg.py @@ -261,7 +261,7 @@ def make_http_request(conn, address, params={}, headers={}, dest=None): try: if (rc != 0): conn,ignore,ignore,ignore,ignore = create_conn(address) - conn.request("GET", address, params, headers) + conn.request("GET", address, body=None, headers=headers) except SystemExit as e: raise except Exception as e: