Backed out changeset 46206b874a55 (bug 1572448) for causing test_preferences.py to perma fail CLOSED TREE

This commit is contained in:
Ciure Andrei 2019-08-09 12:48:06 +03:00
parent 5b47729d23
commit 226bfc7c40

View File

@ -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)