[New-bugs-announce] [issue19151] Docstring and WindowsRegistryFinder wrong relative to importlib._bootstrap._get_supported_file_loaders()

Eric Snow report at bugs.python.org
Thu Oct 3 08:15:48 CEST 2013


New submission from Eric Snow:

Changeset 1db6553f3f8c for issue #15576 changed importlib._bootstrap._get_supported_file_loaders() to return a list of 2-tuples instead of 3-tuples.  However, the docstring for the function was not updated to reflect that.  More importantly, WindowsRegistryFinder.find_module() still expects 3-tuples.

The fix is relatively trivial (patch attached).  However, I'm not aware of any reports of problems related to what should be a very broken WindowsRegistryFinder.  So I just wanted to double-check that I haven't missed something here.  Undoubtedly the code simply hasn't gotten a lot of exposure since the patch (Aug. 2012).

----------
assignee: eric.snow
components: Interpreter Core
files: fix-get-supported-file-loaders.diff
keywords: patch
messages: 198883
nosy: brett.cannon, eric.snow
priority: normal
severity: normal
stage: commit review
status: open
title: Docstring and WindowsRegistryFinder wrong relative to importlib._bootstrap._get_supported_file_loaders()
type: behavior
versions: Python 3.3, Python 3.4
Added file: http://bugs.python.org/file31951/fix-get-supported-file-loaders.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19151>
_______________________________________


More information about the New-bugs-announce mailing list