Skip to content

Commit f138b23

Browse files
committed
Remove 3.6-related code.
1 parent 622c7b2 commit f138b23

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

jsonschema/_format.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -354,13 +354,6 @@ def is_regex(instance):
354354
return re.compile(instance)
355355

356356

357-
if hasattr(datetime.date, "fromisoformat"):
358-
_is_date = datetime.date.fromisoformat
359-
else:
360-
def _is_date(instance):
361-
return datetime.datetime.strptime(instance, "%Y-%m-%d")
362-
363-
364357
@_checks_drafts(
365358
draft3="date",
366359
draft7="date",

0 commit comments

Comments
 (0)