Skip to content

Commit d00b182

Browse files
committed
Revert "Patch PyQt6 QUrl flag behavior for Python 3.11"
This reverts commit 14c1593. Fixed in Python 3.11b2: python/cpython#93302
1 parent a609823 commit d00b182

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

qutebrowser/misc/earlyinit.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
hunter = None
3131

3232
import sys
33-
import enum
3433
import faulthandler
3534
import traceback
3635
import signal
@@ -267,13 +266,6 @@ def configure_pyqt():
267266
# FIXME:qt6 solve this in qutebrowser/qt/sip.py equivalent?
268267
pass
269268

270-
# WORKAROUND for
271-
# https://www.riverbankcomputing.com/pipermail/pyqt/2022-May/044668.html
272-
if hasattr(enum, "FlagBoundary"): # Python 3.11
273-
from qutebrowser.qt.core import QUrl
274-
# pylint: disable-next=protected-access
275-
QUrl.UrlFormattingOption._boundary_ = enum.FlagBoundary.KEEP
276-
277269

278270
def init_log(args):
279271
"""Initialize logging.

scripts/dev/run_vulture.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ def whitelist_generator(): # noqa: C901
9191
yield 'PaintContext.clip' # from completiondelegate.py
9292
yield 'logging.LogRecord.log_color' # from logging.py
9393
yield 'scripts.utils.use_color' # from asciidoc2html.py
94-
yield 'QUrl.UrlFormattingOption._boundary_'
9594
for attr in ['pyeval_output', 'log_clipboard', 'fake_clipboard']:
9695
yield 'qutebrowser.misc.utilcmds.' + attr
9796

0 commit comments

Comments
 (0)