8000 Merge pull request #721 from jayvdb/py3-unindexed-parameters · python-telegram-bot/urllib3@e1581b6 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on May 21, 2023. It is now read-only.

Commit e1581b6

Browse files
committed
Merge pull request urllib3#721 from jayvdb/py3-unindexed-parameters
Python 2.6 does not support unindexed parameters
2 parents cc079cd + 746d231 commit e1581b6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

urllib3/_collections.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def extend(self, *args, **kwargs):
234234
"""
235235
if len(args) > 1:
236236
raise TypeError("extend() takes at most 1 positional "
237-
"arguments ({} given)".format(len(args)))
237+
"arguments ({0} given)".format(len(args)))
238238
other = args[0] if len(args) >= 1 else ()
239239

240240
if isinstance(other, HTTPHeaderDict):

urllib3/util/response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def assert_header_parsing(headers):
4444
# This will fail silently if we pass in the wrong kind of parameter.
4545
# To make debugging easier add an explicit check.
4646
if not isinstance(headers, httplib.HTTPMessage):
47-
raise TypeError('expected httplib.Message, got {}.'.format(
47+
raise TypeError('expected httplib.Message, got {0}.'.format(
4848
type(headers)))
4949

5050
defects = getattr(headers, 'defects', None)

0 commit comments

Comments
 (0)
0