Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[py] Remove assertion for python version check #10815

Merged
merged 1 commit into from Jul 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 0 additions & 4 deletions py/selenium/webdriver/common/log.py
Expand Up @@ -17,7 +17,6 @@

import json
import pkgutil
import sys

from contextlib import asynccontextmanager
from importlib import import_module
Expand All @@ -43,7 +42,6 @@ class Log():
"""

def __init__(self, driver, bidi_session) -> None:
assert sys.version_info >= (3, 7)
titusfortner marked this conversation as resolved.
Show resolved Hide resolved
self.driver = driver
self.session = bidi_session.session
self.cdp = bidi_session.cdp
Expand All @@ -70,8 +68,6 @@ async def mutation_events(self) -> dict:

"""

assert sys.version_info >= (3, 7)

page = self.cdp.get_session_context('page.enable')
await page.execute(self.devtools.page.enable())
runtime = self.cdp.get_session_context('runtime.enable')
Expand Down
2 changes: 0 additions & 2 deletions py/selenium/webdriver/remote/webdriver.py
Expand Up @@ -24,7 +24,6 @@

import pkgutil

import sys
from typing import Dict, List, Optional, Union

import warnings
Expand Down Expand Up @@ -1168,7 +1167,6 @@ def get_log(self, log_type):

@asynccontextmanager
async def bidi_connection(self):
assert sys.version_info >= (3, 7)
global cdp
import_cdp()
if self.caps.get("se:cdp"):
Expand Down