Skip to content

Commit ddcba0f

Browse files
Fix basestring reference to work with python 3. Fixes #1820
1 parent 35ae25b commit ddcba0f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

py/selenium/webdriver/firefox/webdriver.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121
except ImportError:
2222
import httplib as http_client
2323

24+
try:
25+
basestring
26+
except NameError: # Python 3.x
27+
basestring = str
28+
2429
import shutil
2530
import socket
2631
import sys

0 commit comments

Comments
 (0)