diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-04-05 09:37:24 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-05 09:37:24 +0300 |
commit | 5affd23e6f42125998724787025080a24839266e (patch) | |
tree | 8b7ca82362e78a32805b117d574082d512251d3c /Lib/sysconfig.py | |
parent | bpo-29549: Fixes docstring for str.index (#256) (diff) | |
download | cpython-5affd23e6f42125998724787025080a24839266e.tar.gz cpython-5affd23e6f42125998724787025080a24839266e.tar.bz2 cpython-5affd23e6f42125998724787025080a24839266e.zip |
bpo-29762: More use "raise from None". (#569)
This hides unwanted implementation details from tracebacks.
Diffstat (limited to 'Lib/sysconfig.py')
-rw-r--r-- | Lib/sysconfig.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py index 9314e71a2f8..ed0a34d662f 100644 --- a/Lib/sysconfig.py +++ b/Lib/sysconfig.py @@ -147,7 +147,7 @@ def _subst_vars(s, local_vars): try: return s.format(**os.environ) except KeyError as var: - raise AttributeError('{%s}' % var) + raise AttributeError('{%s}' % var) from None def _extend_dict(target_dict, other_dict): target_keys = target_dict.keys() |