Python 2.5 Fixes.
authorKenneth Reitz <me@kennethreitz.com>
Fri, 18 Feb 2011 09:39:53 +0000 (04:39 -0500)
committerKenneth Reitz <me@kennethreitz.com>
Fri, 18 Feb 2011 09:39:53 +0000 (04:39 -0500)
requests/__init__.py
requests/core.py

index b6e3841f06aaca4397509510c16df7d646040973..5c84046b5b9c8767c9192a99941b01be0ad18e1d 100644 (file)
@@ -1,4 +1,7 @@
 # -*- coding: utf-8 -*-
 
-from . import packages
-from .core import *
+import packages
+from core import *
+
+
+
index cd2e764c3de6f515dbf2f1c130efe7b2e6b00d9a..1de47c10d27536da25fd2b47bd07bc9ea336d9dc 100644 (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