Skip to content
Myr

slight refactor

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 86fb0cb · Browse files · 1 file+3 added−3 removed
This commit

State

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

Diff stats

1 file+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:requests/core.py+3 added-3 removed
67 unmodified lines
68 self.url = url69 self.headers = headers70 self.files = files71 self.method = method72 7273 self.data = {}74 for (k, v) in data.items():75 self.data.update({76 k.encode('utf-8') if k.__class__ is unicode else k: \77 v.encode('utf-8') if v.__class__ is unicode else v76 k.encode('utf-8') if isinstance(k, unicode) else k:77 v.encode('utf-8') if isinstance(v, unicode) else v78 })7980 socket.setdefaulttimeout(timeout)81
479 unmodified lines