Skip to content

Commit 4dd1c8d

Browse files
author
AutomatedTester
committed
correct string handling to support py3 again
1 parent ad2a6bb commit 4dd1c8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

py/selenium/webdriver/firefox/firefox_profile.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
try:
2929
from cStringIO import StringIO as BytesIO
3030
bytes = str
31-
str = unicode
31+
str = basestring
3232
except ImportError:
3333
from io import BytesIO
3434

@@ -361,7 +361,7 @@ def get_text(element):
361361
raise AddonFormatError(str(e), sys.exc_info()[2])
362362

363363
# turn unpack into a true/false value
364-
if isinstance(details['unpack'], basestring):
364+
if isinstance(details['unpack'], str):
365365
details['unpack'] = details['unpack'].lower() == 'true'
366366

367367
# If no ID is set, the add-on is invalid

0 commit comments

Comments
 (0)