Skip to content

Commit

Permalink
ok, now py3 support ;)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeis committed Dec 12, 2013
1 parent bda568d commit 9d7fb14
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion py/selenium/webdriver/remote/remote_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,10 @@ def _request(self, url, data=None, method=None):
resp = opener.open(request)
statuscode = resp.code
if not hasattr(resp, 'getheader'):
resp.getheader = lambda x: resp.headers.getheader(x)
if hasattr(resp.headers, 'getheader'):
resp.getheader = lambda x: resp.headers.getheader(x)
elif hasattr(resp.headers, 'get'):
resp.getheader = lambda x: resp.headers.get(x)

data = resp.read()
try:
Expand Down

0 comments on commit 9d7fb14

Please sign in to comment.