summaryrefslogtreecommitdiffstats
path: root/Objects/stringlib/eq.h
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2013-06-16 22:05:54 (GMT)
committerBrett Cannon <brett@python.org>2013-06-16 22:05:54 (GMT)
commitf4375ef4d458bf24610ffef591f8197a3dbf0b35 (patch)
tree5ee2029fa137cf28d55afc5324caa9e57b209ac0 /Objects/stringlib/eq.h
parent01b0475b08ab694e2eb0610d03b629afe22bb2a1 (diff)
downloadcpython-f4375ef4d458bf24610ffef591f8197a3dbf0b35.zip
cpython-f4375ef4d458bf24610ffef591f8197a3dbf0b35.tar.gz
cpython-f4375ef4d458bf24610ffef591f8197a3dbf0b35.tar.bz2
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 'Objects/stringlib/eq.h')
0 files changed, 0 insertions, 0 deletions