Sun, 16 May 2021 20:07:24 +0200
Replaced all imports of PyQt5 to PyQt6 and started to replace code using obsoleted methods and adapt to the PyQt6 enum usage.
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright (c) 2018 - 2021 Detlev Offenbach <detlev@die-offenbachs.de> # """ Script to determine the supported web browser variant. It looks for QtWebEngine. It reports the variant found or the string 'None' if it is absent. """ import sys import contextlib variant = "None" with contextlib.suppress(ImportError): from PyQt6 import QtWebEngineWidgets # __IGNORE_WARNING__ variant = "QtWebEngine" print(variant) # __IGNORE_WARNING_M801__ sys.exit(0)