Revert "Patch PyQt6 QUrl flag behavior for Python 3.11"
This reverts commit 14c1593de2abd9f24a223805a4740d8d9fd93622. Fixed in Python 3.11b2: https://github.com/python/cpython/pull/93302
This commit is contained in:
parent
9e99400d8f
commit
0dbad34b39
|
|
@ -30,7 +30,6 @@ except ImportError:
|
|||
hunter = None
|
||||
|
||||
import sys
|
||||
import enum
|
||||
import faulthandler
|
||||
import traceback
|
||||
import signal
|
||||
|
|
@ -271,13 +270,6 @@ def configure_pyqt():
|
|||
# FIXME:qt6 solve this in qutebrowser/qt/sip.py equivalent?
|
||||
pass
|
||||
|
||||
# WORKAROUND for
|
||||
# https://www.riverbankcomputing.com/pipermail/pyqt/2022-May/044668.html
|
||||
if hasattr(enum, "FlagBoundary"): # Python 3.11
|
||||
from qutebrowser.qt.core import QUrl
|
||||
# pylint: disable-next=protected-access
|
||||
QUrl.UrlFormattingOption._boundary_ = enum.FlagBoundary.KEEP
|
||||
|
||||
|
||||
def init_log(args):
|
||||
"""Initialize logging.
|
||||
|
|
|
|||
|
|
@ -91,7 +91,6 @@ def whitelist_generator(): # noqa: C901
|
|||
yield 'PaintContext.clip' # from completiondelegate.py
|
||||
yield 'logging.LogRecord.log_color' # from logging.py
|
||||
yield 'scripts.utils.use_color' # from asciidoc2html.py
|
||||
yield 'QUrl.UrlFormattingOption._boundary_'
|
||||
for attr in ['pyeval_output', 'log_clipboard', 'fake_clipboard']:
|
||||
yield 'qutebrowser.misc.utilcmds.' + attr
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue