Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1642892

Browse files
committed
Sneaking in another validator fix
1 parent 36c40f1 commit 1642892

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/rcsetup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def validate_float(s):
110110

111111
def validate_float_or_None(s):
112112
"""convert s to float or raise"""
113-
if s is None:
113+
if s is None or s == 'None':
114114
return None
115115
try:
116116
return float(s)

0 commit comments

Comments
 (0)