Skip to content

Commit

Permalink
Remove qt6.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewsanchez committed Jul 6, 2022
1 parent f7d58f2 commit caf6db7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytest_anki/_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
)

from aqt.qt import QThreadPool, QTimer
import PyQt6.QtWebEngineWidgets
from aqt.qt import QWebEngineProfile
from selenium import webdriver

from ._addons import ConfigPaths, create_addon_config
Expand Down Expand Up @@ -129,7 +129,7 @@ def web_debugging_port(self) -> Optional[int]:

@property
def chromium_version(self) -> str:
user_agent = PyQt6.QtWebEngineWidgets.QWebEngineProfile.defaultProfile().httpUserAgent()
user_agent = QWebEngineProfile.defaultProfile().httpUserAgent()
match = re.match(r".*Chrome/(.+)\s+.*", user_agent)
if match is None:
raise AnkiSessionError("Could not determine Chromium version")
Expand Down

0 comments on commit caf6db7

Please sign in to comment.