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

Skip to content

Commit 3756e58

Browse files
committed
Keep validate_date private.
I'm slowly turning all validator functions to be private, so let's start right away with this one (which is not in any released version yet).
1 parent 22eade6 commit 3756e58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/rcsetup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def validate_any(s):
122122
validate_anylist = _listify_validator(validate_any)
123123

124124

125-
def validate_date(s):
125+
def _validate_date(s):
126126
try:
127127
np.datetime64(s)
128128
return s
@@ -1277,7 +1277,7 @@ def _convert_validator_spec(key, conv):
12771277
'scatter.marker': ['o', validate_string],
12781278
'scatter.edgecolors': ['face', validate_string],
12791279

1280-
'date.epoch': ['1970-01-01T00:00', validate_date],
1280+
'date.epoch': ['1970-01-01T00:00', _validate_date],
12811281
# TODO validate that these are valid datetime format strings
12821282
'date.autoformatter.year': ['%Y', validate_string],
12831283
'date.autoformatter.month': ['%Y-%m', validate_string],

0 commit comments

Comments
 (0)