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/json/scanner.py | |
parent | 43ba8861e0ad044efafa46a7cc04e12ac5df640e (diff) | |
download | cpython-git-5affd23e6f42125998724787025080a24839266e.tar.gz |
bpo-29762: More use "raise from None". (#569)
This hides unwanted implementation details from tracebacks.
Diffstat (limited to 'Lib/json/scanner.py')
-rw-r--r-- | Lib/json/scanner.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/json/scanner.py b/Lib/json/scanner.py index 86426cde1a..c451ebab58 100644 --- a/Lib/json/scanner.py +++ b/Lib/json/scanner.py @@ -29,7 +29,7 @@ def py_make_scanner(context): try: nextchar = string[idx] except IndexError: - raise StopIteration(idx) + raise StopIteration(idx) from None if nextchar == '"': return parse_string(string, idx + 1, strict) |