Skip to content

Commit a17b6fd

Browse files
Sanketh PurwarSanketh Purwar
authored andcommitted
renamed method to _start_local_server()
1 parent 0c75a16 commit a17b6fd

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

‎language_check/__init__.py‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ def _get_root(cls, url, data=None, num_tries=2):
321321
except (IOError, http.client.HTTPException) as e:
322322
if cls._remote is False:
323323
cls._terminate_server()
324-
cls._start_server()
324+
cls._start_local_server()
325325
if n + 1 >= num_tries:
326326
raise Error('{}: {}'.format(cls._url, e))
327327

@@ -330,7 +330,7 @@ def _start_server_on_free_port(cls):
330330
while True:
331331
cls._url = 'http://{}:{}'.format(cls._HOST, cls._port)
332332
try:
333-
cls._start_server()
333+
cls._start_local_server()
334334
break
335335
except ServerError:
336336
if cls._MIN_PORT <= cls._port < cls._MAX_PORT:
@@ -339,9 +339,7 @@ def _start_server_on_free_port(cls):
339339
raise
340340

341341
@classmethod
342-
def _start_server(cls):
343-
if cls._remote:
344-
Exception('Remote server can\'t be started.')
342+
def _start_local_server(cls):
345343
err = None
346344
try:
347345
server_cmd = get_server_cmd(cls._port)

0 commit comments

Comments
 (0)