@@ -44,7 +44,7 @@ def __init__(self, settings):
4444 return
4545
4646 async def init_licensing (self ):
47- """ Initialise licensing from persisted details or environment variable. """
47+ """Initialise licensing from persisted details or environment variable."""
4848
4949 # Persisted licensing details present
5050 if self .settings ["matlab_config_file" ].exists ():
@@ -105,7 +105,7 @@ async def init_licensing(self):
105105 }
106106
107107 def get_matlab_state (self ):
108- """ Determine the state of MATLAB to be down/starting/up. """
108+ """Determine the state of MATLAB to be down/starting/up."""
109109
110110 matlab = self .processes ["matlab" ]
111111 xvfb = self .processes ["xvfb" ]
@@ -129,7 +129,7 @@ def get_matlab_state(self):
129129 return "starting"
130130
131131 async def set_licensing_nlm (self , conn_str ):
132- """ Set the licensing type to NLM and the connection string. """
132+ """Set the licensing type to NLM and the connection string."""
133133
134134 # TODO Validate connection string
135135 self .licensing = {"type" : "nlm" , "conn_str" : conn_str }
@@ -143,7 +143,7 @@ async def set_licensing_mhlm(
143143 entitlements = [],
144144 entitlement_id = None ,
145145 ):
146- """ Set the licensing type to MHLM and the details. """
146+ """Set the licensing type to MHLM and the details."""
147147
148148 try :
149149
@@ -178,7 +178,7 @@ async def set_licensing_mhlm(
178178 log_error (logger , e )
179179
180180 def unset_licensing (self ):
181- """ Unset the licensing. """
181+ """Unset the licensing."""
182182
183183 self .licensing = None
184184
@@ -187,7 +187,7 @@ def unset_licensing(self):
187187 self .error = None
188188
189189 def is_licensed (self ):
190- """ Is MATLAB licensing configured? """
190+ """Is MATLAB licensing configured?"""
191191
192192 if self .licensing is not None :
193193 if self .licensing ["type" ] == "nlm" :
@@ -204,7 +204,7 @@ def is_licensed(self):
204204 return False
205205
206206 def is_matlab_present (self ):
207- """ Is MATLAB install accessible? """
207+ """Is MATLAB install accessible?"""
208208
209209 return self .settings ["matlab_path" ] is not None
210210
@@ -289,7 +289,7 @@ def persist_licensing(self):
289289 f .write (json .dumps (config ))
290290
291291 def reserve_matlab_port (self ):
292- """ Reserve a free port for MATLAB Embedded Connector in the allowed range. """
292+ """Reserve a free port for MATLAB Embedded Connector in the allowed range."""
293293
294294 # FIXME Because of https://github.com/http-party/node-http-proxy/issues/1342 the
295295 # node application in development mode always uses port 31515 to bypass the
@@ -316,7 +316,7 @@ def reserve_matlab_port(self):
316316 raise e
317317
318318 async def start_matlab (self , restart = False ):
319- """ Start MATLAB. """
319+ """Start MATLAB."""
320320
321321 # FIXME
322322 if self .get_matlab_state () != "down" and restart is False :
@@ -445,7 +445,7 @@ async def reader():
445445 loop .create_task (reader ())
446446
447447 async def stop_matlab (self ):
448- """ Terminate MATLAB. """
448+ """Terminate MATLAB."""
449449
450450 matlab = self .processes ["matlab" ]
451451 xvfb = self .processes ["xvfb" ]
0 commit comments