зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1597225 [wpt PR 20296] - Make webdriver importable in Python 3, a=testonly
Automatic update from web-platform-tests Make webdriver importable in Python 3 -- wpt-commits: 24120ad31acd0c61d8dff1e483874b4c621d748c wpt-pr: 20296
This commit is contained in:
Родитель
4513253ae2
Коммит
8101af7970
|
@ -1,6 +1,6 @@
|
|||
# flake8: noqa
|
||||
|
||||
from client import (
|
||||
from .client import (
|
||||
Cookies,
|
||||
Element,
|
||||
Find,
|
||||
|
@ -8,7 +8,7 @@ from client import (
|
|||
Session,
|
||||
Timeouts,
|
||||
Window)
|
||||
from error import (
|
||||
from .error import (
|
||||
ElementNotSelectableException,
|
||||
ElementNotVisibleException,
|
||||
InvalidArgumentException,
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
import urlparse
|
||||
|
||||
import error
|
||||
import protocol
|
||||
import transport
|
||||
from . import error
|
||||
from . import protocol
|
||||
from . import transport
|
||||
|
||||
from six import string_types
|
||||
from six.moves.urllib import parse as urlparse
|
||||
|
||||
|
||||
def command(func):
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import collections
|
||||
import json
|
||||
|
||||
from six import itervalues
|
||||
|
||||
class WebDriverException(Exception):
|
||||
http_status = None
|
||||
|
@ -205,6 +206,6 @@ def get(error_code):
|
|||
|
||||
|
||||
_errors = collections.defaultdict()
|
||||
for item in locals().values():
|
||||
for item in list(itervalues(locals())):
|
||||
if type(item) == type and issubclass(item, WebDriverException):
|
||||
_errors[item.status_code] = item
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import httplib
|
||||
import json
|
||||
import select
|
||||
import urlparse
|
||||
from six.moves.urllib import parse as urlparse
|
||||
from six.moves import http_client as httplib
|
||||
|
||||
import error
|
||||
from . import error
|
||||
|
||||
from six import text_type
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче