Fix TravisCI failure on python 2.4

This commit is contained in:
Dag Wieers 2015-06-17 15:07:18 +02:00
parent 7108b77c17
commit f967aa376d

View file

@ -209,7 +209,10 @@ class OSXDefaults(object):
# We need to convert some values so the defaults commandline understands it
if type(self.value) is bool:
value = "TRUE" if self.value else "FALSE"
if self.value:
value = "TRUE"
else:
value = "FALSE"
elif type(self.value) is int or type(self.value) is float:
value = str(self.value)
elif self.array_add and self.current_value is not None: