Skip to content

Commit

Permalink
Remove unnecessary imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunu committed Jul 22, 2015
1 parent c7e7df8 commit 526c775
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 11 deletions.
4 changes: 2 additions & 2 deletions splash/qtrender_lua.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import sys

import lupa
import six

from splash.browser_tab import JsError
from splash.lua_runner import (
Expand All @@ -29,9 +30,8 @@
create_proxy
)
from splash.lua_runtime import SplashLuaRuntime
from splash.compat import _PY3

if _PY3:
if six.PY3:
basestring = (str, bytes)


Expand Down
1 change: 0 additions & 1 deletion splash/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,6 @@ def render_GET(self, request):
url = params['url']
if not url.lower().startswith('http'):
url = 'http://' + url
url = url.encode('utf8')
params = {k:v for k,v in params.items() if v is not None}

request.addCookie('phaseInterval', 120000) # disable "phases" HAR Viewer feature
Expand Down
3 changes: 0 additions & 3 deletions splash/tests/mockserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
from twisted.internet import reactor, ssl
from twisted.internet.task import deferLater

from splash.compat import _PY3
from splash.utils import bytes_to_unicode


_REQUIRED = object()

Expand Down
3 changes: 1 addition & 2 deletions splash/tests/test_jsonpost.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@
import six

from . import test_render, test_har, test_request_filters, test_runjs
from ..compat import _PY3
from ..utils import bytes_to_unicode

if _PY3:
if six.PY3:
basestring = (str, bytes)


Expand Down
5 changes: 2 additions & 3 deletions splash/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@
import resource
from collections import defaultdict
import psutil
import six

from splash.compat import _PY3

if _PY3:
if six.PY3:
basestring = (str, bytes)


Expand Down

0 comments on commit 526c775

Please sign in to comment.