diff --git a/py/selenium/webdriver/firefox/firefox_profile.py b/py/selenium/webdriver/firefox/firefox_profile.py index 7c8863abcfb95..2e6fa8fef1e0d 100644 --- a/py/selenium/webdriver/firefox/firefox_profile.py +++ b/py/selenium/webdriver/firefox/firefox_profile.py @@ -28,7 +28,7 @@ try: from cStringIO import StringIO as BytesIO bytes = str - str = unicode + str = basestring except ImportError: from io import BytesIO @@ -361,7 +361,7 @@ def get_text(element): raise AddonFormatError(str(e), sys.exc_info()[2]) # turn unpack into a true/false value - if isinstance(details['unpack'], basestring): + if isinstance(details['unpack'], str): details['unpack'] = details['unpack'].lower() == 'true' # If no ID is set, the add-on is invalid