From ceb0a9446728a7095e2f4ff37159d29cc55f1cad Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Sat, 16 Jan 2021 13:17:48 +0000 Subject: [PATCH] Explain why the Python 2.x thread module is blacklisted Based on the original commit I believe it is only an optimization. However I could be wrong. I intend to request review of this part. --- mitogen/core.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mitogen/core.py b/mitogen/core.py index 4dd44925..4dcc3d77 100644 --- a/mitogen/core.py +++ b/mitogen/core.py @@ -1269,6 +1269,9 @@ class Importer(object): # a negative round-trip. 'builtins', '__builtin__', + + # Python 2.x module that was renamed to _thread in 3.x. + # This entry avoids a roundtrip on 2.x -> 3.x. 'thread', # org.python.core imported by copy, pickle, xml.sax; breaks Jython, but