diff options
| author | hodbn <hodbn@users.noreply.github.com> | 2020-06-09 12:07:25 -0700 |
|---|---|---|
| committer | hodbn <hodbn@users.noreply.github.com> | 2020-06-09 12:07:25 -0700 |
| commit | 4570cebd0d34adb764f0fba7dc276b61afb9eff4 (patch) | |
| tree | 6dcf3ae4c106be17f70f001f2151efe45c82f2e4 /src/urllib3 | |
| parent | d2c60287a95133ebae74de4e0020e86c71b178ab (diff) | |
| download | urllib3-4570cebd0d34adb764f0fba7dc276b61afb9eff4.tar.gz | |
Fix coverage, InvalidChunkLength is chunked and has no expected length
Diffstat (limited to 'src/urllib3')
| -rw-r--r-- | src/urllib3/exceptions.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/urllib3/exceptions.py b/src/urllib3/exceptions.py index 0d15da0c..957fb966 100644 --- a/src/urllib3/exceptions.py +++ b/src/urllib3/exceptions.py @@ -242,14 +242,9 @@ class InvalidChunkLength(HTTPError, httplib_IncompleteRead): self.length = length def __repr__(self): - if self.expected is not None: - e = ", %i more expected" % self.expected - else: - e = "" - return "InvalidChunkLength(got length %r, %i bytes read%s)" % ( + return "InvalidChunkLength(got length %r, %i bytes read)" % ( self.length, self.partial, - e, ) |
