8000 Keep validate_date private. by anntzer · Pull Request #17414 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Keep validate_date private. #17414

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 14, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/matplotlib/rcsetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def validate_any(s):
validate_anylist = _listify_validator(validate_any)


def validate_date(s):
def _validate_date(s):
try:
np.datetime64(s)
return s
Expand Down Expand Up @@ -1277,7 +1277,7 @@ def _convert_validator_spec(key, conv):
'scatter.marker': ['o', validate_string],
'scatter.edgecolors': ['face', validate_string],

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