Skip to content

Commit 054a0f6

Browse files
committed
Add simple optimization
1 parent 2cb70cc commit 054a0f6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

aiohttp/client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,7 @@ def _request(self, method, url, *,
152152

153153
redirects = 0
154154
history = []
155-
if not isinstance(method, upstr):
156-
method = upstr(method)
155+
method = upstr(method)
157156

158157
# Merge with default headers and transform to CIMultiDict
159158
headers = self._prepare_headers(headers)

0 commit comments

Comments
 (0)