mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Whitespace normalization.
This commit is contained in:
parent
8a57f00081
commit
e0c446bb4a
19 changed files with 62 additions and 69 deletions
|
@ -309,7 +309,7 @@ class ConfigParser:
|
|||
def getboolean(self, section, option):
|
||||
states = {'1': 1, 'yes': 1, 'true': 1, 'on': 1,
|
||||
'0': 0, 'no': 0, 'false': 0, 'off': 0}
|
||||
v = self.get(section, option)
|
||||
v = self.get(section, option)
|
||||
if not states.has_key(v.lower()):
|
||||
raise ValueError, 'Not a boolean: %s' % v
|
||||
return states[v.lower()]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue