From 88c0b95f5e6a48a30d613be94587d524804606fa Mon Sep 17 00:00:00 2001 From: Marcos Pereira Date: Wed, 23 Aug 2017 11:11:45 -0300 Subject: [PATCH] Fixed imports. --- keycloak/authorization/__init__.py | 6 +++--- keycloak/authorization/policy.py | 2 +- keycloak/tests/test_connection.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/keycloak/authorization/__init__.py b/keycloak/authorization/__init__.py index 95bbb3a..4a1d86d 100644 --- a/keycloak/authorization/__init__.py +++ b/keycloak/authorization/__init__.py @@ -18,9 +18,9 @@ import ast import json -from keycloak.authorization.permission import Permission -from keycloak.authorization.policy import Policy -from keycloak.authorization.role import Role +from .permission import Permission +from .policy import Policy +from .role import Role class Authorization: diff --git a/keycloak/authorization/policy.py b/keycloak/authorization/policy.py index 2504fd1..66512ba 100644 --- a/keycloak/authorization/policy.py +++ b/keycloak/authorization/policy.py @@ -15,7 +15,7 @@ # You should have received a copy of the GNU Lesser General Public License # along with this program. If not, see . -from keycloak.exceptions import KeycloakAuthorizationConfigError +from ..exceptions import KeycloakAuthorizationConfigError class Policy: diff --git a/keycloak/tests/test_connection.py b/keycloak/tests/test_connection.py index 1dc9b33..8727e65 100644 --- a/keycloak/tests/test_connection.py +++ b/keycloak/tests/test_connection.py @@ -17,7 +17,7 @@ from httmock import urlmatch, response, HTTMock, all_requests -from keycloak.connection import ConnectionManager +from ..connection import ConnectionManager try: