Skip to content

Commit 945a7ce

Browse files
committed
Removed dead code.
1 parent a756366 commit 945a7ce

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎Lib/urllib/request.py‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -924,8 +924,6 @@ def _prepare_auth_retry_body(request):
924924
"""Allow authentication retries to resend a consumed file-like object."""
925925
data = request.data
926926
if data is None or not hasattr(data, 'read'):
927-
return
928-
if isinstance(data, _AuthBodyReiterator):
929927
return None
930928
if not getattr(data, 'seekable', lambda: hasattr(data, 'seek'))():
931929
raise ValueError("seekable file-like Request.data is required when "

0 commit comments

Comments
 (0)