Skip to content

Commit

Permalink
Fix basestring reference to work with python 3. Fixes #1820
Browse files Browse the repository at this point in the history
  • Loading branch information
AutomatedTester committed Mar 16, 2016
1 parent 35ae25b commit ddcba0f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions py/selenium/webdriver/firefox/webdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
except ImportError:
import httplib as http_client

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

import shutil
import socket
import sys
Expand Down

0 comments on commit ddcba0f

Please sign in to comment.