jenkins-bot submitted this change.
[bugfix] T334378 seems solved with Python 3.12.beta
Bug: T334378
Change-Id: Ib345d40a981da073940fe6e7412e251743df4006
---
M pywikibot/site/_basesite.py
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/pywikibot/site/_basesite.py b/pywikibot/site/_basesite.py
index a5f92df..97c8d9b 100644
--- a/pywikibot/site/_basesite.py
+++ b/pywikibot/site/_basesite.py
@@ -6,7 +6,6 @@
#
import functools
import re
-import sys
import threading
from typing import Optional
from warnings import warn
@@ -31,9 +30,6 @@
)
-PYTHON_312A7 = sys.version.split()[0] == '3.12.0a7' # T334378 workaround
-
-
class BaseSite(ComparableMixin):
"""Site methods that are independent of the communication interface."""
@@ -190,8 +186,6 @@
def __getattr__(self, attr):
"""Delegate undefined methods calls to the Family object."""
- if PYTHON_312A7: # T334378 workaround
- print(end='') # noqa: T001, T201
try:
method = getattr(self.family, attr)
if not callable(method):
To view, visit change 924520. To unsubscribe, or for help writing mail filters, visit settings.