summaryrefslogtreecommitdiff
path: root/Lib/chunk.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-04-05 09:37:24 +0300
committerGitHub <noreply@github.com>2017-04-05 09:37:24 +0300
commit5affd23e6f42125998724787025080a24839266e (patch)
tree8b7ca82362e78a32805b117d574082d512251d3c /Lib/chunk.py
parent43ba8861e0ad044efafa46a7cc04e12ac5df640e (diff)
downloadcpython-git-5affd23e6f42125998724787025080a24839266e.tar.gz
bpo-29762: More use "raise from None". (#569)
This hides unwanted implementation details from tracebacks.
Diffstat (limited to 'Lib/chunk.py')
-rw-r--r--Lib/chunk.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/chunk.py b/Lib/chunk.py
index d94dd39807..870c39fe7f 100644
--- a/Lib/chunk.py
+++ b/Lib/chunk.py
@@ -64,7 +64,7 @@ class Chunk:
try:
self.chunksize = struct.unpack_from(strflag+'L', file.read(4))[0]
except struct.error:
- raise EOFError
+ raise EOFError from None
if inclheader:
self.chunksize = self.chunksize - 8 # subtract header
self.size_read = 0