Switched to relative imports in the package
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Armin Ronacher · committed by Armin Ronacher · parent bca1acf · Browse files · 6 files·+21 added−21 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
6 files+21 added−21 removed
- other:+21 added−21 removed
Provenance
- Commit
80eb6cf- Tree
7b10559- Author
Armin Ronacher <armin.ronacher@active-4.com>- Committer
Armin Ronacher <armin.ronacher@active-4.com>- Parent
bca1acf
6 files changed+21 added−21 removed
modified:flask/__init__.py+7 added-7 removed
13 unmodified lines14 # in the module but are exported as public interface.15 from werkzeug import abort, redirect16 from jinja2 import Markup, escape17 18-from flask.app import Flask, Request, Response19-from flask.config import Config20-from flask.helpers import url_for, jsonify, json_available, flash, \18+from .app import Flask, Request, Response19+from .config import Config20+from .helpers import url_for, jsonify, json_available, flash, \21 send_file, get_flashed_messages, get_template_attribute22-from flask.globals import current_app, g, request, session, _request_ctx_stack23-from flask.module import Module24-from flask.templating import render_template, render_template_string22+from .globals import current_app, g, request, session, _request_ctx_stack23+from .module import Module24+from .templating import render_template, render_template_string25 26 # only import json if it's available27 if json_available:28- from flask.helpers import json28+ from .helpers import jsonmodified:flask/app.py+8 added-8 removed
20 unmodified lines21 from werkzeug import ImmutableDict, create_environ22 from werkzeug.routing import Map, Rule23 from werkzeug.exceptions import HTTPException, InternalServerError, NotFound24 25-from flask.helpers import _PackageBoundObject, url_for, get_flashed_messages, \25+from .helpers import _PackageBoundObject, url_for, get_flashed_messages, \26 _tojson_filter27-from flask.wrappers import Request, Response28-from flask.config import ConfigAttribute, Config29-from flask.ctx import _RequestContext30-from flask.globals import _request_ctx_stack, request31-from flask.session import Session, _NullSession32-from flask.module import _ModuleSetupState33-from flask.templating import _DispatchingJinjaLoader, \27+from .wrappers import Request, Response28+from .config import ConfigAttribute, Config29+from .ctx import _RequestContext30+from .globals import _request_ctx_stack, request31+from .session import Session, _NullSession32+from .module import _ModuleSetupState33+from .templating import _DispatchingJinjaLoader, \34 _default_template_ctx_processor35 36 # a lock used for logger initialization37 _logger_lock = Lock()799 unmodified linesmodified:flask/ctx.py+2 added-2 removed
9 unmodified lines10 """11 12 from werkzeug.exceptions import HTTPException13 14-from flask.globals import _request_ctx_stack15-from flask.session import _NullSession14+from .globals import _request_ctx_stack15+from .session import _NullSession16 17 18 class _RequestGlobals(object):19 pass46 unmodified linesmodified:flask/helpers.py+2 added-2 removed
29 unmodified lines30 from werkzeug import Headers, wrap_file, is_resource_modified, cached_property31 32 from jinja2 import FileSystemLoader33 34-from flask.globals import session, _request_ctx_stack, current_app, request35-from flask.wrappers import Response34+from .globals import session, _request_ctx_stack, current_app, request35+from .wrappers import Response36 37 38 def _assert_have_json():39 """Helper function that fails if JSON is unavailable."""327 unmodified linesmodified:flask/templating.py+1 added-1 removed
8 unmodified lines9 :license: BSD, see LICENSE for more details.10 """11 from jinja2 import BaseLoader, FileSystemLoader, TemplateNotFound12 13-from flask.globals import _request_ctx_stack13+from .globals import _request_ctx_stack14 15 16 def _default_template_ctx_processor():17 """Default template context processor. Injects `request`,69 unmodified linesmodified:flask/wrappers.py+1 added-1 removed
10 unmodified lines11 12 from werkzeug import Request as RequestBase, Response as ResponseBase, \13 cached_property14 15-from helpers import json15+from .helpers import json16 17 18 class Request(RequestBase):19 """The request object used by default in flask. Remembers the51 unmodified lines