summaryrefslogtreecommitdiff
path: root/swiftclient
diff options
context:
space:
mode:
authorTim Burke <tim.burke@gmail.com>2019-06-25 15:25:53 -0700
committerTim Burke <tim.burke@gmail.com>2019-06-27 21:43:46 -0700
commit3b21157a844be5b71fba2216486c3ef412e7ae1a (patch)
treeba2467ba8103eae174daec5ed2be8e6c50adf619 /swiftclient
parent113eacf3b80f61d366b3e95b558b40f82ff728a4 (diff)
downloadpython-swiftclient-3b21157a844be5b71fba2216486c3ef412e7ae1a.tar.gz
Clean up warnings from newer flake8
Change-Id: I18a6327b3acdd4db5ae80097080c043f7c20c353
Diffstat (limited to 'swiftclient')
-rw-r--r--swiftclient/client.py2
-rw-r--r--swiftclient/service.py1
-rwxr-xr-xswiftclient/shell.py1
3 files changed, 3 insertions, 1 deletions
diff --git a/swiftclient/client.py b/swiftclient/client.py
index 4406689..f071182 100644
--- a/swiftclient/client.py
+++ b/swiftclient/client.py
@@ -39,7 +39,7 @@ from swiftclient.utils import (
# Default is 100, increase to 256
http_client._MAXHEADERS = 256
-VERSIONFUL_AUTH_PATH = re.compile('v[2-3](?:\.0)?$')
+VERSIONFUL_AUTH_PATH = re.compile(r'v[2-3](?:\.0)?$')
AUTH_VERSIONS_V1 = ('1.0', '1', 1)
AUTH_VERSIONS_V2 = ('2.0', '2', 2)
AUTH_VERSIONS_V3 = ('3.0', '3', 3)
diff --git a/swiftclient/service.py b/swiftclient/service.py
index 8f3648e..2663ace 100644
--- a/swiftclient/service.py
+++ b/swiftclient/service.py
@@ -173,6 +173,7 @@ def _build_default_global_options():
'container_threads': 10
}
+
_default_global_options = _build_default_global_options()
_default_local_options = {
diff --git a/swiftclient/shell.py b/swiftclient/shell.py
index 9ea5e95..0459533 100755
--- a/swiftclient/shell.py
+++ b/swiftclient/shell.py
@@ -58,6 +58,7 @@ def immediate_exit(signum, frame):
stderr.write(" Aborted\n")
os_exit(2)
+
st_delete_options = '''[--all] [--leave-segments]
[--object-threads <threads>]
[--container-threads <threads>]