Python 2.5 Fixes.

This commit is contained in:
Kenneth Reitz
2011-02-18 04:39:53 -05:00
parent 952970f403
commit 6bde955170
2 changed files with 8 additions and 5 deletions
+5 -2
View File
@@ -1,4 +1,7 @@
# -*- coding: utf-8 -*-
from . import packages
from .core import *
import packages
from core import *
+3 -3
View File
@@ -177,7 +177,7 @@ class Request(object):
self._build_response(resp)
self.response.ok = True
except urllib2.HTTPError as why:
except urllib2.HTTPError, why:
self._build_response(why)
self.response.error = why
@@ -209,7 +209,7 @@ class Request(object):
self._build_response(resp)
self.response.ok = True
except urllib2.HTTPError as why:
except urllib2.HTTPError, why:
self._build_response(why)
self.response.error = why
@@ -242,7 +242,7 @@ class Request(object):
self._build_response(resp)
self.response.ok = True
except urllib2.HTTPError as why:
except urllib2.HTTPError, why:
self._build_response(why)
self.response.error = why