From: Josh Durgin Date: Wed, 1 May 2013 00:07:53 +0000 (-0700) Subject: fix some errors found by pyflakes X-Git-Tag: 1.1.0~2167^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=52742fb072630f26d9d808ddf40f1f39ebc978d2;p=teuthology.git fix some errors found by pyflakes Signed-off-by: Josh Durgin --- diff --git a/teuthology/misc.py b/teuthology/misc.py index 8386ff44d1..1440303eb0 100644 --- a/teuthology/misc.py +++ b/teuthology/misc.py @@ -5,6 +5,7 @@ import logging import configobj import getpass import socket +import sys import tarfile import time import urllib2 diff --git a/teuthology/task/ceph.py b/teuthology/task/ceph.py index 4bd6ee6f3b..1ad8b90676 100644 --- a/teuthology/task/ceph.py +++ b/teuthology/task/ceph.py @@ -4,7 +4,6 @@ import argparse import contextlib import logging import os -import sys from teuthology import misc as teuthology from teuthology import contextutil diff --git a/teuthology/task/ceph_client.py b/teuthology/task/ceph_client.py index 7418500877..8d7d80c8f3 100644 --- a/teuthology/task/ceph_client.py +++ b/teuthology/task/ceph_client.py @@ -1,9 +1,6 @@ -import argparse -import contextlib import logging from teuthology import misc as teuthology -from teuthology import contextutil from ..orchestra import run log = logging.getLogger(__name__) diff --git a/teuthology/task/hadoop.py b/teuthology/task/hadoop.py index c1c2abef4c..d4f1bf2f5e 100644 --- a/teuthology/task/hadoop.py +++ b/teuthology/task/hadoop.py @@ -2,7 +2,6 @@ from cStringIO import StringIO import contextlib import logging -import os from teuthology import misc as teuthology from teuthology import contextutil diff --git a/teuthology/task/rgw.py b/teuthology/task/rgw.py index 7f39b6b437..e98e635023 100644 --- a/teuthology/task/rgw.py +++ b/teuthology/task/rgw.py @@ -100,7 +100,6 @@ exec radosgw -f def start_rgw(ctx, config): log.info('Starting rgw...') testdir = teuthology.get_testdir(ctx) - rgws = {} for client in config.iterkeys(): (remote,) = ctx.cluster.only(client).remotes.iterkeys() diff --git a/teuthology/task/swift.py b/teuthology/task/swift.py index c161c268e7..520366ccbb 100644 --- a/teuthology/task/swift.py +++ b/teuthology/task/swift.py @@ -151,9 +151,6 @@ def run_tests(ctx, config): ) yield -@contextlib.contextmanager -def cleanup_tests(ctx, config): - @contextlib.contextmanager def task(ctx, config): """ diff --git a/teuthology/task/timer.py b/teuthology/task/timer.py index f85ae8cc86..2a78bba0c0 100644 --- a/teuthology/task/timer.py +++ b/teuthology/task/timer.py @@ -2,8 +2,6 @@ import logging import contextlib import datetime -from ..orchestra import run - log = logging.getLogger(__name__) @contextlib.contextmanager @@ -43,8 +41,3 @@ def task(ctx, config): else: ctx.summary['timer'][config] = [dateinfo] log.info('Elapsed time for %s -- %s' % (config,elapsedtime)) - - - - - \ No newline at end of file