Skip to content

Commit c47356b

Browse files
committed
Python 3.3 no longer breaks on no input with universal newlines.
1 parent 305b786 commit c47356b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎language_tool/__init__.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ def _start_server(cls):
369369
.format(cls._port, port))
370370
else:
371371
cls._terminate_server()
372-
err_msg = cls._server.communicate("")[1].strip()
372+
err_msg = cls._server.communicate()[1].strip()
373373
cls._server = None
374374
match = cls._PORT_RE.search(err_msg)
375375
if not match:
@@ -475,7 +475,7 @@ def get_version():
475475
universal_newlines=True,
476476
startupinfo=startupinfo
477477
)
478-
out = proc.communicate("", LanguageTool._TIMEOUT)[0]
478+
out = proc.communicate(timeout=LanguageTool._TIMEOUT)[0]
479479
match = version_re.search(out)
480480

481481
if not match:

0 commit comments

Comments
 (0)