New submission from Brett Cannon:

I'm trying to remove all uses of imp.find_module()/load_module() and 
multiprocessing seems to have a single use of both purely for (re)loading a 
module. The attached patch moves over to importlib.find_loader() and subsequent 
load_module() call to match the semantics of imp.find_module()/load_module(). 
If a guaranteed reload is not necessary then importlib.import_module() is a 
single-line change.

I ran the test suite, but there don't seem to be any explicit tests for this 
chunk of code (or am I missing something?).

----------
assignee: sbt
components: Library (Lib)
files: remove_imp.find_module.diff
keywords: patch
messages: 183177
nosy: brett.cannon, sbt
priority: normal
severity: normal
stage: patch review
status: open
title: Stop using imp.find_module() in multiprocessing
versions: Python 3.4
Added file: http://bugs.python.org/file29270/remove_imp.find_module.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17314>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to