##// END OF EJS Templates
ui: just return it if it's already a bool
Dirkjan Ochtman -
r10243:cd3e5c47 stable
parent child Browse files
Show More
@@ -131,6 +131,8 b' class ui(object):'
131 131 v = self.config(section, name, None, untrusted)
132 132 if v is None:
133 133 return default
134 if isinstance(v, bool):
135 return v
134 136 if v.lower() not in _booleans:
135 137 raise error.ConfigError(_("%s.%s not a boolean ('%s')")
136 138 % (section, name, v))
General Comments 0
You need to be logged in to leave comments. Login now