{"action":"created","issue":{"url":"https://api.github.com/repos/kennethreitz/requests/issues/2159","labels_url":"https://api.github.com/repos/kennethreitz/requests/issues/2159/labels{/name}","comments_url":"https://api.github.com/repos/kennethreitz/requests/issues/2159/comments","events_url":"https://api.github.com/repos/kennethreitz/requests/issues/2159/events","html_url":"https://github.com/kennethreitz/requests/issues/2159","id":39345367,"number":2159,"title":" readline() takes exactly 1 argument (2 given)","user":{"login":"kiarashplusplus","id":1780945,"avatar_url":"https://avatars.githubusercontent.com/u/1780945?v=3","gravatar_id":"","url":"https://api.github.com/users/kiarashplusplus","html_url":"https://github.com/kiarashplusplus","followers_url":"https://api.github.com/users/kiarashplusplus/followers","following_url":"https://api.github.com/users/kiarashplusplus/following{/other_user}","gists_url":"https://api.github.com/users/kiarashplusplus/gists{/gist_id}","starred_url":"https://api.github.com/users/kiarashplusplus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiarashplusplus/subscriptions","organizations_url":"https://api.github.com/users/kiarashplusplus/orgs","repos_url":"https://api.github.com/users/kiarashplusplus/repos","events_url":"https://api.github.com/users/kiarashplusplus/events{/privacy}","received_events_url":"https://api.github.com/users/kiarashplusplus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kennethreitz/requests/labels/Propose%20Close","name":"Propose Close","color":"f7c6c7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2014-08-02T08:53:44Z","updated_at":"2015-04-10T09:09:57Z","closed_at":"2015-01-18T20:23:10Z","body":"I'm trying to make connections with proxies. and some of the times I get this error. I put the traceback below.\r\n\r\nThe command I use is this: ``requests.get(w, verify=False, timeout=4, proxies=proxy)``\r\n `w` is a url and `proxy` is a dictionary.. something I make like this:\r\n\r\n```python\r\nhttp_proxy  = \"http://\"+ip.strip()\r\nhttps_proxy = http_proxy\r\nproxyDict = { \r\n              \"http\"  : http_proxy, \r\n              \"https\" : https_proxy, \r\n            }\r\n```\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"explore_proxies.py\", line 13, in onewebsite\r\n    r= requests.get(w, verify=False, timeout=4, proxies=proxy)\r\n  File \"/usr/lib/python2.7/dist-packages/requests/api.py\", line 55, in get\r\n    return request('get', url, **kwargs)\r\n  File \"/usr/lib/python2.7/dist-packages/requests/api.py\", line 44, in request\r\n    return session.request(method=method, url=url, **kwargs)\r\n  File \"/usr/lib/python2.7/dist-packages/requests/sessions.py\", line 383, in req\r\nuest\r\n    resp = self.send(prep, **send_kwargs)\r\n  File \"/usr/lib/python2.7/dist-packages/requests/sessions.py\", line 486, in sen\r\nd\r\n    r = adapter.send(request, **kwargs)\r\n  File \"/usr/lib/python2.7/dist-packages/requests/adapters.py\", line 330, in sen\r\nd\r\n    timeout=timeout\r\n  File \"/usr/lib/python2.7/dist-packages/urllib3/connectionpool.py\", line 537, i\r\nn urlopen\r\n    conn = self._get_conn(timeout=pool_timeout)\r\n  File \"/usr/lib/python2.7/dist-packages/urllib3/connectionpool.py\", line 299, i\r\nn _get_conn\r\n    return conn or self._new_conn()\r\n  File \"/usr/lib/python2.7/dist-packages/urllib3/connectionpool.py\", line 719, i\r\nn _new_conn\r\n    return self._prepare_conn(connection)\r\n  File \"/usr/lib/python2.7/dist-packages/urllib3/connectionpool.py\", line 686, i\r\nn _prepare_conn\r\n    connection.connect()\r\n  File \"/usr/lib/python2.7/dist-packages/urllib3/connectionpool.py\", line 124, i\r\nn connect\r\n    self._tunnel()\r\n  File \"/usr/lib/python2.7/httplib.py\", line 759, in _tunnel\r\n    line = response.fp.readline(_MAXLINE + 1)\r\nTypeError: readline() takes exactly 1 argument (2 given)\r\n```"},"comment":{"url":"https://api.github.com/repos/kennethreitz/requests/issues/comments/91488554","html_url":"https://github.com/kennethreitz/requests/issues/2159#issuecomment-91488554","issue_url":"https://api.github.com/repos/kennethreitz/requests/issues/2159","id":91488554,"user":{"login":"choleraehyq","id":8923413,"avatar_url":"https://avatars.githubusercontent.com/u/8923413?v=3","gravatar_id":"","url":"https://api.github.com/users/choleraehyq","html_url":"https://github.com/choleraehyq","followers_url":"https://api.github.com/users/choleraehyq/followers","following_url":"https://api.github.com/users/choleraehyq/following{/other_user}","gists_url":"https://api.github.com/users/choleraehyq/gists{/gist_id}","starred_url":"https://api.github.com/users/choleraehyq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/choleraehyq/subscriptions","organizations_url":"https://api.github.com/users/choleraehyq/orgs","repos_url":"https://api.github.com/users/choleraehyq/repos","events_url":"https://api.github.com/users/choleraehyq/events{/privacy}","received_events_url":"https://api.github.com/users/choleraehyq/received_events","type":"User","site_admin":false},"created_at":"2015-04-10T09:09:56Z","updated_at":"2015-04-10T09:09:56Z","body":"I upgrade to pip 6.1.1 and the bug disappears. Thanks! :-)"}}