mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 16:55:40 +00:00
Backed out changeset 46206b874a55 (bug 1572448) for causing test_preferences.py to perma fail CLOSED TREE
This commit is contained in:
parent
5b47729d23
commit
226bfc7c40
@ -68,9 +68,9 @@ class Preferences(object):
|
||||
if not isinstance(value, string_types):
|
||||
return value # no op
|
||||
quote = "'"
|
||||
if value.lower() == "true":
|
||||
if value == 'true':
|
||||
return True
|
||||
if value.lower() == "false":
|
||||
if value == 'false':
|
||||
return False
|
||||
try:
|
||||
return int(value)
|
||||
|
Loading…
Reference in New Issue
Block a user