Skip to content
Myr

Fixes python3 compatibility issue

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

authored by Mher Movsisyan · committed by Mher Movsisyan · parent b8561cd · Browse files · 1 file+1 added−2 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+1 added−2 removed

  • other:+1 added−2 removed

1 file+1 added−2 removed

modified:requests/models.py+1 added-2 removed
7 unmodified lines
8"""910import json11import os12import string12from datetime import datetime1314from .hooks import dispatch_hook, HOOKS15from .structures import CaseInsensitiveDict
504 unmodified lines
520 if (content_type) and (not 'content-type' in self.headers):521 self.headers['Content-Type'] = content_type522523 _p = urlparse(url)525 no_proxy = filter(string.strip, self.proxies.get('no', '').split(','))524 no_proxy = filter(lambda x:x.strip(), self.proxies.get('no', '').split(','))525 proxy = self.proxies.get(_p.scheme)526527 if proxy and not any(map(_p.netloc.endswith, no_proxy)):528 conn = poolmanager.proxy_from_url(proxy)
308 unmodified lines