Simplify __all__ in multiprocessing (GH-6856)
diff --git a/Lib/multiprocessing/context.py b/Lib/multiprocessing/context.py
index c98ee43..871746b 100644
--- a/Lib/multiprocessing/context.py
+++ b/Lib/multiprocessing/context.py
@@ -5,7 +5,7 @@
from . import process
from . import reduction
-__all__ = [] # things are copied from here to __init__.py
+__all__ = ()
#
# Exceptions
@@ -24,7 +24,7 @@
pass
#
-# Base type for contexts
+# Base type for contexts. Bound methods of an instance of this type are included in __all__ of __init__.py
#
class BaseContext(object):
@@ -261,8 +261,6 @@
else:
return ['fork', 'spawn']
-DefaultContext.__all__ = [x for x in dir(DefaultContext) if x[0] != '_']
-
#
# Context types for fixed start method
#