diff options
author | Chuck Short <chuck.short@canonical.com> | 2013-07-18 13:55:50 -0400 |
---|---|---|
committer | Chuck Short <chuck.short@canonical.com> | 2013-07-18 14:00:07 -0400 |
commit | 69281a580f360a6d8c6a9631a55155e47cde2e40 (patch) | |
tree | 9fc1f7c99133475cb52720628957fe5cdbe60c76 | |
parent | 2f84a4e76b03863fe2e62515f150580b09dc20d1 (diff) | |
download | python-swiftclient-69281a580f360a6d8c6a9631a55155e47cde2e40.tar.gz |
python3: Start of adding basic python3 support.
Fix imports so its python3 compliant.
Change-Id: Ie08fe63b87e75bb099105ca1de860f9ab6c3340b
Signed-off-by: Chuck Short <chuck.short@canonical.com>
-rw-r--r-- | swiftclient/__init__.py | 2 | ||||
-rw-r--r-- | tests/test_swiftclient.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/swiftclient/__init__.py b/swiftclient/__init__.py index f0fbf7f..1d74249 100644 --- a/swiftclient/__init__.py +++ b/swiftclient/__init__.py @@ -17,7 +17,7 @@ """" OpenStack Swift Python client binding. """ -from client import * +from .client import * # At setup.py time, we haven't installed anything yet, so there # is nothing that is able to set this version property. Squelching diff --git a/tests/test_swiftclient.py b/tests/test_swiftclient.py index e0fa400..38d3f1e 100644 --- a/tests/test_swiftclient.py +++ b/tests/test_swiftclient.py @@ -23,7 +23,7 @@ import warnings from urlparse import urlparse # TODO: mock http connection class with more control over headers -from utils import fake_http_connect, fake_get_keystoneclient_2_0 +from .utils import fake_http_connect, fake_get_keystoneclient_2_0 from swiftclient import client as c from swiftclient import utils as u |