Skip to content

Commit 5062d6c

Browse files
lpyu001picnixz
andauthored
Update Lib/configparser.py
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
1 parent 94666c6 commit 5062d6c

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

Lib/configparser.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1222,8 +1222,6 @@ def _unify_values(self, section, vars):
12221222
def _convert_to_boolean(self, value):
12231223
"""Return a boolean value translating from other types if necessary.
12241224
"""
1225-
if value is None:
1226-
raise ValueError('Not a boolean: None')
12271225
if value is None or value.lower() not in self.BOOLEAN_STATES:
12281226
raise ValueError('Not a boolean: %s' % value)
12291227
return self.BOOLEAN_STATES[value.lower()]

0 commit comments

Comments
 (0)