Skip to content

Commit ad17907

Browse files
author
spirit
committed
Fix AttributeError under Python 3.3.
1 parent e67b53a commit ad17907

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
@@ -205,7 +205,7 @@ def _start_server(cls):
205205
.format(cls.port, port))
206206
else:
207207
cls._terminate_server()
208-
cls.err_msg = cls._server.communicate()[1].strip()
208+
cls.err_msg = cls._server.communicate("")[1].strip()
209209
cls._server = None
210210
match = cls._PORT_RE.search(cls.err_msg)
211211
if not match:
@@ -343,7 +343,7 @@ def get_version():
343343
universal_newlines=True,
344344
startupinfo=startupinfo
345345
)
346-
out = proc.communicate()[0]
346+
out = proc.communicate("")[0]
347347
match = version_re.search(out)
348348

349349
if not match:

0 commit comments

Comments
 (0)