diff options
author | José Padilla <jpadilla@webapplicate.com> | 2015-01-18 14:08:56 -0400 |
---|---|---|
committer | José Padilla <jpadilla@webapplicate.com> | 2015-01-18 14:08:56 -0400 |
commit | 5f255f94a6d8763cb7ae504348429f770f69be6e (patch) | |
tree | 5a53c67c9777dda5252d25756556753d39224772 /jwt/algorithms.py | |
parent | 6cd17161d28520257de4d8eaf8e742d0a683bd1f (diff) | |
download | pyjwt-5f255f94a6d8763cb7ae504348429f770f69be6e.tar.gz |
Cleanup __init__ module
- Expose public API
- Move exceptions to separate module
- Use relative imports
Diffstat (limited to 'jwt/algorithms.py')
-rw-r--r-- | jwt/algorithms.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jwt/algorithms.py b/jwt/algorithms.py index dec6577..2e4a2e8 100644 --- a/jwt/algorithms.py +++ b/jwt/algorithms.py @@ -1,8 +1,8 @@ import hashlib import hmac -from jwt import register_algorithm -from jwt.compat import constant_time_compare, string_types, text_type +from .api import register_algorithm +from .compat import constant_time_compare, string_types, text_type try: from cryptography.hazmat.primitives import interfaces, hashes |