mirror of https://github.com/pallets/flask.git
revert copyright year to project start
add copyright header to files
This commit is contained in:
parent
9bf5c3b3a3
commit
310fbfcf64
16
docs/conf.py
16
docs/conf.py
|
@ -17,6 +17,8 @@ import pkg_resources
|
||||||
import time
|
import time
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
|
from sphinx.application import Sphinx
|
||||||
|
|
||||||
BUILD_DATE = datetime.datetime.utcfromtimestamp(int(os.environ.get('SOURCE_DATE_EPOCH', time.time())))
|
BUILD_DATE = datetime.datetime.utcfromtimestamp(int(os.environ.get('SOURCE_DATE_EPOCH', time.time())))
|
||||||
|
|
||||||
# If extensions (or modules to document with autodoc) are in another directory,
|
# If extensions (or modules to document with autodoc) are in another directory,
|
||||||
|
@ -296,3 +298,17 @@ def unwrap_decorators():
|
||||||
|
|
||||||
unwrap_decorators()
|
unwrap_decorators()
|
||||||
del unwrap_decorators
|
del unwrap_decorators
|
||||||
|
|
||||||
|
|
||||||
|
def setup(app: Sphinx):
|
||||||
|
def cut_module_meta(app, what, name, obj, options, lines):
|
||||||
|
"""Remove metadata from autodoc output."""
|
||||||
|
if what != 'module':
|
||||||
|
return
|
||||||
|
|
||||||
|
lines[:] = [
|
||||||
|
line for line in lines
|
||||||
|
if not line.startswith((':copyright:', ':license:'))
|
||||||
|
]
|
||||||
|
|
||||||
|
app.connect('autodoc-process-docstring', cut_module_meta)
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
"""
|
||||||
|
Blueprint Example
|
||||||
|
~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
:copyright: © 2010 by the Pallets team.
|
||||||
|
:license: BSD, see LICENSE for more details.
|
||||||
|
"""
|
||||||
|
|
||||||
from flask import Flask
|
from flask import Flask
|
||||||
from simple_page.simple_page import simple_page
|
from simple_page.simple_page import simple_page
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
"""
|
"""
|
||||||
Blueprint Example Tests
|
Blueprint Example Tests
|
||||||
~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
Tests the Blueprint example app
|
:copyright: © 2010 by the Pallets team.
|
||||||
|
:license: BSD, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
import blueprintexample
|
import blueprintexample
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
A microblog example application written as Flask tutorial with
|
A microblog example application written as Flask tutorial with
|
||||||
Flask and sqlite3.
|
Flask and sqlite3.
|
||||||
|
|
||||||
:copyright: (c) 2015 by Armin Ronacher.
|
:copyright: © 2010 by the Pallets team.
|
||||||
:license: BSD, see LICENSE for more details.
|
:license: BSD, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
A microblog example application written as Flask tutorial with
|
A microblog example application written as Flask tutorial with
|
||||||
Flask and sqlite3.
|
Flask and sqlite3.
|
||||||
|
|
||||||
:copyright: (c) 2015 by Armin Ronacher.
|
:copyright: © 2010 by the Pallets team.
|
||||||
:license: BSD, see LICENSE for more details.
|
:license: BSD, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
Tests the Flaskr application.
|
Tests the Flaskr application.
|
||||||
|
|
||||||
:copyright: (c) 2015 by Armin Ronacher.
|
:copyright: © 2010 by the Pallets team.
|
||||||
:license: BSD, see LICENSE for more details.
|
:license: BSD, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
Tests the Flaskr application.
|
Tests the Flaskr application.
|
||||||
|
|
||||||
:copyright: (c) 2015 by Armin Ronacher.
|
:copyright: © 2010 by the Pallets team.
|
||||||
:license: BSD, see LICENSE for more details.
|
:license: BSD, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -5,9 +5,10 @@
|
||||||
|
|
||||||
A simple application that shows how Flask and jQuery get along.
|
A simple application that shows how Flask and jQuery get along.
|
||||||
|
|
||||||
:copyright: (c) 2015 by Armin Ronacher.
|
:copyright: © 2010 by the Pallets team.
|
||||||
:license: BSD, see LICENSE for more details.
|
:license: BSD, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from flask import Flask, jsonify, render_template, request
|
from flask import Flask, jsonify, render_template, request
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
A microblogging application written with Flask and sqlite3.
|
A microblogging application written with Flask and sqlite3.
|
||||||
|
|
||||||
:copyright: (c) 2015 by Armin Ronacher.
|
:copyright: © 2010 by the Pallets team.
|
||||||
:license: BSD, see LICENSE for more details.
|
:license: BSD, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -5,9 +5,10 @@
|
||||||
|
|
||||||
Tests the MiniTwit application.
|
Tests the MiniTwit application.
|
||||||
|
|
||||||
:copyright: (c) 2015 by Armin Ronacher.
|
:copyright: © 2010 by the Pallets team.
|
||||||
:license: BSD, see LICENSE for more details.
|
:license: BSD, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import tempfile
|
import tempfile
|
||||||
import pytest
|
import pytest
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
"""
|
||||||
|
Larger App Tests
|
||||||
|
~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
:copyright: © 2010 by the Pallets team.
|
||||||
|
:license: BSD, see LICENSE for more details.
|
||||||
|
"""
|
||||||
|
|
||||||
from yourapplication import app
|
from yourapplication import app
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
"""
|
||||||
|
yourapplication
|
||||||
|
~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
:copyright: © 2010 by the Pallets team.
|
||||||
|
:license: BSD, see LICENSE for more details.
|
||||||
|
"""
|
||||||
|
|
||||||
from flask import Flask
|
from flask import Flask
|
||||||
app = Flask('yourapplication')
|
app = Flask('yourapplication')
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
"""
|
||||||
|
yourapplication.views
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
:copyright: © 2010 by the Pallets team.
|
||||||
|
:license: BSD, see LICENSE for more details.
|
||||||
|
"""
|
||||||
|
|
||||||
from yourapplication import app
|
from yourapplication import app
|
||||||
|
|
||||||
@app.route('/')
|
@app.route('/')
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
A microframework based on Werkzeug. It's extensively documented
|
A microframework based on Werkzeug. It's extensively documented
|
||||||
and follows best practice patterns.
|
and follows best practice patterns.
|
||||||
|
|
||||||
:copyright: (c) 2015 by Armin Ronacher.
|
:copyright: © 2010 by the Pallets team.
|
||||||
:license: BSD, see LICENSE for more details.
|
:license: BSD, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -5,11 +5,10 @@
|
||||||
|
|
||||||
Alias for flask.run for the command line.
|
Alias for flask.run for the command line.
|
||||||
|
|
||||||
:copyright: (c) 2015 by Armin Ronacher.
|
:copyright: © 2010 by the Pallets team.
|
||||||
:license: BSD, see LICENSE for more details.
|
:license: BSD, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
from .cli import main
|
from .cli import main
|
||||||
main(as_module=True)
|
main(as_module=True)
|
||||||
|
|
|
@ -7,9 +7,10 @@
|
||||||
version of six so we don't have to depend on a specific version
|
version of six so we don't have to depend on a specific version
|
||||||
of it.
|
of it.
|
||||||
|
|
||||||
:copyright: (c) 2015 by Armin Ronacher.
|
:copyright: © 2010 by the Pallets team.
|
||||||
:license: BSD, see LICENSE for more details.
|
:license: BSD, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
PY2 = sys.version_info[0] == 2
|
PY2 = sys.version_info[0] == 2
|
||||||
|
|
|
@ -5,9 +5,10 @@
|
||||||
|
|
||||||
This module implements the central WSGI application object.
|
This module implements the central WSGI application object.
|
||||||
|
|
||||||
:copyright: (c) 2015 by Armin Ronacher.
|
:copyright: © 2010 by the Pallets team.
|
||||||
:license: BSD, see LICENSE for more details.
|
:license: BSD, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import warnings
|
import warnings
|
||||||
|
|
|
@ -6,9 +6,10 @@
|
||||||
Blueprints are the recommended way to implement larger or more
|
Blueprints are the recommended way to implement larger or more
|
||||||
pluggable applications in Flask 0.7 and later.
|
pluggable applications in Flask 0.7 and later.
|
||||||
|
|
||||||
:copyright: (c) 2015 by Armin Ronacher.
|
:copyright: © 2010 by the Pallets team.
|
||||||
:license: BSD, see LICENSE for more details.
|
:license: BSD, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from functools import update_wrapper
|
from functools import update_wrapper
|
||||||
|
|
||||||
from .helpers import _PackageBoundObject, _endpoint_from_view_func
|
from .helpers import _PackageBoundObject, _endpoint_from_view_func
|
||||||
|
|
|
@ -5,9 +5,10 @@
|
||||||
|
|
||||||
A simple command line application to run flask apps.
|
A simple command line application to run flask apps.
|
||||||
|
|
||||||
:copyright: (c) 2015 by Armin Ronacher.
|
:copyright: © 2010 by the Pallets team.
|
||||||
:license: BSD, see LICENSE for more details.
|
:license: BSD, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
import ast
|
import ast
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
Implements the configuration related objects.
|
Implements the configuration related objects.
|
||||||
|
|
||||||
:copyright: (c) 2015 by Armin Ronacher.
|
:copyright: © 2010 by the Pallets team.
|
||||||
:license: BSD, see LICENSE for more details.
|
:license: BSD, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
Implements the objects required to keep the context.
|
Implements the objects required to keep the context.
|
||||||
|
|
||||||
:copyright: (c) 2015 by Armin Ronacher.
|
:copyright: © 2010 by the Pallets team.
|
||||||
:license: BSD, see LICENSE for more details.
|
:license: BSD, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -5,9 +5,10 @@
|
||||||
|
|
||||||
Various helpers to make the development experience better.
|
Various helpers to make the development experience better.
|
||||||
|
|
||||||
:copyright: (c) 2015 by Armin Ronacher.
|
:copyright: © 2010 by the Pallets team.
|
||||||
:license: BSD, see LICENSE for more details.
|
:license: BSD, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
from warnings import warn
|
from warnings import warn
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
Defines all the global objects that are proxies to the current
|
Defines all the global objects that are proxies to the current
|
||||||
active context.
|
active context.
|
||||||
|
|
||||||
:copyright: (c) 2015 by Armin Ronacher.
|
:copyright: © 2010 by the Pallets team.
|
||||||
:license: BSD, see LICENSE for more details.
|
:license: BSD, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
Implements various helpers.
|
Implements various helpers.
|
||||||
|
|
||||||
:copyright: (c) 2015 by Armin Ronacher.
|
:copyright: © 2010 by the Pallets team.
|
||||||
:license: BSD, see LICENSE for more details.
|
:license: BSD, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,12 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
"""
|
||||||
|
flask.json
|
||||||
|
~~~~~~~~~~
|
||||||
|
|
||||||
|
:copyright: © 2010 by the Pallets team.
|
||||||
|
:license: BSD, see LICENSE for more details.
|
||||||
|
"""
|
||||||
|
|
||||||
import io
|
import io
|
||||||
import uuid
|
import uuid
|
||||||
from datetime import date, datetime
|
from datetime import date, datetime
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
"""
|
"""
|
||||||
Tagged JSON
|
Tagged JSON
|
||||||
~~~~~~~~~~~
|
~~~~~~~~~~~
|
||||||
|
@ -37,6 +38,8 @@ processes dicts first, so insert the new tag at the front of the order since
|
||||||
|
|
||||||
app.session_interface.serializer.register(TagOrderedDict, 0)
|
app.session_interface.serializer.register(TagOrderedDict, 0)
|
||||||
|
|
||||||
|
:copyright: © 2010 by the Pallets team.
|
||||||
|
:license: BSD, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from base64 import b64decode, b64encode
|
from base64 import b64decode, b64encode
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
"""
|
||||||
|
flask.logging
|
||||||
|
~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
:copyright: © 2010 by the Pallets team.
|
||||||
|
:license: BSD, see LICENSE for more details.
|
||||||
|
"""
|
||||||
|
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
|
@ -5,9 +5,10 @@
|
||||||
|
|
||||||
Implements cookie based sessions based on itsdangerous.
|
Implements cookie based sessions based on itsdangerous.
|
||||||
|
|
||||||
:copyright: (c) 2015 by Armin Ronacher.
|
:copyright: © 2010 by the Pallets team.
|
||||||
:license: BSD, see LICENSE for more details.
|
:license: BSD, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import hashlib
|
import hashlib
|
||||||
import warnings
|
import warnings
|
||||||
from collections import MutableMapping
|
from collections import MutableMapping
|
||||||
|
|
|
@ -6,9 +6,10 @@
|
||||||
Implements signals based on blinker if available, otherwise
|
Implements signals based on blinker if available, otherwise
|
||||||
falls silently back to a noop.
|
falls silently back to a noop.
|
||||||
|
|
||||||
:copyright: (c) 2015 by Armin Ronacher.
|
:copyright: © 2010 by the Pallets team.
|
||||||
:license: BSD, see LICENSE for more details.
|
:license: BSD, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
signals_available = False
|
signals_available = False
|
||||||
try:
|
try:
|
||||||
from blinker import Namespace
|
from blinker import Namespace
|
||||||
|
|
|
@ -5,9 +5,10 @@
|
||||||
|
|
||||||
Implements the bridge to Jinja2.
|
Implements the bridge to Jinja2.
|
||||||
|
|
||||||
:copyright: (c) 2015 by Armin Ronacher.
|
:copyright: © 2010 by the Pallets team.
|
||||||
:license: BSD, see LICENSE for more details.
|
:license: BSD, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from jinja2 import BaseLoader, Environment as BaseEnvironment, \
|
from jinja2 import BaseLoader, Environment as BaseEnvironment, \
|
||||||
TemplateNotFound
|
TemplateNotFound
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
Implements test support helpers. This module is lazily imported
|
Implements test support helpers. This module is lazily imported
|
||||||
and usually not used in production environments.
|
and usually not used in production environments.
|
||||||
|
|
||||||
:copyright: (c) 2015 by Armin Ronacher.
|
:copyright: © 2010 by the Pallets team.
|
||||||
:license: BSD, see LICENSE for more details.
|
:license: BSD, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -5,9 +5,10 @@
|
||||||
|
|
||||||
This module provides class-based views inspired by the ones in Django.
|
This module provides class-based views inspired by the ones in Django.
|
||||||
|
|
||||||
:copyright: (c) 2015 by Armin Ronacher.
|
:copyright: © 2010 by the Pallets team.
|
||||||
:license: BSD, see LICENSE for more details.
|
:license: BSD, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from .globals import request
|
from .globals import request
|
||||||
from ._compat import with_metaclass
|
from ._compat import with_metaclass
|
||||||
|
|
||||||
|
|
|
@ -5,9 +5,10 @@
|
||||||
|
|
||||||
Implements the WSGI wrappers (request and response).
|
Implements the WSGI wrappers (request and response).
|
||||||
|
|
||||||
:copyright: (c) 2015 by Armin Ronacher.
|
:copyright: © 2010 by the Pallets team.
|
||||||
:license: BSD, see LICENSE for more details.
|
:license: BSD, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from werkzeug.exceptions import BadRequest
|
from werkzeug.exceptions import BadRequest
|
||||||
from werkzeug.wrappers import Request as RequestBase, Response as ResponseBase
|
from werkzeug.wrappers import Request as RequestBase, Response as ResponseBase
|
||||||
|
|
||||||
|
|
3
setup.py
3
setup.py
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
import io
|
import io
|
||||||
import re
|
import re
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
@ -16,6 +17,8 @@ setup(
|
||||||
license='BSD',
|
license='BSD',
|
||||||
author='Armin Ronacher',
|
author='Armin Ronacher',
|
||||||
author_email='armin.ronacher@active-4.com',
|
author_email='armin.ronacher@active-4.com',
|
||||||
|
maintainer='Pallets team',
|
||||||
|
maintainer_email='contact@palletsprojects.com',
|
||||||
description='A simple framework for building complex web applications.',
|
description='A simple framework for building complex web applications.',
|
||||||
long_description=readme,
|
long_description=readme,
|
||||||
packages=['flask', 'flask.json'],
|
packages=['flask', 'flask.json'],
|
||||||
|
|
|
@ -3,9 +3,10 @@
|
||||||
tests.conftest
|
tests.conftest
|
||||||
~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~
|
||||||
|
|
||||||
:copyright: (c) 2015 by the Flask Team, see AUTHORS for more details.
|
:copyright: © 2010 by the Pallets team.
|
||||||
:license: BSD, see LICENSE for more details.
|
:license: BSD, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import gc
|
import gc
|
||||||
import os
|
import os
|
||||||
import pkgutil
|
import pkgutil
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
Tests the application context.
|
Tests the application context.
|
||||||
|
|
||||||
:copyright: (c) 2015 by Armin Ronacher.
|
:copyright: © 2010 by the Pallets team.
|
||||||
:license: BSD, see LICENSE for more details.
|
:license: BSD, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
The basic functionality.
|
The basic functionality.
|
||||||
|
|
||||||
:copyright: (c) 2015 by Armin Ronacher.
|
:copyright: © 2010 by the Pallets team.
|
||||||
:license: BSD, see LICENSE for more details.
|
:license: BSD, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
Blueprints (and currently modules)
|
Blueprints (and currently modules)
|
||||||
|
|
||||||
:copyright: (c) 2015 by Armin Ronacher.
|
:copyright: © 2010 by the Pallets team.
|
||||||
:license: BSD, see LICENSE for more details.
|
:license: BSD, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -3,14 +3,13 @@
|
||||||
tests.test_cli
|
tests.test_cli
|
||||||
~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~
|
||||||
|
|
||||||
:copyright: (c) 2016 by the Flask Team, see AUTHORS for more details.
|
:copyright: © 2010 by the Pallets team.
|
||||||
:license: BSD, see LICENSE for more details.
|
:license: BSD, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
#
|
|
||||||
# This file was part of Flask-CLI and was modified under the terms its license,
|
# This file was part of Flask-CLI and was modified under the terms of
|
||||||
# the Revised BSD License.
|
# its Revised BSD License. Copyright © 2015 CERN.
|
||||||
# Copyright (C) 2015 CERN.
|
|
||||||
#
|
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
|
@ -3,11 +3,10 @@
|
||||||
tests.test_config
|
tests.test_config
|
||||||
~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
:copyright: (c) 2015 by the Flask Team, see AUTHORS for more details.
|
:copyright: © 2010 by the Pallets team.
|
||||||
:license: BSD, see LICENSE for more details.
|
:license: BSD, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
import os
|
import os
|
||||||
import textwrap
|
import textwrap
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
Various helpers.
|
Various helpers.
|
||||||
|
|
||||||
:copyright: (c) 2015 by Armin Ronacher.
|
:copyright: © 2010 by the Pallets team.
|
||||||
:license: BSD, see LICENSE for more details.
|
:license: BSD, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -3,9 +3,10 @@
|
||||||
tests.test_instance
|
tests.test_instance
|
||||||
~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
:copyright: (c) 2015 by the Flask Team, see AUTHORS for more details.
|
:copyright: © 2010 by the Pallets team.
|
||||||
:license: BSD, see LICENSE for more details.
|
:license: BSD, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
"""
|
||||||
|
tests.test_json_tag
|
||||||
|
~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
:copyright: © 2010 by the Pallets team.
|
||||||
|
:license: BSD, see LICENSE for more details.
|
||||||
|
"""
|
||||||
|
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from uuid import uuid4
|
from uuid import uuid4
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
"""
|
||||||
|
tests.test_logging
|
||||||
|
~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
:copyright: © 2010 by the Pallets team.
|
||||||
|
:license: BSD, see LICENSE for more details.
|
||||||
|
"""
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
Tests regressions.
|
Tests regressions.
|
||||||
|
|
||||||
:copyright: (c) 2015 by Armin Ronacher.
|
:copyright: © 2010 by the Pallets team.
|
||||||
:license: BSD, see LICENSE for more details.
|
:license: BSD, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
Tests the request context.
|
Tests the request context.
|
||||||
|
|
||||||
:copyright: (c) 2015 by Armin Ronacher.
|
:copyright: © 2010 by the Pallets team.
|
||||||
:license: BSD, see LICENSE for more details.
|
:license: BSD, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
Signalling.
|
Signalling.
|
||||||
|
|
||||||
:copyright: (c) 2015 by Armin Ronacher.
|
:copyright: © 2010 by the Pallets team.
|
||||||
:license: BSD, see LICENSE for more details.
|
:license: BSD, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
Test that certain behavior of flask can be customized by
|
Test that certain behavior of flask can be customized by
|
||||||
subclasses.
|
subclasses.
|
||||||
|
|
||||||
:copyright: (c) 2015 by Armin Ronacher.
|
:copyright: © 2010 by the Pallets team.
|
||||||
:license: BSD, see LICENSE for more details.
|
:license: BSD, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
Template functionality
|
Template functionality
|
||||||
|
|
||||||
:copyright: (c) 2015 by Armin Ronacher.
|
:copyright: © 2010 by the Pallets team.
|
||||||
:license: BSD, see LICENSE for more details.
|
:license: BSD, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -5,9 +5,10 @@
|
||||||
|
|
||||||
Test client and more.
|
Test client and more.
|
||||||
|
|
||||||
:copyright: (c) 2015 by Armin Ronacher.
|
:copyright: © 2010 by the Pallets team.
|
||||||
:license: BSD, see LICENSE for more details.
|
:license: BSD, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
import flask
|
import flask
|
||||||
|
|
|
@ -1,4 +1,12 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
"""
|
||||||
|
tests.test_user_error_handler
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
:copyright: © 2010 by the Pallets team.
|
||||||
|
:license: BSD, see LICENSE for more details.
|
||||||
|
"""
|
||||||
|
|
||||||
from werkzeug.exceptions import (
|
from werkzeug.exceptions import (
|
||||||
Forbidden,
|
Forbidden,
|
||||||
InternalServerError,
|
InternalServerError,
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
Pluggable views.
|
Pluggable views.
|
||||||
|
|
||||||
:copyright: (c) 2015 by Armin Ronacher.
|
:copyright: © 2010 by the Pallets team.
|
||||||
:license: BSD, see LICENSE for more details.
|
:license: BSD, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue