From ea3eb88bcaef775c8f2bbe310053f9990a8c9ea7 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Thu, 17 May 2012 18:55:59 +0200 Subject: Issue #9260: A finer-grained import lock. Most of the import sequence now uses per-module locks rather than the global import lock, eliminating well-known issues with threads and imports. --- Lib/token.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/token.py') diff --git a/Lib/token.py b/Lib/token.py index 6b5320db8c..31fae0a078 100755 --- a/Lib/token.py +++ b/Lib/token.py @@ -70,7 +70,7 @@ NT_OFFSET = 256 tok_name = {value: name for name, value in globals().items() - if isinstance(value, int)} + if isinstance(value, int) and not name.startswith('_')} __all__.extend(tok_name.values()) def ISTERMINAL(x): -- cgit v1.2.1