Skip to content
Myr

move core imports into __init__.py

Before adoption: this commit came in with the history the project adopted, so no landing records it.

because you can't splat import relatively. dumb.

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 98c5ded · Browse files · 2 files+29 added−33 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+29 added−33 removed

  • other:+29 added−33 removed

2 files+29 added−33 removed

modified:requests/__init__.py+29 added-2 removed
1# -*- coding: utf-8 -*-23from core import *4from core import __version__3"""4requests.core5~~~~~~~~~~~~~67This module implements the main Requests system.89:copyright: (c) 2011 by Kenneth Reitz.10:license: ISC, see LICENSE for more details.1112"""1314__title__ = 'requests'15__version__ = '0.6.6'16__build__ = 0x00060617__author__ = 'Kenneth Reitz'18__license__ = 'ISC'19__copyright__ = 'Copyright 2011 Kenneth Reitz'202122from . import utils23from .models import HTTPError, Request, Response24from .api import request, get, head, post, patch, put, delete25from .sessions import session26from .status_codes import codes27from .config import settings28from .exceptions import (29 RequestException, AuthenticationError, Timeout, URLRequired,30 InvalidMethod, TooManyRedirects31)
deleted:requests/core.py-31 removed
1# -*- coding: utf-8 -*-23"""4requests.core5~~~~~~~~~~~~~67This module implements the main Requests system.89:copyright: (c) 2011 by Kenneth Reitz.10:license: ISC, see LICENSE for more details.1112"""1314__title__ = 'requests'15__version__ = '0.6.6'16__build__ = 0x00060617__author__ = 'Kenneth Reitz'18__license__ = 'ISC'19__copyright__ = 'Copyright 2011 Kenneth Reitz'202122from . import utils23from .models import HTTPError, Request, Response24from .api import request, get, head, post, patch, put, delete25from .sessions import session26from .status_codes import codes27from .config import settings28from .exceptions import (29 RequestException, AuthenticationError, Timeout, URLRequired,30 InvalidMethod, TooManyRedirects31)