diff options
author | Julian Berman <Julian@GrayVines.com> | 2020-08-12 19:40:32 -0400 |
---|---|---|
committer | Julian Berman <Julian@GrayVines.com> | 2020-08-12 19:40:42 -0400 |
commit | 6e1281abc981a5ff20fc10b7dde194d7eae4f637 (patch) | |
tree | ae4b5cd7332b39056b6ceaf1ceacf069de147866 /jsonschema/__init__.py | |
parent | 07665ecee104f501be46307eee02771b4b8c9778 (diff) | |
download | jsonschema-6e1281abc981a5ff20fc10b7dde194d7eae4f637.tar.gz |
isorted.
Diffstat (limited to 'jsonschema/__init__.py')
-rw-r--r-- | jsonschema/__init__.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/jsonschema/__init__.py b/jsonschema/__init__.py index 6b630cd..619a7ea 100644 --- a/jsonschema/__init__.py +++ b/jsonschema/__init__.py @@ -8,9 +8,6 @@ Most commonly, `validate` is the quickest way to simply validate a given instance under a schema, and will create a validator for you. """ -from jsonschema.exceptions import ( - ErrorTree, FormatError, RefResolutionError, SchemaError, ValidationError -) from jsonschema._format import ( FormatChecker, draft3_format_checker, @@ -19,6 +16,13 @@ from jsonschema._format import ( draft7_format_checker, ) from jsonschema._types import TypeChecker +from jsonschema.exceptions import ( + ErrorTree, + FormatError, + RefResolutionError, + SchemaError, + ValidationError, +) from jsonschema.validators import ( Draft3Validator, Draft4Validator, @@ -27,6 +31,7 @@ from jsonschema.validators import ( RefResolver, validate, ) + try: from importlib import metadata except ImportError: # for Python<3.8 |