Skip to content

Commit

Permalink
Remove the check on if pref is passed in as a string (#21407)
Browse files Browse the repository at this point in the history
  • Loading branch information
ziransun authored Mar 3, 2020
1 parent 99e455e commit b32ae7b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tools/wptrunner/wptrunner/wptcommandline.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from collections import OrderedDict
from distutils.spawn import find_executable
from datetime import timedelta
from six import iterkeys, itervalues, iteritems, string_types
from six import iterkeys, itervalues, iteritems

from . import config
from . import wpttest
Expand Down Expand Up @@ -538,9 +538,6 @@ def check_args(kwargs):
kwargs["certutil_binary"] = path

if kwargs['extra_prefs']:
# If a single pref is passed in as a string, make it a list
if isinstance(kwargs['extra_prefs'], string_types):
kwargs['extra_prefs'] = [kwargs['extra_prefs']]
missing = any('=' not in prefarg for prefarg in kwargs['extra_prefs'])
if missing:
print("Preferences via --setpref must be in key=value format", file=sys.stderr)
Expand Down

0 comments on commit b32ae7b

Please sign in to comment.