aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/cmake/client.py
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2019-05-05 21:58:25 +0200
committerDaniel Mensinger <daniel@mensinger-ka.de>2019-06-06 18:27:05 +0200
commitaf6448ced5955f8fb43aa667ce8065d50c104fba (patch)
treea4dd135f92fa1af78664e465ff98436c7d0fef28 /mesonbuild/cmake/client.py
parent703054903b8e269e19b69f48fd58b472ecb13883 (diff)
downloadmeson-af6448ced5955f8fb43aa667ce8065d50c104fba.zip
meson-af6448ced5955f8fb43aa667ce8065d50c104fba.tar.gz
meson-af6448ced5955f8fb43aa667ce8065d50c104fba.tar.bz2
cmake: Make flake8 happy
Diffstat (limited to 'mesonbuild/cmake/client.py')
-rw-r--r--mesonbuild/cmake/client.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/mesonbuild/cmake/client.py b/mesonbuild/cmake/client.py
index 4375eb9..4581d6d 100644
--- a/mesonbuild/cmake/client.py
+++ b/mesonbuild/cmake/client.py
@@ -48,8 +48,8 @@ CMAKE_REPLY_TYPES = {
# Base CMake server message classes
class MessageBase:
- def __init__(self, type: str, cookie: str):
- self.type = type
+ def __init__(self, msg_type: str, cookie: str):
+ self.type = msg_type
self.cookie = cookie
def to_dict(self) -> dict:
@@ -61,8 +61,8 @@ class MessageBase:
class RequestBase(MessageBase):
cookie_counter = 0
- def __init__(self, type: str):
- super().__init__(type, self.gen_cookie())
+ def __init__(self, msg_type: str):
+ super().__init__(msg_type, self.gen_cookie())
@staticmethod
def gen_cookie():
@@ -404,13 +404,13 @@ class CMakeClient:
raw_data = self.readMessageRaw()
if 'type' not in raw_data:
raise CMakeException('The "type" attribute is missing from the message')
- type = raw_data['type']
- func = self.type_map.get(type, None)
+ msg_type = raw_data['type']
+ func = self.type_map.get(msg_type, None)
if not func:
- raise CMakeException('Recieved unknown message type "{}"'.format(type))
- for i in CMAKE_MESSAGE_TYPES[type]:
+ raise CMakeException('Recieved unknown message type "{}"'.format(msg_type))
+ for i in CMAKE_MESSAGE_TYPES[msg_type]:
if i not in raw_data:
- raise CMakeException('Key "{}" is missing from CMake server message type {}'.format(i, type))
+ raise CMakeException('Key "{}" is missing from CMake server message type {}'.format(i, msg_type))
return func(raw_data)
def writeMessage(self, msg: MessageBase) -> None: