Skip to content

Commit

Permalink
Sneaking in another validator fix
Browse files Browse the repository at this point in the history
  • Loading branch information
WeatherGod committed Jul 11, 2015
1 parent 36c40f1 commit 1642892
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/matplotlib/rcsetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def validate_float(s):

def validate_float_or_None(s):
"""convert s to float or raise"""
if s is None:
if s is None or s == 'None':
return None
try:
return float(s)
Expand Down

0 comments on commit 1642892

Please sign in to comment.