Skip to content

Commit

Permalink
[py] Remove assertion for python version check
Browse files Browse the repository at this point in the history
  • Loading branch information
jsfehler committed Jun 25, 2022
1 parent 2fbfc62 commit 12aecd1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
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)
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

0 comments on commit 12aecd1

Please sign in to comment.