From 5bd5595a8060bb5aa74d68c4c2805dfaa8c74987 Mon Sep 17 00:00:00 2001
From: jgrmnprz <jgrmnprz@gmail.com>
Date: Thu, 20 Jun 2013 15:40:37 +0300
Subject: [PATCH] Swift client import error

Modify swift client import to work with newer versions (>= 1.7.4).

Correct this error :
swauth-cleanup-tokens -A https://swift.example.org/auth/ -K swauthkey --purge=account1
Traceback (most recent call last):
  File "/usr/bin/swauth-cleanup-tokens", line 28, in <module>
    from swift.common.client import Connection, ClientException
ImportError: No module named client
---
 bin/swauth-cleanup-tokens | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/bin/swauth-cleanup-tokens b/bin/swauth-cleanup-tokens
index 69d2547..54bed9d 100755
--- a/bin/swauth-cleanup-tokens
+++ b/bin/swauth-cleanup-tokens
@@ -25,8 +25,7 @@ from optparse import OptionParser
 from sys import argv, exit
 from time import sleep, time
 
-from swift.common.client import Connection, ClientException
-
+from swiftclient.client import Connection, ClientException
 
 if __name__ == '__main__':
     gettext.install('swauth', unicode=1)