commit 4b33ab2681f85a045da206ed7f80d86a9ba429e2
parent cb8d739bfd6e4cab581fdc8666860f1e501de389
Author: Marcel <MTRNord@users.noreply.github.com>
Date: Fri, 11 Nov 2016 21:28:34 +0100
Update __init__.py
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/intel_screenbot/__init__.py b/intel_screenbot/__init__.py
@@ -11,14 +11,13 @@ def _initialise(bot):
plugins.register_user_command(["intel"])
plugins.register_admin_command(["setintel", "clearintel"])
-@asyncio.coroutine
def _open_file(name):
logger.debug("opening screenshot file: {}".format(name))
return open(name, 'rb')
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()
+ p = asyncio.create_subprocess_shell(shell_command, stdin=PIPE, stdout=PIPE, stderr=STDOUT)
+ return (p.communicate())[0].splitlines()
@asyncio.coroutine
def _screencap(url, filename, SACSID, CSRF, search, bot, event):