[New-bugs-announce] [issue10817] urllib.request.urlretrieve never raises ContentTooShortError if no reporthook

Robert Cheng report at bugs.python.org
Mon Jan 3 16:50:04 CET 2011


New submission from Robert Cheng <robert.h.cheng at gmail.com>:

When reporthook is None, size variable is not computed and defaulted to -1. Thus, without reporthook, ContentTooShortError is not raised even when Content-Length header is supplied and download size is less than expected amount, contrary to the documentation.

----------
components: Library (Lib)
messages: 125186
nosy: RC
priority: normal
severity: normal
status: open
title: urllib.request.urlretrieve never raises ContentTooShortError if no reporthook
type: behavior
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10817>
_______________________________________


More information about the New-bugs-announce mailing list