From e91a3aea662a9095d4352f9c78cc11327e4d4e17 Mon Sep 17 00:00:00 2001 From: Tommi Virtanen Date: Mon, 11 Jul 2011 13:12:47 -0700 Subject: [PATCH] Pyflakes cleanup. --- generate_objects.py | 5 ----- rand_readwrite.py | 2 +- test_s3.py | 2 -- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/generate_objects.py b/generate_objects.py index 2ad577e..37dac5c 100755 --- a/generate_objects.py +++ b/generate_objects.py @@ -1,16 +1,11 @@ #! /usr/bin/python -from boto.s3.connection import OrdinaryCallingFormat -from boto.s3.connection import S3Connection from boto.s3.key import Key from optparse import OptionParser -from realistic import RandomContentFile import realistic import traceback import random import common -import yaml -import boto import sys diff --git a/rand_readwrite.py b/rand_readwrite.py index eb72e65..d716906 100755 --- a/rand_readwrite.py +++ b/rand_readwrite.py @@ -74,7 +74,7 @@ def writer(seconds, bucket, name=None, queue=None, quantity=1, file_size=1, file files = generate_objects.get_random_files(quantity, 1024*file_size, 1024*file_stddev, r) start = time.clock() - keys = generate_objects.upload_objects(bucket, files, r2) + generate_objects.upload_objects(bucket, files, r2) end = time.clock() elapsed = end - start diff --git a/test_s3.py b/test_s3.py index 03c457b..0b30651 100644 --- a/test_s3.py +++ b/test_s3.py @@ -9,7 +9,6 @@ import operator import os import random import string -import time import socket from nose.tools import eq_ as eq @@ -831,7 +830,6 @@ def test_object_set_valid_acl(): key.set_xml_acl(XML_1) def test_object_giveaway(): - obj = _setup_access(bucket_acl='public-read', object_acl='public-read-write') CORRECT_ACL = '' + config.main.user_id + '' + config.main.user_id + 'FULL_CONTROL' WRONG_ACL = '' + config.alt.user_id + '' + config.alt.user_id + 'FULL_CONTROL' bucket = get_new_bucket()