Skip to content

Commit e22ee45

Browse files
Jenkinsopenstack-gerrit
Jenkins
authored andcommitted
Merge "Removed unused imports."
2 parents aa7a3a3 + b28cdbb commit e22ee45

File tree

10 files changed

+6
-18
lines changed

10 files changed

+6
-18
lines changed

AUTHORS

+1
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,4 @@ Doug Weimer ([email protected])
6969
Cory Wright ([email protected])
7070
Ye Jia Xu ([email protected])
7171
Pete Zaitcev ([email protected])
72+
Josh Kearney ([email protected])

swift/account/auditor.py

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
import os
1716
import time
1817
from random import random
1918

swift/common/middleware/ratelimit.py

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
import time
1515
import eventlet
1616
from webob import Request, Response
17-
from webob.exc import HTTPNotFound
1817

1918
from swift.common.utils import split_path, cache_from_env, get_logger
2019
from swift.proxy.server import get_container_memcache_key

swift/common/middleware/staticweb.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
import time
119119
from urllib import unquote, quote as urllib_quote
120120

121-
from webob import Response, Request
121+
from webob import Response
122122
from webob.exc import HTTPMovedPermanently, HTTPNotFound
123123

124124
from swift.common.utils import cache_from_env, get_logger, human_readable, \

swift/common/middleware/swift3.py

-4
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,11 @@
5151
"""
5252

5353
from urllib import unquote, quote
54-
import rfc822
55-
import hmac
5654
import base64
57-
import errno
5855
from xml.sax.saxutils import escape as xml_escape
5956
import urlparse
6057

6158
from webob import Request, Response
62-
from webob.exc import HTTPNotFound
6359
from simplejson import loads
6460

6561
from swift.common.utils import split_path

swift/container/auditor.py

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
import os
1716
import time
1817
from random import random
1918

swift/container/sync.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
import os
1716
from time import ctime, time
1817
from random import random, shuffle
1918
from struct import unpack_from
@@ -28,7 +27,7 @@
2827
from swift.common.ring import Ring
2928
from swift.common.db import ContainerBroker
3029
from swift.common.utils import audit_location_generator, get_logger, \
31-
hash_path, normalize_timestamp, TRUE_VALUES, validate_sync_to, whataremyips
30+
hash_path, TRUE_VALUES, validate_sync_to, whataremyips
3231
from swift.common.daemon import Daemon
3332

3433

swift/container/updater.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
from swift.common.db import ContainerBroker
3030
from swift.common.exceptions import ConnectionTimeout
3131
from swift.common.ring import Ring
32-
from swift.common.utils import get_logger, whataremyips, TRUE_VALUES
32+
from swift.common.utils import get_logger, TRUE_VALUES
3333
from swift.common.daemon import Daemon
3434

3535

swift/obj/auditor.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,11 @@
1515

1616
import os
1717
import time
18-
import uuid
19-
import errno
20-
from hashlib import md5
21-
from random import random
2218

2319
from eventlet import Timeout
2420

2521
from swift.obj import server as object_server
26-
from swift.obj.replicator import invalidate_hash
27-
from swift.common.utils import get_logger, renamer, audit_location_generator, \
22+
from swift.common.utils import get_logger, audit_location_generator, \
2823
ratelimit_sleep, TRUE_VALUES
2924
from swift.common.exceptions import AuditException, DiskFileError, \
3025
DiskFileNotExist

swift/proxy/server.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
from webob.exc import HTTPAccepted, HTTPBadRequest, HTTPForbidden, \
4949
HTTPMethodNotAllowed, HTTPNotFound, HTTPPreconditionFailed, \
5050
HTTPRequestEntityTooLarge, HTTPRequestTimeout, HTTPServerError, \
51-
HTTPServiceUnavailable, HTTPUnprocessableEntity, status_map
51+
HTTPServiceUnavailable, status_map
5252
from webob import Request, Response
5353

5454
from swift.common.ring import Ring

0 commit comments

Comments
 (0)