Merge "Removed unused imports."

This commit is contained in:
Jenkins 2012-04-27 14:34:55 +00:00 committed by Gerrit Code Review
commit e22ee457f0
10 changed files with 6 additions and 18 deletions

View File

@ -69,3 +69,4 @@ Doug Weimer (dweimer@gmail.com)
Cory Wright (cory.wright@rackspace.com) Cory Wright (cory.wright@rackspace.com)
Ye Jia Xu (xyj.asmy@gmail.com) Ye Jia Xu (xyj.asmy@gmail.com)
Pete Zaitcev (zaitcev@kotori.zaitcev.us) Pete Zaitcev (zaitcev@kotori.zaitcev.us)
Josh Kearney (josh@jk0.org)

View File

@ -13,7 +13,6 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import os
import time import time
from random import random from random import random

View File

@ -14,7 +14,6 @@
import time import time
import eventlet import eventlet
from webob import Request, Response from webob import Request, Response
from webob.exc import HTTPNotFound
from swift.common.utils import split_path, cache_from_env, get_logger from swift.common.utils import split_path, cache_from_env, get_logger
from swift.proxy.server import get_container_memcache_key from swift.proxy.server import get_container_memcache_key

View File

@ -118,7 +118,7 @@ import cgi
import time import time
from urllib import unquote, quote as urllib_quote from urllib import unquote, quote as urllib_quote
from webob import Response, Request from webob import Response
from webob.exc import HTTPMovedPermanently, HTTPNotFound from webob.exc import HTTPMovedPermanently, HTTPNotFound
from swift.common.utils import cache_from_env, get_logger, human_readable, \ from swift.common.utils import cache_from_env, get_logger, human_readable, \

View File

@ -51,15 +51,11 @@ following for an SAIO setup::
""" """
from urllib import unquote, quote from urllib import unquote, quote
import rfc822
import hmac
import base64 import base64
import errno
from xml.sax.saxutils import escape as xml_escape from xml.sax.saxutils import escape as xml_escape
import urlparse import urlparse
from webob import Request, Response from webob import Request, Response
from webob.exc import HTTPNotFound
from simplejson import loads from simplejson import loads
from swift.common.utils import split_path from swift.common.utils import split_path

View File

@ -13,7 +13,6 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import os
import time import time
from random import random from random import random

View File

@ -13,7 +13,6 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import os
from time import ctime, time from time import ctime, time
from random import random, shuffle from random import random, shuffle
from struct import unpack_from from struct import unpack_from
@ -28,7 +27,7 @@ from swift.common.direct_client import direct_get_object
from swift.common.ring import Ring from swift.common.ring import Ring
from swift.common.db import ContainerBroker from swift.common.db import ContainerBroker
from swift.common.utils import audit_location_generator, get_logger, \ from swift.common.utils import audit_location_generator, get_logger, \
hash_path, normalize_timestamp, TRUE_VALUES, validate_sync_to, whataremyips hash_path, TRUE_VALUES, validate_sync_to, whataremyips
from swift.common.daemon import Daemon from swift.common.daemon import Daemon

View File

@ -29,7 +29,7 @@ from swift.common.bufferedhttp import http_connect
from swift.common.db import ContainerBroker from swift.common.db import ContainerBroker
from swift.common.exceptions import ConnectionTimeout from swift.common.exceptions import ConnectionTimeout
from swift.common.ring import Ring from swift.common.ring import Ring
from swift.common.utils import get_logger, whataremyips, TRUE_VALUES from swift.common.utils import get_logger, TRUE_VALUES
from swift.common.daemon import Daemon from swift.common.daemon import Daemon

View File

@ -15,16 +15,11 @@
import os import os
import time import time
import uuid
import errno
from hashlib import md5
from random import random
from eventlet import Timeout from eventlet import Timeout
from swift.obj import server as object_server from swift.obj import server as object_server
from swift.obj.replicator import invalidate_hash from swift.common.utils import get_logger, audit_location_generator, \
from swift.common.utils import get_logger, renamer, audit_location_generator, \
ratelimit_sleep, TRUE_VALUES ratelimit_sleep, TRUE_VALUES
from swift.common.exceptions import AuditException, DiskFileError, \ from swift.common.exceptions import AuditException, DiskFileError, \
DiskFileNotExist DiskFileNotExist

View File

@ -48,7 +48,7 @@ from eventlet.timeout import Timeout
from webob.exc import HTTPAccepted, HTTPBadRequest, HTTPForbidden, \ from webob.exc import HTTPAccepted, HTTPBadRequest, HTTPForbidden, \
HTTPMethodNotAllowed, HTTPNotFound, HTTPPreconditionFailed, \ HTTPMethodNotAllowed, HTTPNotFound, HTTPPreconditionFailed, \
HTTPRequestEntityTooLarge, HTTPRequestTimeout, HTTPServerError, \ HTTPRequestEntityTooLarge, HTTPRequestTimeout, HTTPServerError, \
HTTPServiceUnavailable, HTTPUnprocessableEntity, status_map HTTPServiceUnavailable, status_map
from webob import Request, Response from webob import Request, Response
from swift.common.ring import Ring from swift.common.ring import Ring