Skip to content

Commit

Permalink
some py3 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeis committed Dec 12, 2013
1 parent a1df581 commit bda568d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion py/selenium/webdriver/remote/remote_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,8 @@ def _request(self, url, data=None, method=None):
HttpErrorHandler())
resp = opener.open(request)
statuscode = resp.code
resp.getheader = lambda x: resp.headers.getheader(x)
if not hasattr(resp, 'getheader'):
resp.getheader = lambda x: resp.headers.getheader(x)

data = resp.read()
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

try:
str = unicode
except ImportError:
except NameError:
pass


Expand Down

0 comments on commit bda568d

Please sign in to comment.