Skip to content
Myr

always import from ._compat

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

authored by Thomas Waldmann · committed by Thomas Waldmann · parent 83f7658 · Browse files · 6 files+6 added−6 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+6 added−6 removed

  • other:+6 added−6 removed

6 files+6 added−6 removed

modified:flask/app.py+1 added-1 removed
32 unmodified lines
33from .templating import DispatchingJinjaLoader, Environment, \34 _default_template_ctx_processor35from .signals import request_started, request_finished, got_request_exception, \36 request_tearing_down, appcontext_tearing_down37from flask._compat import reraise, string_types, integer_types37from ._compat import reraise, string_types, integer_types3839# a lock used for logger initialization40_logger_lock = Lock()41
1774 unmodified lines
modified:flask/config.py+1 added-1 removed
12 unmodified lines
13import os14import errno1516from werkzeug.utils import import_string17from flask._compat import string_types17from ._compat import string_types181920class ConfigAttribute(object):21 """Makes an attribute forward to the config"""
147 unmodified lines
modified:flask/debughelpers.py+1 added-1 removed
6 unmodified lines
78 :copyright: (c) 2011 by Armin Ronacher.9 :license: BSD, see LICENSE for more details.10"""11from flask._compat import implements_to_string11from ._compat import implements_to_string121314class UnexpectedUnicodeError(AssertionError, UnicodeError):15 """Raised in places where we want some better error reporting for
72 unmodified lines
modified:flask/exthook.py+1 added-1 removed
19 unmodified lines
20 :license: BSD, see LICENSE for more details.21"""22import sys23import os24from flask._compat import reraise24from ._compat import reraise252627class ExtensionImporter(object):28 """This importer redirects imports from this submodule to other locations.
92 unmodified lines
modified:flask/helpers.py+1 added-1 removed
22 unmodified lines
232425from werkzeug.datastructures import Headers26from werkzeug.exceptions import NotFound27from flask._compat import string_types, text_type2728# this was moved in 0.729try:30 from werkzeug.wsgi import wrap_file
4 unmodified lines
3536from .signals import message_flashed37from .globals import session, _request_ctx_stack, _app_ctx_stack, \38 current_app, request39from ._compat import string_types, text_type404142# sentinel43_missing = object()
802 unmodified lines
modified:flask/testing.py+1 added-1 removed
11 unmodified lines
1213from contextlib import contextmanager14from werkzeug.test import Client, EnvironBuilder15from flask import _request_ctx_stack16from flask._compat import urlparse16from ._compat import urlparse171819def make_test_environ_builder(app, path='/', base_url=None, *args, **kwargs):20 """Creates a new test builder with some application defaults thrown in."""
100 unmodified lines