Skip to content
Myr

Python 2.5 Fixes.

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 952970f · Browse files · 2 files+8 added−5 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+8 added−5 removed

  • other:+8 added−5 removed

2 files+8 added−5 removed

modified:requests/__init__.py+5 added-2 removed
1# -*- coding: utf-8 -*-23from . import packages4from .core import *3import packages4from core import *567
modified:requests/core.py+3 added-3 removed
175 unmodified lines
176 resp = opener(req)177 self._build_response(resp)178 self.response.ok = True179180 except urllib2.HTTPError as why:180 except urllib2.HTTPError, why:181 self._build_response(why)182 self.response.error = why183184
23 unmodified lines
208209 self._build_response(resp)210 self.response.ok = True211212 except urllib2.HTTPError as why:212 except urllib2.HTTPError, why:213 self._build_response(why)214 self.response.error = why215216
24 unmodified lines
241242 self._build_response(resp)243 self.response.ok = True244245 except urllib2.HTTPError as why:245 except urllib2.HTTPError, why:246 self._build_response(why)247 self.response.error = why248 249 self.sent = self.response.ok
185 unmodified lines