move core imports into __init__.py
authorKenneth Reitz <me@kennethreitz.com>
Wed, 19 Oct 2011 20:47:46 +0000 (16:47 -0400)
committerKenneth Reitz <me@kennethreitz.com>
Wed, 19 Oct 2011 20:47:46 +0000 (16:47 -0400)
because you can't splat import relatively. dumb.

requests/__init__.py
requests/core.py [deleted file]

index 15a5050..e75db8d 100644 (file)
@@ -1,4 +1,31 @@
 # -*- coding: utf-8 -*-
 
-from core import *
-from core import __version__
+"""
+requests.core
+~~~~~~~~~~~~~
+
+This module implements the main Requests system.
+
+:copyright: (c) 2011 by Kenneth Reitz.
+:license: ISC, see LICENSE for more details.
+
+"""
+
+__title__ = 'requests'
+__version__ = '0.6.6'
+__build__ = 0x000606
+__author__ = 'Kenneth Reitz'
+__license__ = 'ISC'
+__copyright__ = 'Copyright 2011 Kenneth Reitz'
+
+
+from . import utils
+from .models import HTTPError, Request, Response
+from .api import request, get, head, post, patch, put, delete
+from .sessions import session
+from .status_codes import codes
+from .config import settings
+from .exceptions import (
+    RequestException, AuthenticationError, Timeout, URLRequired,
+    InvalidMethod, TooManyRedirects
+)
diff --git a/requests/core.py b/requests/core.py
deleted file mode 100644 (file)
index e75db8d..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-# -*- coding: utf-8 -*-
-
-"""
-requests.core
-~~~~~~~~~~~~~
-
-This module implements the main Requests system.
-
-:copyright: (c) 2011 by Kenneth Reitz.
-:license: ISC, see LICENSE for more details.
-
-"""
-
-__title__ = 'requests'
-__version__ = '0.6.6'
-__build__ = 0x000606
-__author__ = 'Kenneth Reitz'
-__license__ = 'ISC'
-__copyright__ = 'Copyright 2011 Kenneth Reitz'
-
-
-from . import utils
-from .models import HTTPError, Request, Response
-from .api import request, get, head, post, patch, put, delete
-from .sessions import session
-from .status_codes import codes
-from .config import settings
-from .exceptions import (
-    RequestException, AuthenticationError, Timeout, URLRequired,
-    InvalidMethod, TooManyRedirects
-)