From 3c009f3ff45d89a703bc833c900e06a79b32f1c1 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Mon, 19 Nov 2018 15:49:28 +0100 Subject: Coding style Fix a few random issues pointed out by pylint, mainly unused imports. --- crocoite/devtools.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'crocoite/devtools.py') diff --git a/crocoite/devtools.py b/crocoite/devtools.py index 0bf2255..b071d2e 100644 --- a/crocoite/devtools.py +++ b/crocoite/devtools.py @@ -22,7 +22,10 @@ Communication with Google Chrome through its DevTools protocol. """ -import aiohttp, websockets, json, asyncio, logging +import json, asyncio, logging, os +from tempfile import mkdtemp +import shutil +import aiohttp, websockets logger = logging.getLogger (__name__) @@ -228,8 +231,7 @@ class Tab: if '.' in name: n, ext = name.split ('.', 1) return getattrRecursive (getattr (obj, n), ext) - else: - return getattr (obj, name) + return getattr (obj, name) if self.crashed: raise Crashed () @@ -252,10 +254,6 @@ class Tab: await ret.run () return ret -import os, time -from tempfile import mkdtemp -import shutil - class Process: """ Start Google Chrome listening on a random port """ @@ -327,7 +325,7 @@ class Process: return False class Passthrough: - __slots__ = ('url') + __slots__ = ('url', ) def __init__ (self, url): self.url = url -- cgit v1.2.3