summaryrefslogtreecommitdiff
path: root/Lib/multiprocessing/context.py
diff options
context:
space:
mode:
authorDerek B. Kim <bluewhale8202@gmail.com>2018-07-11 19:22:28 +0900
committerINADA Naoki <methane@users.noreply.github.com>2018-07-11 19:22:28 +0900
commitc40278ef95121f04745d3552fe14376faf468329 (patch)
tree8de4f74ee331a91b0c9bdaadee315bd42567707e /Lib/multiprocessing/context.py
parent5e5bbbec467a1569c914a048a94e7597528f92cf (diff)
downloadcpython-git-c40278ef95121f04745d3552fe14376faf468329.tar.gz
Simplify __all__ in multiprocessing (GH-6856)
Diffstat (limited to 'Lib/multiprocessing/context.py')
-rw-r--r--Lib/multiprocessing/context.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/multiprocessing/context.py b/Lib/multiprocessing/context.py
index c98ee43424..871746b1a0 100644
--- a/Lib/multiprocessing/context.py
+++ b/Lib/multiprocessing/context.py
@@ -5,7 +5,7 @@ import threading
from . import process
from . import reduction
-__all__ = [] # things are copied from here to __init__.py
+__all__ = ()
#
# Exceptions
@@ -24,7 +24,7 @@ class AuthenticationError(ProcessError):
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 @@ class DefaultContext(BaseContext):
else:
return ['fork', 'spawn']
-DefaultContext.__all__ = [x for x in dir(DefaultContext) if x[0] != '_']
-
#
# Context types for fixed start method
#