summaryrefslogtreecommitdiff
path: root/crocoite/devtools.py
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2018-11-19 15:49:28 +0100
committerLars-Dominik Braun <lars@6xq.net>2018-11-19 15:50:16 +0100
commit3c009f3ff45d89a703bc833c900e06a79b32f1c1 (patch)
tree16f398f4c2adf1d9d072281983a4b7f27d77820f /crocoite/devtools.py
parenta5561785fb66f49c2b76557c6f6745eedb4d8b73 (diff)
downloadcrocoite-3c009f3ff45d89a703bc833c900e06a79b32f1c1.tar.gz
crocoite-3c009f3ff45d89a703bc833c900e06a79b32f1c1.tar.bz2
crocoite-3c009f3ff45d89a703bc833c900e06a79b32f1c1.zip
Coding style
Fix a few random issues pointed out by pylint, mainly unused imports.
Diffstat (limited to 'crocoite/devtools.py')
-rw-r--r--crocoite/devtools.py14
1 files changed, 6 insertions, 8 deletions
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