summaryrefslogtreecommitdiff
path: root/jsonschema/__init__.py
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2013-05-20 18:34:32 -0400
committerJulian Berman <Julian@GrayVines.com>2013-05-20 18:34:32 -0400
commit25fb92cd2cdb1ea1b370072df4a44ec78fbeca9d (patch)
tree49eaa2a72a194d9a2ab071ecb18248d17687a6b1 /jsonschema/__init__.py
parent0fe509c9c0ce61331c7c438bae983635cdf86076 (diff)
downloadjsonschema-25fb92cd2cdb1ea1b370072df4a44ec78fbeca9d.tar.gz
Oh fine I'll have an exceptions module.
I generally hate this, but there's enough ugliness and eventually it'd be nice to have these in a public module for when we might want them out of __init__.py
Diffstat (limited to 'jsonschema/__init__.py')
-rw-r--r--jsonschema/__init__.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/jsonschema/__init__.py b/jsonschema/__init__.py
index d2e1b6f..ec4fcec 100644
--- a/jsonschema/__init__.py
+++ b/jsonschema/__init__.py
@@ -9,13 +9,14 @@ instance under a schema, and will create a validator for you.
"""
+from jsonschema.exceptions import (
+ FormatError, RefResolutionError, SchemaError, UnknownType, ValidationError
+)
from jsonschema._format import (
- FormatChecker, FormatError, draft3_format_checker, draft4_format_checker,
+ FormatChecker, draft3_format_checker, draft4_format_checker,
)
-from jsonschema._validators import ValidationError
from jsonschema.validators import (
- RefResolutionError, SchemaError, UnknownType, ErrorTree,
- Draft3Validator, Draft4Validator, RefResolver, ValidatorMixin,
+ ErrorTree, Draft3Validator, Draft4Validator, RefResolver, ValidatorMixin,
validate, validates,
)