Merge "Use stdlib urlparse"
This commit is contained in:
commit
0b3f632f37
@ -20,8 +20,8 @@ from optparse import OptionParser
|
||||
from sys import argv
|
||||
from sys import exit
|
||||
|
||||
from six.moves.urllib.parse import urlparse
|
||||
from swift.common.bufferedhttp import http_connect_raw as http_connect
|
||||
from swift.common.utils import urlparse
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
@ -20,8 +20,8 @@ from optparse import OptionParser
|
||||
from sys import argv
|
||||
from sys import exit
|
||||
|
||||
from six.moves.urllib.parse import urlparse
|
||||
from swift.common.bufferedhttp import http_connect_raw as http_connect
|
||||
from swift.common.utils import urlparse
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
@ -99,7 +99,7 @@ if __name__ == '__main__':
|
||||
if options.verbose:
|
||||
print('Done.')
|
||||
exit(0)
|
||||
for x in xrange(16):
|
||||
for x in range(16):
|
||||
container = '.token_%x' % x
|
||||
marker = None
|
||||
while True:
|
||||
@ -132,7 +132,7 @@ if __name__ == '__main__':
|
||||
if err.http_status != 404:
|
||||
raise
|
||||
continue
|
||||
last_modified = datetime(*map(int, re.split('[^\d]',
|
||||
last_modified = datetime(*map(int, re.split(r'[^\d]',
|
||||
obj['last_modified'])[:-1]))
|
||||
ago = datetime.utcnow() - last_modified
|
||||
if ago > options.token_life:
|
||||
|
@ -20,8 +20,8 @@ from optparse import OptionParser
|
||||
from sys import argv
|
||||
from sys import exit
|
||||
|
||||
from six.moves.urllib.parse import urlparse
|
||||
from swift.common.bufferedhttp import http_connect_raw as http_connect
|
||||
from swift.common.utils import urlparse
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
@ -20,8 +20,8 @@ from optparse import OptionParser
|
||||
from sys import argv
|
||||
from sys import exit
|
||||
|
||||
from six.moves.urllib.parse import urlparse
|
||||
from swift.common.bufferedhttp import http_connect_raw as http_connect
|
||||
from swift.common.utils import urlparse
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
@ -21,8 +21,8 @@ from optparse import OptionParser
|
||||
from sys import argv
|
||||
from sys import exit
|
||||
|
||||
from six.moves.urllib.parse import urlparse
|
||||
from swift.common.bufferedhttp import http_connect_raw as http_connect
|
||||
from swift.common.utils import urlparse
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
@ -20,8 +20,8 @@ from optparse import OptionParser
|
||||
from sys import argv
|
||||
from sys import exit
|
||||
|
||||
from six.moves.urllib.parse import urlparse
|
||||
from swift.common.bufferedhttp import http_connect_raw as http_connect
|
||||
from swift.common.utils import urlparse
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
@ -21,8 +21,8 @@ from optparse import OptionParser
|
||||
from sys import argv
|
||||
from sys import exit
|
||||
|
||||
from six.moves.urllib.parse import urlparse
|
||||
from swift.common.bufferedhttp import http_connect_raw as http_connect
|
||||
from swift.common.utils import urlparse
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
@ -21,6 +21,7 @@ from httplib import HTTPConnection
|
||||
from httplib import HTTPSConnection
|
||||
import json
|
||||
import six
|
||||
from six.moves.urllib.parse import urlparse
|
||||
import swift
|
||||
from time import gmtime
|
||||
from time import strftime
|
||||
@ -56,7 +57,6 @@ from swift.common.utils import HASH_PATH_PREFIX
|
||||
from swift.common.utils import HASH_PATH_SUFFIX
|
||||
from swift.common.utils import split_path
|
||||
from swift.common.utils import TRUE_VALUES
|
||||
from swift.common.utils import urlparse
|
||||
import swift.common.wsgi
|
||||
|
||||
import swauth.authtypes
|
||||
|
Loading…
x
Reference in New Issue
Block a user