Skip to content
Myr

Bump up the copyright to 2017

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 b81a8a3 · Browse files · 36 files+36 added−36 removed
This commit

State

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

Diff stats

36 files+36 added−36 removed

  • tests:+15 added−15 removed
  • other:+21 added−21 removed

36 files+36 added−36 removed

modified:jinja2/__init__.py+1 added-1 removed
21 unmodified lines
22 </ul>23 {% endblock %}242526 :copyright: (c) 2010 by the Jinja Team.26 :copyright: (c) 2017 by the Jinja Team.27 :license: BSD, see LICENSE for more details.28"""29__docformat__ = 'restructuredtext en'30__version__ = '2.9.dev'
52 unmodified lines
modified:jinja2/bccache.py+1 added-1 removed
9 unmodified lines
1011 Situations where this is useful are often forking web applications that12 are initialized on the first request.1314 :copyright: (c) 2010 by the Jinja Team.14 :copyright: (c) 2017 by the Jinja Team.15 :license: BSD.16"""17from os import path, listdir18import os
344 unmodified lines
modified:jinja2/compiler.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~56 Compiles nodes into python code.78 :copyright: (c) 2010 by the Jinja Team.8 :copyright: (c) 2017 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10"""11from itertools import chain12from copy import deepcopy
1607 unmodified lines
modified:jinja2/constants.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~56 Various constants.78 :copyright: (c) 2010 by the Jinja Team.8 :copyright: (c) 2017 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10"""1112
20 unmodified lines
modified:jinja2/debug.py+1 added-1 removed
5 unmodified lines
6 Implements the debug interface for Jinja. This module does some pretty7 ugly stuff with the Python traceback system in order to achieve tracebacks8 with correct line numbers, locals and contents.910 :copyright: (c) 2010 by the Jinja Team.10 :copyright: (c) 2017 by the Jinja Team.11 :license: BSD, see LICENSE for more details.12"""13import sys14import traceback
358 unmodified lines
modified:jinja2/defaults.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~56 Jinja default filters and tags.78 :copyright: (c) 2010 by the Jinja Team.8 :copyright: (c) 2017 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10"""11from jinja2._compat import range_type12from jinja2.utils import generate_lorem_ipsum, Cycler, Joiner
41 unmodified lines
modified:jinja2/environment.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~56 Provides a class that holds runtime and parsing time options.78 :copyright: (c) 2010 by the Jinja Team.8 :copyright: (c) 2017 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10"""11import os12import sys
1264 unmodified lines
modified:jinja2/exceptions.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~56 Jinja exceptions.78 :copyright: (c) 2010 by the Jinja Team.8 :copyright: (c) 2017 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10"""11from jinja2._compat import imap, text_type, PY2, implements_to_string12
134 unmodified lines
modified:jinja2/ext.py+1 added-1 removed
5 unmodified lines
6 Jinja extensions allow to add custom tags similar to the way django custom7 tags work. By default two example extensions exist: an i18n and a cache8 extension.910 :copyright: (c) 2010 by the Jinja Team.10 :copyright: (c) 2017 by the Jinja Team.11 :license: BSD.12"""13from jinja2 import nodes14from jinja2.defaults import BLOCK_START_STRING, \
595 unmodified lines
modified:jinja2/filters.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~56 Bundled jinja filters.78 :copyright: (c) 2010 by the Jinja Team.8 :copyright: (c) 2017 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10"""11import re12import math
1049 unmodified lines
modified:jinja2/lexer.py+1 added-1 removed
9 unmodified lines
10 On the one hand it filters out invalid operators like the bitshift11 operators we don't allow in templates. On the other hand it separates12 template code and python code in expressions.1314 :copyright: (c) 2010 by the Jinja Team.14 :copyright: (c) 2017 by the Jinja Team.15 :license: BSD, see LICENSE for more details.16"""17import re18
707 unmodified lines
modified:jinja2/loaders.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~56 Jinja loader classes.78 :copyright: (c) 2010 by the Jinja Team.8 :copyright: (c) 2017 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10"""11import os12import sys
469 unmodified lines
modified:jinja2/meta.py+1 added-1 removed
4 unmodified lines
56 This module implements various functions that exposes information about7 templates that might be interesting for various kinds of applications.89 :copyright: (c) 2010 by the Jinja Team, see AUTHORS for more details.9 :copyright: (c) 2017 by the Jinja Team, see AUTHORS for more details.10 :license: BSD, see LICENSE for more details.11"""12from jinja2 import nodes13from jinja2.compiler import CodeGenerator
93 unmodified lines
modified:jinja2/nodes.py+1 added-1 removed
7 unmodified lines
8 It also provides some node tree helper functions like `in_lineno` and9 `get_nodes` used by the parser and translator in order to normalize10 python and jinja nodes.1112 :copyright: (c) 2010 by the Jinja Team.12 :copyright: (c) 2017 by the Jinja Team.13 :license: BSD, see LICENSE for more details.14"""15import types16import operator
914 unmodified lines
modified:jinja2/optimizer.py+1 added-1 removed
11 unmodified lines
12 have a different scoping.1314 The solution would be a second syntax tree that has the scoping rules stored.1516 :copyright: (c) 2010 by the Jinja Team.16 :copyright: (c) 2017 by the Jinja Team.17 :license: BSD.18"""19from jinja2 import nodes20from jinja2.visitor import NodeTransformer
29 unmodified lines
modified:jinja2/parser.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~56 Implements the template parser.78 :copyright: (c) 2010 by the Jinja Team.8 :copyright: (c) 2017 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10"""11from jinja2 import nodes12from jinja2.exceptions import TemplateSyntaxError, TemplateAssertionError
883 unmodified lines
modified:jinja2/runtime.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~56 Runtime helpers.78 :copyright: (c) 2010 by the Jinja Team.8 :copyright: (c) 2017 by the Jinja Team.9 :license: BSD.10"""11import sys12
705 unmodified lines
modified:jinja2/sandbox.py+1 added-1 removed
7 unmodified lines
8 default behavior is easier to use.910 The behavior can be changed by subclassing the environment.1112 :copyright: (c) 2010 by the Jinja Team.12 :copyright: (c) 2017 by the Jinja Team.13 :license: BSD.14"""15import types16import operator
459 unmodified lines
modified:jinja2/tests.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~56 Jinja test functions. Used with the "is" operator.78 :copyright: (c) 2010 by the Jinja Team.8 :copyright: (c) 2017 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10"""11import re12from collections import Mapping
173 unmodified lines
modified:jinja2/utils.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~56 Utility functions.78 :copyright: (c) 2010 by the Jinja Team.8 :copyright: (c) 2017 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10"""11import re12import json
612 unmodified lines
modified:jinja2/visitor.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~56 This module implements a visitor for the nodes.78 :copyright: (c) 2010 by the Jinja Team.8 :copyright: (c) 2017 by the Jinja Team.9 :license: BSD.10"""11from jinja2.nodes import Node12
75 unmodified lines
modified:tests/conftest.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~~~~~~~~56 Configuration and Fixtures for the tests78 :copyright: (c) 2010 by the Jinja Team.8 :copyright: (c) 2017 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10"""11import pytest12import os
69 unmodified lines
modified:tests/test_api.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~~~56 Tests the public API and related stuff.78 :copyright: (c) 2010 by the Jinja Team.8 :copyright: (c) 2017 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10"""11import os12import tempfile
328 unmodified lines
modified:tests/test_bytecode_cache.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~56 Test bytecode caching78 :copyright: (c) 2010 by the Jinja Team.8 :copyright: (c) 2017 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10"""11import pytest12from jinja2 import Environment
20 unmodified lines
modified:tests/test_core_tags.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~~~~~~~~~56 Test the core tags like for and if.78 :copyright: (c) 2010 by the Jinja Team.8 :copyright: (c) 2017 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10"""11import pytest12from jinja2 import Environment, TemplateSyntaxError, UndefinedError, \
344 unmodified lines
modified:tests/test_debug.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~~~~~56 Tests the debug system.78 :copyright: (c) 2010 by the Jinja Team.8 :copyright: (c) 2017 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10"""11import pytest12
74 unmodified lines
modified:tests/test_ext.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~~~56 Tests for the extensions.78 :copyright: (c) 2010 by the Jinja Team.8 :copyright: (c) 2017 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10"""11import re12import pytest
463 unmodified lines
modified:tests/test_filters.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~~~~~~~56 Tests for the jinja filters.78 :copyright: (c) 2010 by the Jinja Team.8 :copyright: (c) 2017 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10"""11import pytest12from jinja2 import Markup, Environment
579 unmodified lines
modified:tests/test_imports.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~~~~~~~56 Tests the import features (with includes).78 :copyright: (c) 2010 by the Jinja Team.8 :copyright: (c) 2017 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10"""11import pytest12
144 unmodified lines
modified:tests/test_inheritance.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~56 Tests the template inheritance feature.78 :copyright: (c) 2010 by the Jinja Team.8 :copyright: (c) 2017 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10"""11import pytest12
236 unmodified lines
modified:tests/test_lexnparse.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~~~~~~~~~56 All the unittests regarding lexing, parsing and syntax.78 :copyright: (c) 2010 by the Jinja Team.8 :copyright: (c) 2017 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10"""11import pytest12
601 unmodified lines
modified:tests/test_loader.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~~~~~~56 Test the loaders.78 :copyright: (c) 2010 by the Jinja Team.8 :copyright: (c) 2017 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10"""11import os12import sys
222 unmodified lines
modified:tests/test_regression.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~~~~~~~~~~56 Tests corner cases and bugs.78 :copyright: (c) 2010 by the Jinja Team.8 :copyright: (c) 2017 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10"""11import sys12import pytest
377 unmodified lines
modified:tests/test_security.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~~~~~~~~56 Checks the sandbox and other security features.78 :copyright: (c) 2010 by the Jinja Team.8 :copyright: (c) 2017 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10"""11import pytest12
177 unmodified lines
modified:tests/test_tests.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~~~~~56 Who tests the tests?78 :copyright: (c) 2010 by the Jinja Team.8 :copyright: (c) 2017 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10"""11import pytest12
116 unmodified lines
modified:tests/test_utils.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~~~~~56 Tests utilities jinja uses.78 :copyright: (c) 2010 by the Jinja Team.8 :copyright: (c) 2017 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10"""11import gc12
92 unmodified lines