summaryrefslogtreecommitdiff
path: root/keystoneclient/auth
diff options
context:
space:
mode:
authorDolph Mathews <dolph.mathews@gmail.com>2015-10-01 16:56:33 +0000
committerDolph Mathews <dolph.mathews@gmail.com>2015-10-01 18:18:13 +0000
commiteb77abd77a25baa556de4df527404b907748d3c6 (patch)
tree3dc4977cc9ca7db44e1f3259948c76e8559264eb /keystoneclient/auth
parenteb1dbe8e5a20700a64de50f1d85a972a00c23319 (diff)
downloadpython-keystoneclient-eb77abd77a25baa556de4df527404b907748d3c6.tar.gz
Make __all__ immutable
Using a mutable type implies that it's acceptable for the set of publicly-accessible attributes to be mutated at runtime, which defeats their intended purpose of documenting the public interface. Tuples are immutable. Change-Id: Ib3ab93224ba240040b08ece481ef5ba620c3f658
Diffstat (limited to 'keystoneclient/auth')
-rw-r--r--keystoneclient/auth/__init__.py4
-rw-r--r--keystoneclient/auth/identity/__init__.py4
-rw-r--r--keystoneclient/auth/identity/generic/__init__.py4
-rw-r--r--keystoneclient/auth/identity/v3/__init__.py4
-rw-r--r--keystoneclient/auth/identity/v3/base.py2
-rw-r--r--keystoneclient/auth/identity/v3/federated.py2
-rw-r--r--keystoneclient/auth/identity/v3/password.py2
-rw-r--r--keystoneclient/auth/identity/v3/token.py2
8 files changed, 12 insertions, 12 deletions
diff --git a/keystoneclient/auth/__init__.py b/keystoneclient/auth/__init__.py
index 3b761c2..eeae768 100644
--- a/keystoneclient/auth/__init__.py
+++ b/keystoneclient/auth/__init__.py
@@ -16,7 +16,7 @@ from keystoneclient.auth.cli import * # noqa
from keystoneclient.auth.conf import * # noqa
-__all__ = [
+__all__ = (
# auth.base
'AUTH_INTERFACE',
'BaseAuthPlugin',
@@ -35,4 +35,4 @@ __all__ = [
'get_plugin_options',
'load_from_conf_options',
'register_conf_options',
-]
+)
diff --git a/keystoneclient/auth/identity/__init__.py b/keystoneclient/auth/identity/__init__.py
index d2aca8f..8146c1e 100644
--- a/keystoneclient/auth/identity/__init__.py
+++ b/keystoneclient/auth/identity/__init__.py
@@ -28,10 +28,10 @@ Password = generic.Password
Token = generic.Token
-__all__ = ['BaseIdentityPlugin',
+__all__ = ('BaseIdentityPlugin',
'Password',
'Token',
'V2Password',
'V2Token',
'V3Password',
- 'V3Token']
+ 'V3Token')
diff --git a/keystoneclient/auth/identity/generic/__init__.py b/keystoneclient/auth/identity/generic/__init__.py
index b24c3d6..a96fb97 100644
--- a/keystoneclient/auth/identity/generic/__init__.py
+++ b/keystoneclient/auth/identity/generic/__init__.py
@@ -15,7 +15,7 @@ from keystoneclient.auth.identity.generic.password import Password # noqa
from keystoneclient.auth.identity.generic.token import Token # noqa
-__all__ = ['BaseGenericPlugin',
+__all__ = ('BaseGenericPlugin',
'Password',
'Token',
- ]
+ )
diff --git a/keystoneclient/auth/identity/v3/__init__.py b/keystoneclient/auth/identity/v3/__init__.py
index a08f3ec..f25bf5e 100644
--- a/keystoneclient/auth/identity/v3/__init__.py
+++ b/keystoneclient/auth/identity/v3/__init__.py
@@ -16,7 +16,7 @@ from keystoneclient.auth.identity.v3.password import * # noqa
from keystoneclient.auth.identity.v3.token import * # noqa
-__all__ = ['Auth',
+__all__ = ('Auth',
'AuthConstructor',
'AuthMethod',
'BaseAuth',
@@ -27,4 +27,4 @@ __all__ = ['Auth',
'PasswordMethod',
'Token',
- 'TokenMethod']
+ 'TokenMethod')
diff --git a/keystoneclient/auth/identity/v3/base.py b/keystoneclient/auth/identity/v3/base.py
index 31cab8b..b8234a3 100644
--- a/keystoneclient/auth/identity/v3/base.py
+++ b/keystoneclient/auth/identity/v3/base.py
@@ -24,7 +24,7 @@ from keystoneclient import utils
_logger = logging.getLogger(__name__)
-__all__ = ['Auth', 'AuthMethod', 'AuthConstructor', 'BaseAuth']
+__all__ = ('Auth', 'AuthMethod', 'AuthConstructor', 'BaseAuth')
@six.add_metaclass(abc.ABCMeta)
diff --git a/keystoneclient/auth/identity/v3/federated.py b/keystoneclient/auth/identity/v3/federated.py
index f6416eb..18c6d67 100644
--- a/keystoneclient/auth/identity/v3/federated.py
+++ b/keystoneclient/auth/identity/v3/federated.py
@@ -18,7 +18,7 @@ import six
from keystoneclient.auth.identity.v3 import base
from keystoneclient.auth.identity.v3 import token
-__all__ = ['FederatedBaseAuth']
+__all__ = ('FederatedBaseAuth',)
@six.add_metaclass(abc.ABCMeta)
diff --git a/keystoneclient/auth/identity/v3/password.py b/keystoneclient/auth/identity/v3/password.py
index d9cfa4a..1184e80 100644
--- a/keystoneclient/auth/identity/v3/password.py
+++ b/keystoneclient/auth/identity/v3/password.py
@@ -16,7 +16,7 @@ from keystoneclient.auth.identity.v3 import base
from keystoneclient import utils
-__all__ = ['PasswordMethod', 'Password']
+__all__ = ('PasswordMethod', 'Password')
class PasswordMethod(base.AuthMethod):
diff --git a/keystoneclient/auth/identity/v3/token.py b/keystoneclient/auth/identity/v3/token.py
index d92d3fc..396a11a 100644
--- a/keystoneclient/auth/identity/v3/token.py
+++ b/keystoneclient/auth/identity/v3/token.py
@@ -15,7 +15,7 @@ from oslo_config import cfg
from keystoneclient.auth.identity.v3 import base
-__all__ = ['TokenMethod', 'Token']
+__all__ = ('TokenMethod', 'Token')
class TokenMethod(base.AuthMethod):