From 34ca692c9cee4b9d146b8cd276d00ca4a7df8cb1 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Wed, 16 Feb 2011 12:47:58 -0500 Subject: [PATCH] from __future__ import absolute_imports --- requests/core.py | 3 ++- requests/packages/__init__.py | 2 ++ requests/packages/poster/__init__.py | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/requests/core.py b/requests/core.py index 05b7619..59d778b 100644 --- a/requests/core.py +++ b/requests/core.py @@ -9,10 +9,11 @@ :copyright: (c) 2011 by Kenneth Reitz. :license: ISC, see LICENSE for more details. """ - +from __future__ import absolute_import import urllib import urllib2 + from urllib2 import HTTPError try: diff --git a/requests/packages/__init__.py b/requests/packages/__init__.py index 5d44dd4..ab2669e 100644 --- a/requests/packages/__init__.py +++ b/requests/packages/__init__.py @@ -1 +1,3 @@ +from __future__ import absolute_import + from . import poster diff --git a/requests/packages/poster/__init__.py b/requests/packages/poster/__init__.py index 8f26770..6e216fc 100644 --- a/requests/packages/poster/__init__.py +++ b/requests/packages/poster/__init__.py @@ -26,6 +26,8 @@ New releases of poster will always have a version number that compares greater than an older version of poster. New in version 0.6.""" +from __future__ import absolute_import + from . import streaminghttp from . import encode -- 2.7.4