summaryrefslogtreecommitdiff
path: root/keystoneclient
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.com>2020-03-31 12:11:21 +0200
committerAndreas Jaeger <aj@suse.com>2020-03-31 12:16:31 +0200
commite25df2943d28588ceede989a801a32cc306019f7 (patch)
tree15a7969204198cca19206d273283c8680346b640 /keystoneclient
parent526350eaeeadef8c1ca5f80547c01f94342a6653 (diff)
downloadpython-keystoneclient-e25df2943d28588ceede989a801a32cc306019f7.tar.gz
Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which supports Python 3. Fix problems found. Change-Id: Ic161a8f88c28d88898863e5b9d9380016fbb0d08
Diffstat (limited to 'keystoneclient')
-rw-r--r--keystoneclient/auth/__init__.py1
-rw-r--r--keystoneclient/auth/identity/v3/__init__.py2
-rw-r--r--keystoneclient/contrib/ec2/utils.py2
-rw-r--r--keystoneclient/exceptions.py2
-rw-r--r--keystoneclient/fixture/__init__.py2
5 files changed, 8 insertions, 1 deletions
diff --git a/keystoneclient/auth/__init__.py b/keystoneclient/auth/__init__.py
index eeae768..c9acef8 100644
--- a/keystoneclient/auth/__init__.py
+++ b/keystoneclient/auth/__init__.py
@@ -10,6 +10,7 @@
# License for the specific language governing permissions and limitations
# under the License.
+# flake8: noqa: F405
from keystoneclient.auth.base import * # noqa
from keystoneclient.auth.cli import * # noqa
diff --git a/keystoneclient/auth/identity/v3/__init__.py b/keystoneclient/auth/identity/v3/__init__.py
index f25bf5e..abbaa65 100644
--- a/keystoneclient/auth/identity/v3/__init__.py
+++ b/keystoneclient/auth/identity/v3/__init__.py
@@ -10,6 +10,8 @@
# License for the specific language governing permissions and limitations
# under the License.
+# flake8: noqa: F405
+
from keystoneclient.auth.identity.v3.base import * # noqa
from keystoneclient.auth.identity.v3.federated import * # noqa
from keystoneclient.auth.identity.v3.password import * # noqa
diff --git a/keystoneclient/contrib/ec2/utils.py b/keystoneclient/contrib/ec2/utils.py
index 1ef5df4..4e14e78 100644
--- a/keystoneclient/contrib/ec2/utils.py
+++ b/keystoneclient/contrib/ec2/utils.py
@@ -225,7 +225,7 @@ class Ec2Signer(object):
# port if we detect an old boto version. FIXME: remove when all
# distros package boto >= 2.9.3, this is a transitional workaround
user_agent = headers_lower.get('user-agent', '')
- strip_port = re.match('Boto/2\.[0-9]\.[0-2]', user_agent)
+ strip_port = re.match(r'Boto/2\.[0-9]\.[0-2]', user_agent)
header_list = []
sh_str = auth_param('SignedHeaders')
diff --git a/keystoneclient/exceptions.py b/keystoneclient/exceptions.py
index 5b06be9..034e5c9 100644
--- a/keystoneclient/exceptions.py
+++ b/keystoneclient/exceptions.py
@@ -376,6 +376,7 @@ class CMSError(Exception):
msg = _('Unable to sign or verify data.')
super(CMSError, self).__init__(msg)
+
EmptyCatalog = _exc.EmptyCatalog
"""The service catalog is empty.
@@ -398,6 +399,7 @@ An alias of :py:exc:`keystoneauth1.exceptions.discovery.VersionNotAvailable`
class MethodNotImplemented(ClientException):
"""Method not implemented by the keystoneclient API."""
+
MissingAuthPlugin = _exc.MissingAuthPlugin
"""An authenticated request is required but no plugin available.
diff --git a/keystoneclient/fixture/__init__.py b/keystoneclient/fixture/__init__.py
index 768f969..92034a0 100644
--- a/keystoneclient/fixture/__init__.py
+++ b/keystoneclient/fixture/__init__.py
@@ -28,6 +28,8 @@ testing.
"""
+# flake8: noqa: F405
+
import warnings
from keystoneclient.fixture.discovery import * # noqa