summaryrefslogtreecommitdiff
path: root/Lib/importlib/util.py
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2013-06-16 18:05:54 -0400
committerBrett Cannon <brett@python.org>2013-06-16 18:05:54 -0400
commitf4375ef4d458bf24610ffef591f8197a3dbf0b35 (patch)
tree5ee2029fa137cf28d55afc5324caa9e57b209ac0 /Lib/importlib/util.py
parent01b0475b08ab694e2eb0610d03b629afe22bb2a1 (diff)
downloadcpython-git-f4375ef4d458bf24610ffef591f8197a3dbf0b35.tar.gz
importlib.abc.SourceLoader.get_source() was re-raising SyntaxError and
UnicodeDecodeError as ImportError. That was over-reaching the point of raising ImportError in get_source() (which is to signal the source code was not found when it should have). Conflating the two exceptions with ImportError could lead to masking errors with the source which should be known outside of whether there was an error simply getting the source to begin with.
Diffstat (limited to 'Lib/importlib/util.py')
0 files changed, 0 insertions, 0 deletions