Skip to content

Commit

Permalink
correct string handling to support py3 again
Browse files Browse the repository at this point in the history
  • Loading branch information
AutomatedTester committed May 27, 2014
1 parent ad2a6bb commit 4dd1c8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py/selenium/webdriver/firefox/firefox_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
try:
from cStringIO import StringIO as BytesIO
bytes = str
str = unicode
str = basestring
except ImportError:
from io import BytesIO

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4dd1c8d

Please sign in to comment.