Skip to content

Commit

Permalink
[py] Remove assertion for python version check (#10815)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsfehler authored Jul 5, 2022
1 parent 943081b commit 5532a8d
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 5532a8d

Please sign in to comment.