From 69281a580f360a6d8c6a9631a55155e47cde2e40 Mon Sep 17 00:00:00 2001 From: Chuck Short <chuck.short@canonical.com> Date: Thu, 18 Jul 2013 13:55:50 -0400 Subject: [PATCH] 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> --- swiftclient/__init__.py | 2 +- tests/test_swiftclient.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/swiftclient/__init__.py b/swiftclient/__init__.py index f0fbf7fa..1d742494 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 e0fa4008..38d3f1ee 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