move core imports into __init__.py

because you can't splat import relatively. dumb.
This commit is contained in:
Kenneth Reitz
2011-10-19 16:47:46 -04:00
parent 98c5ded4f3
commit 6dc664caaf
2 changed files with 29 additions and 33 deletions
+29 -2
View 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
)
-31
View File
@@ -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
)