Permalink
Browse files

some pyflakes/lint suggested cleanup of unused stuff

Change-Id: I7c7dbf427eaddc07858498303802ac4603d00150
Reviewed-on: http://review.couchbase.org/20362
Reviewed-by: Farshid Ghods <farshid@couchbase.com>
Tested-by: Benjamin Young <benjamin@couchbase.com>
  • Loading branch information...
1 parent 3efb75d commit a96a6a50cfa56487b406cc3df7a8d1c688845b61 @BigBlueHat BigBlueHat committed with Benjamin Young Aug 30, 2012
@@ -21,7 +21,6 @@
import zlib
import struct
import warnings
-import json
import cPickle as pickle
import cStringIO as StringIO
@@ -15,7 +15,6 @@
# limitations under the License.
#
-import base64
import json
import urllib
import socket
@@ -15,6 +15,10 @@
# limitations under the License.
#
+try:
+ import unittest2 as unittest
+except ImportError:
+ import unittest
import types
import warnings
import uuid
@@ -105,7 +109,7 @@ def test_create(self):
def test_delete(self):
self.setup_cb()
bucket_name = str(uuid.uuid4())
- bucket = self.cb.create(bucket_name)
+ self.cb.create(bucket_name)
self.assertIsInstance(self.cb[bucket_name], Bucket)
self.cb.delete(bucket_name)
self.assertNotIn(bucket_name, self.cb)
@@ -113,7 +113,6 @@ def parse_args(argv):
elif o == '-q' or o == '--quiet':
config.quiet = True
- msg = ""
if not config.source or not config.destination:
usage("missing source or destination")

0 comments on commit a96a6a5

Please sign in to comment.