diff options
Diffstat (limited to 'crocoite/browser.py')
-rw-r--r-- | crocoite/browser.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/crocoite/browser.py b/crocoite/browser.py index 3b9f7ab..1c09598 100644 --- a/crocoite/browser.py +++ b/crocoite/browser.py @@ -27,6 +27,7 @@ from urllib.parse import urlsplit from base64 import b64decode from collections import deque from threading import Event +from http.server import BaseHTTPRequestHandler import pychrome @@ -323,14 +324,10 @@ class SiteLoader: import subprocess, os, time from tempfile import mkdtemp -import socket, shutil +import shutil class ChromeService: - """ - Start Chrome with socket activation (i.e. pass listening socket). Polling - is not required with this method, since reads will block until Chrome is - ready. - """ + """ Start Google Chrome listening on a random port """ __slots__ = ('binary', 'windowSize', 'p', 'userDataDir') |