Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3e952d5

Browse files
committed
Issue #20633: Replace relative import by absolute import.
1 parent 56d3a03 commit 3e952d5

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Lib/multiprocessing/forking.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def poll(self, flag=os.WNOHANG):
132132
def wait(self, timeout=None):
133133
if self.returncode is None:
134134
if timeout is not None:
135-
from .connection import wait
135+
from multiprocessing.connection import wait
136136
if not wait([self.sentinel], timeout):
137137
return None
138138
# This shouldn't block if wait() returned successfully.

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Core and Builtins
1313
Library
1414
-------
1515

16+
- Issue #20633: Replace relative import by absolute import.
17+
1618
- Issue #20875: Prevent possible gzip "'read' is not defined" NameError.
1719
Patch by Claudiu Popa.
1820

0 commit comments

Comments
 (0)