##// END OF EJS Templates
parsebool: accept always as true and never as false
Augie Fackler -
r12088:1f71dffa default
parent child Browse files
Show More
@@ -1436,8 +1436,9 b' def getport(port):'
1436 except socket.error:
1436 except socket.error:
1437 raise Abort(_("no port number associated with service '%s'") % port)
1437 raise Abort(_("no port number associated with service '%s'") % port)
1438
1438
1439 _booleans = {'1': True, 'yes': True, 'true': True, 'on': True,
1439 _booleans = {'1': True, 'yes': True, 'true': True, 'on': True, 'always': True,
1440 '0': False, 'no': False, 'false': False, 'off': False}
1440 '0': False, 'no': False, 'false': False, 'off': False,
1441 'never': False}
1441
1442
1442 def parsebool(s):
1443 def parsebool(s):
1443 """Parse s into a boolean.
1444 """Parse s into a boolean.
General Comments 0
You need to be logged in to leave comments. Login now