intel-screenbot

An Ingress Intel Map Bot for Hangoutsbot
git clone git://archive.git.mtrnord.blog/MTRNord/intel-screenbot.git
Log | Files | Refs | README | LICENSE

commit cb8d739bfd6e4cab581fdc8666860f1e501de389
parent cdc580194f1888774910912e444d6b625add73e3
Author: Marcel <MTRNord@users.noreply.github.com>
Date:   Fri, 11 Nov 2016 21:26:00 +0100

Fix syntax
Diffstat:
Mintel_screenbot/__init__.py | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/intel_screenbot/__init__.py b/intel_screenbot/__init__.py @@ -16,10 +16,8 @@ def _open_file(name): logger.debug("opening screenshot file: {}".format(name)) return open(name, 'rb') -@asyncio.coroutine -def _get_lines(shell_command): - p = await asyncio.create_subprocess_shell(shell_command, - stdin=PIPE, stdout=PIPE, stderr=STDOUT) +async def _get_lines(shell_command): + p = await asyncio.create_subprocess_shell(shell_command, stdin=PIPE, stdout=PIPE, stderr=STDOUT) return (await p.communicate())[0].splitlines() @asyncio.coroutine