Skip to content
Myr

Added Megan Emurayama to authors

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 9b0bb87 · Browse files · 2 files+9 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+9 added−6 removed

  • other:+9 added−6 removed

2 files+9 added−6 removed

modified:requests/core.py+8 added-6 removed
63 unmodified lines
6465 def __init__(self, url=None, headers=dict(), files=None, method=None,66 data=dict(), auth=None, cookiejar=None, timeout=None):6768 socket.setdefaulttimeout(timeout)6970 self.url = url71 self.headers = headers72 self.files = files73 self.method = method74 self.data = {}7574 socket.setdefaulttimeout(timeout)7576 # self.data = {}77 if hasattr(data, 'items'):78 for (k, v) in data.items():79 self.data.update({80 k.encode('utf-8') if isinstance(k, unicode) else k:81 v.encode('utf-8') if isinstance(v, unicode) else v82 })8382 # url encode data if it's a dict84 # url encode data if it's a dict85 if hasattr(data, 'items'):86 self._enc_data = urllib.urlencode(self.data)87 else:85 self._enc_data = self.data88 self._enc_data = data899091 self.response = Response()9293 if isinstance(auth, (list, tuple)):94 auth = AuthObject(*auth)
118 unmodified lines
213 req.headers.update(self.headers)214215 if not self.sent or anyway:216213214217 try:218 opener = self._get_opener()219 resp = opener(req)220
341 unmodified lines
modified:AUTHORS+1 added
16 unmodified lines
17- Justin Murphy18- Rob Madole19- Aram Dulyan20- Johannes Gorset21- 村山めがね (Megan Emurayama)