Skip to content

Commit

Permalink
The builtin basestring is no more with py3. Fixes issue 5701.
Browse files Browse the repository at this point in the history
Signed-off-by: Luke Inman-Semerau <luke.semerau@gmail.com>
  • Loading branch information
jayakumarc authored and lukeis committed Jun 12, 2013
1 parent 5d69e47 commit cd21e17
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions py/selenium/webdriver/remote/errorhandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@
from selenium.common.exceptions import WebDriverException
from selenium.common.exceptions import MoveTargetOutOfBoundsException

try:
basestring
except NameError: # Python 3.x
basestring = str


class ErrorCode(object):
"""
Error codes defined in the WebDriver wire protocol.
Expand Down

0 comments on commit cd21e17

Please sign in to comment.