]> git.ipfire.org Git - thirdparty/jinja.git/log
thirdparty/jinja.git
4 years agounify/rename filter and function decorators 1389/head
David Lord [Sat, 10 Apr 2021 15:58:16 +0000 (08:58 -0700)] 
unify/rename filter and function decorators

Use pass_context instead of contextfilter and contextfunction, etc.

4 years agoextract common code for import/from nodes
David Lord [Fri, 9 Apr 2021 23:49:55 +0000 (16:49 -0700)] 
extract common code for import/from nodes

4 years agoMerge pull request #1152 from angelafrentz/refactor_ternary_statement_compiler
David Lord [Fri, 9 Apr 2021 22:33:14 +0000 (15:33 -0700)] 
Merge pull request #1152 from angelafrentz/refactor_ternary_statement_compiler

4 years agorefactor compiler environment.is_async checks 1152/head
angelafrentz [Mon, 10 Feb 2020 22:15:23 +0000 (14:15 -0800)] 
refactor compiler environment.is_async checks

4 years agoMerge pull request #1387 from pallets/dependabot/pip/urllib3-1.26.4
dependabot-preview[bot] [Tue, 6 Apr 2021 18:03:18 +0000 (18:03 +0000)] 
Merge pull request #1387 from pallets/dependabot/pip/urllib3-1.26.4

4 years ago[Security] Bump urllib3 from 1.26.3 to 1.26.4 1387/head
dependabot-preview[bot] [Tue, 6 Apr 2021 18:01:52 +0000 (18:01 +0000)] 
[Security] Bump urllib3 from 1.26.3 to 1.26.4

Bumps [urllib3](https://github.com/urllib3/urllib3) from 1.26.3 to 1.26.4. **This update includes a security fix.**
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
- [Commits](https://github.com/urllib3/urllib3/compare/1.26.3...1.26.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
4 years agoMerge pull request #1360 from lisongmin/add-default-value-to-groupby
David Lord [Mon, 5 Apr 2021 21:44:37 +0000 (14:44 -0700)] 
Merge pull request #1360 from lisongmin/add-default-value-to-groupby

Ability to set default value in groupby filter

4 years agoadd default parameter to groupby 1360/head
lisongmin [Tue, 23 Feb 2021 06:34:36 +0000 (14:34 +0800)] 
add default parameter to groupby

4 years agoMerge pull request #1367 from mvolfik/docs-fix
David Lord [Mon, 5 Apr 2021 21:27:12 +0000 (14:27 -0700)] 
Merge pull request #1367 from mvolfik/docs-fix

line statements have no default

4 years agoFix incorrect docs - line statements have no default 1367/head
Matěj Volf [Tue, 9 Mar 2021 19:42:11 +0000 (20:42 +0100)] 
Fix incorrect docs - line statements have no default

4 years agoMerge pull request #1364 from Dreamsorcerer/patch-2
David Lord [Mon, 5 Apr 2021 21:23:33 +0000 (14:23 -0700)] 
Merge pull request #1364 from Dreamsorcerer/patch-2

Fix map documentation

4 years agoFix map documentation 1364/head
Sam Bull [Fri, 5 Mar 2021 10:52:39 +0000 (10:52 +0000)] 
Fix map documentation

4 years agoMerge pull request #1236 from sixtyfathoms/fix/issue-1184
David Lord [Mon, 5 Apr 2021 21:18:56 +0000 (14:18 -0700)] 
Merge pull request #1236 from sixtyfathoms/fix/issue-1184

Update wording on dictionary default ordering

4 years agoupdate wording on dictionary default ordering 1236/head
jeff [Sat, 13 Jun 2020 23:30:27 +0000 (13:30 -1000)] 
update wording on dictionary default ordering

4 years agoMerge pull request #1226 from geographika/patch-1
David Lord [Mon, 5 Apr 2021 21:08:20 +0000 (14:08 -0700)] 
Merge pull request #1226 from geographika/patch-1

Add symbol names for tilde and pipe

4 years agoadd symbol names for tilde and pipe operators 1226/head
Seth G [Tue, 26 May 2020 16:46:18 +0000 (18:46 +0200)] 
add symbol names for tilde and pipe operators

4 years agoMerge pull request #1366 from mvolfik/fix-unicode-newlines
David Lord [Mon, 5 Apr 2021 18:50:38 +0000 (11:50 -0700)] 
Merge pull request #1366 from mvolfik/fix-unicode-newlines

Fix unicode newlines

4 years agoSplit lines in lexer only by \r\n, \r and \n 1366/head
Matěj Volf [Tue, 9 Mar 2021 13:19:58 +0000 (14:19 +0100)] 
Split lines in lexer only by \r\n, \r and \n

Python str.splitlines() splits by more characters[1], which, however,
causes problems when keeping these special characters in processed
templates is desirable, i.e. these bug reports: #769, #952, #1313.

The keep_trailing_newlines logic is reworked because splitlines()
removes them already (so they had to be added), while re.split doesn't
so they have to be removed.

[1] https://docs.python.org/3/library/stdtypes.html#str.splitlines

4 years agoMerge pull request #1363 from remidebette/add-native-async-support
David Lord [Mon, 5 Apr 2021 18:38:54 +0000 (11:38 -0700)] 
Merge pull request #1363 from remidebette/add-native-async-support

Add async support to NativeEnvironment

4 years agoNativeEnvironment supports async mode 1363/head
remidebette [Tue, 2 Mar 2021 22:12:30 +0000 (23:12 +0100)] 
NativeEnvironment supports async mode

4 years agoMerge pull request #1294 from Jafnee/chainableundefined-aiter-bug
David Lord [Mon, 5 Apr 2021 17:53:57 +0000 (10:53 -0700)] 
Merge pull request #1294 from Jafnee/chainableundefined-aiter-bug

Add __aiter__ to Undefined

4 years agoadd Undefined.__aiter__ 1294/head
Jafnee [Wed, 23 Sep 2020 10:34:58 +0000 (18:34 +0800)] 
add Undefined.__aiter__

4 years agoMerge pull request #1204 from dparker2/undefined-contains
David Lord [Mon, 5 Apr 2021 17:46:24 +0000 (10:46 -0700)] 
Merge pull request #1204 from dparker2/undefined-contains

Raise UndefinedError from Undefined.__contains__

4 years agoUndefined.__contains__ raises UndefinedError 1204/head
David Parker [Sat, 9 May 2020 20:04:28 +0000 (13:04 -0700)] 
Undefined.__contains__ raises UndefinedError

4 years agoMerge pull request #1171 from amykyta3/feature/base-integer-literals
David Lord [Mon, 5 Apr 2021 17:40:02 +0000 (10:40 -0700)] 
Merge pull request #1171 from amykyta3/feature/base-integer-literals

Add support for hex, octal, and binary integer literals

4 years agoparse hex, octal, and binary integer literals 1171/head
Alex Mykyta [Wed, 11 Mar 2020 03:57:28 +0000 (20:57 -0700)] 
parse hex, octal, and binary integer literals

4 years agoMerge pull request #1385 from pallets/pre-commit-ci-update-config
David Lord [Mon, 5 Apr 2021 17:24:35 +0000 (10:24 -0700)] 
Merge pull request #1385 from pallets/pre-commit-ci-update-config

[pre-commit.ci] pre-commit autoupdate

4 years ago[pre-commit.ci] pre-commit autoupdate 1385/head
pre-commit-ci[bot] [Mon, 5 Apr 2021 17:10:51 +0000 (17:10 +0000)] 
[pre-commit.ci] pre-commit autoupdate

4 years agoMerge pull request #1167 from LarsKollstedt/allow_indent_with_generic_char
David Lord [Mon, 5 Apr 2021 16:53:29 +0000 (09:53 -0700)] 
Merge pull request #1167 from LarsKollstedt/allow_indent_with_generic_char

indent filter can indent with arbitrary characters

4 years agofilters.py: do_indent: ident filter can indent with arbitrary characters 1167/head
Lars Kollstedt [Tue, 10 Mar 2020 11:26:44 +0000 (12:26 +0100)] 
filters.py: do_indent: ident filter can indent with arbitrary characters

Allow indention with generic characters, e.g. Tabs.

Implemenented the behavior requested in
https://github.com/pallets/jinja/pull/1167#issuecomment-612644701

The width param can be string or int, if it is string it's the raw
indention e.g. "\t". If it's int it's the number of spaces. In other
cases an FilterArgumentError is raised, to avoid confusion.

4 years agoMerge pull request #1384 from pallets/typing-filters-tests
David Lord [Mon, 5 Apr 2021 16:33:52 +0000 (09:33 -0700)] 
Merge pull request #1384 from pallets/typing-filters-tests

add type annotations to filters and tests

4 years agoadd type annotations to filters and tests 1384/head
David Lord [Mon, 5 Apr 2021 16:25:26 +0000 (09:25 -0700)] 
add type annotations to filters and tests

4 years agoMerge pull request #1126 from imomaliev/pgettext-support
Adrian [Mon, 5 Apr 2021 11:57:00 +0000 (13:57 +0200)] 
Merge pull request #1126 from imomaliev/pgettext-support

add pgettext to InternationalizationExtension

4 years agoadd pgettext and npgettext 1126/head
Sardorbek Imomaliev [Mon, 13 Jan 2020 09:18:10 +0000 (16:18 +0700)] 
add pgettext and npgettext

4 years agoMerge pull request #1383 from pallets/test-decorators
David Lord [Mon, 5 Apr 2021 00:39:15 +0000 (17:39 -0700)] 
Merge pull request #1383 from pallets/test-decorators

add 'is filter' and 'is test' tests

4 years agoadd 'is filter' and 'is test' tests 1383/head
David Lord [Mon, 5 Apr 2021 00:20:23 +0000 (17:20 -0700)] 
add 'is filter' and 'is test' tests

This required allowing tests to be decorated with '@environmentfilter'.
Tests are essentially the same as filters now, the node, compiler, and
environment have been refactored to extract common behavior.

4 years agoMerge pull request #1248 from MLH-Fellowship/test-for-filter
David Lord [Sun, 4 Apr 2021 17:20:49 +0000 (10:20 -0700)] 
Merge pull request #1248 from MLH-Fellowship/test-for-filter

allow optional use of a filter based on its existence

4 years agoallow optional use of filter based on existence 1248/head
Amy [Fri, 26 Jun 2020 19:26:04 +0000 (15:26 -0400)] 
allow optional use of filter based on existence

4 years agoMerge pull request #1374 from pallets/docs-globals
David Lord [Thu, 1 Apr 2021 00:21:21 +0000 (17:21 -0700)] 
Merge pull request #1374 from pallets/docs-globals

Template globals use ChainMap, more docs about globals

4 years agomore detailed docs about globals 1374/head
David Lord [Tue, 30 Mar 2021 23:38:04 +0000 (16:38 -0700)] 
more detailed docs about globals

4 years agoMerge pull request #1244 from MLH-Fellowship/cache-bugs
David Lord [Tue, 30 Mar 2021 14:49:51 +0000 (07:49 -0700)] 
Merge pull request #1244 from MLH-Fellowship/cache-bugs

Fix bug with cached templates not registering new globals

4 years agofix bug with cached templates not using new globals 1244/head
Amy [Tue, 23 Jun 2020 19:36:48 +0000 (15:36 -0400)] 
fix bug with cached templates not using new globals

4 years agoMerge pull request #1242 from MLH-Fellowship/context-bug
Amy Lei [Fri, 26 Mar 2021 22:44:19 +0000 (18:44 -0400)] 
Merge pull request #1242 from MLH-Fellowship/context-bug

fix bugs with contextfunction and nested loop variables

4 years agotrack local loop/block vars for contextfunctions 1242/head
Amy [Tue, 23 Jun 2020 14:53:59 +0000 (10:53 -0400)] 
track local loop/block vars for contextfunctions

4 years agoallow scoped blocks to access loop vars
Amy [Mon, 22 Jun 2020 19:27:18 +0000 (15:27 -0400)] 
allow scoped blocks to access loop vars

4 years agoMerge pull request #1371 from pallets/pre-commit-ci-update-config
David Lord [Mon, 22 Mar 2021 17:50:29 +0000 (10:50 -0700)] 
Merge pull request #1371 from pallets/pre-commit-ci-update-config

[pre-commit.ci] pre-commit autoupdate

4 years ago[pre-commit.ci] pre-commit autoupdate 1371/head
pre-commit-ci[bot] [Mon, 22 Mar 2021 17:05:35 +0000 (17:05 +0000)] 
[pre-commit.ci] pre-commit autoupdate

4 years agoMerge pull request #1369 from pallets/pre-commit-ci-update-config
David Lord [Mon, 15 Mar 2021 18:37:08 +0000 (11:37 -0700)] 
Merge pull request #1369 from pallets/pre-commit-ci-update-config

[pre-commit.ci] pre-commit autoupdate

4 years ago[pre-commit.ci] pre-commit autoupdate 1369/head
pre-commit-ci[bot] [Mon, 15 Mar 2021 17:01:18 +0000 (17:01 +0000)] 
[pre-commit.ci] pre-commit autoupdate

4 years agoMerge pull request #1356 from BALaka-18/map-filter-default
David Lord [Thu, 25 Feb 2021 01:18:38 +0000 (17:18 -0800)] 
Merge pull request #1356 from BALaka-18/map-filter-default

Map filter can use False as default

4 years agomap filter can use False as default 1356/head
BALaka-18 [Mon, 22 Feb 2021 15:56:22 +0000 (21:26 +0530)] 
map filter can use False as default

4 years agoMerge pull request #1361 from pallets/consistency
David Lord [Wed, 24 Feb 2021 18:38:10 +0000 (10:38 -0800)] 
Merge pull request #1361 from pallets/consistency

various cleanup for consistency between projects

4 years agomove version to setup.cfg 1361/head
David Lord [Wed, 24 Feb 2021 17:50:00 +0000 (09:50 -0800)] 
move version to setup.cfg

4 years agocache mypy in ci
David Lord [Wed, 24 Feb 2021 17:49:31 +0000 (09:49 -0800)] 
cache mypy in ci

4 years agoconsistent typing config
David Lord [Wed, 24 Feb 2021 17:47:57 +0000 (09:47 -0800)] 
consistent typing config

4 years agodocs rename changelog to changes, add license
David Lord [Wed, 24 Feb 2021 17:46:54 +0000 (09:46 -0800)] 
docs rename changelog to changes, add license

4 years agoupdate project links
David Lord [Wed, 24 Feb 2021 17:46:20 +0000 (09:46 -0800)] 
update project links

4 years agouse rtd to build docs for prs
David Lord [Tue, 16 Feb 2021 16:41:40 +0000 (08:41 -0800)] 
use rtd to build docs for prs

skip code tests when only docs change

4 years agosimplify dev install command
David Lord [Mon, 8 Feb 2021 19:57:06 +0000 (11:57 -0800)] 
simplify dev install command

4 years agoMerge pull request #1351 from pallets/pre-commit-ci-update-config
David Lord [Mon, 8 Feb 2021 17:13:06 +0000 (09:13 -0800)] 
Merge pull request #1351 from pallets/pre-commit-ci-update-config

[pre-commit.ci] pre-commit autoupdate

4 years ago[pre-commit.ci] pre-commit autoupdate 1351/head
pre-commit-ci[bot] [Mon, 8 Feb 2021 16:52:04 +0000 (16:52 +0000)] 
[pre-commit.ci] pre-commit autoupdate

4 years agoMerge pull request #1350 from pallets/update-test-requirements
David Lord [Sun, 7 Feb 2021 04:40:52 +0000 (20:40 -0800)] 
Merge pull request #1350 from pallets/update-test-requirements

update requirements, test Python 3.9

4 years agoupdate requirements, test Python 3.9 1350/head
David Lord [Sun, 7 Feb 2021 04:35:29 +0000 (20:35 -0800)] 
update requirements, test Python 3.9

4 years agoupdate building docs instructions in contributing guide (#1235)
sixtyfathoms [Thu, 4 Feb 2021 16:02:48 +0000 (06:02 -1000)] 
update building docs instructions in contributing guide (#1235)

4 years agoupdate contributing guide
David Lord [Tue, 2 Feb 2021 17:52:15 +0000 (09:52 -0800)] 
update contributing guide

4 years agoMerge pull request #1348 from pallets/json-docs
David Lord [Tue, 2 Feb 2021 06:48:29 +0000 (22:48 -0800)] 
Merge pull request #1348 from pallets/json-docs

update tojson docs

4 years agoupdate tojson docs 1348/head
David Lord [Tue, 2 Feb 2021 06:35:43 +0000 (22:35 -0800)] 
update tojson docs

4 years ago[pre-commit.ci] pre-commit autoupdate (#1347)
pre-commit-ci[bot] [Mon, 1 Feb 2021 17:01:49 +0000 (09:01 -0800)] 
[pre-commit.ci] pre-commit autoupdate (#1347)

4 years agoMerge pull request #1346 from pallets/dependabot/pip/pytest-6.2.2
dependabot-preview[bot] [Mon, 1 Feb 2021 10:07:22 +0000 (10:07 +0000)] 
Merge pull request #1346 from pallets/dependabot/pip/pytest-6.2.2

4 years agoMerge pull request #1345 from pallets/dependabot/pip/pre-commit-2.10.0
dependabot-preview[bot] [Mon, 1 Feb 2021 10:07:15 +0000 (10:07 +0000)] 
Merge pull request #1345 from pallets/dependabot/pip/pre-commit-2.10.0

4 years agoBump pytest from 6.2.1 to 6.2.2 1346/head
dependabot-preview[bot] [Mon, 1 Feb 2021 09:55:12 +0000 (09:55 +0000)] 
Bump pytest from 6.2.1 to 6.2.2

Bumps [pytest](https://github.com/pytest-dev/pytest) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/6.2.1...6.2.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
4 years agoBump pre-commit from 2.9.3 to 2.10.0 1345/head
dependabot-preview[bot] [Mon, 1 Feb 2021 09:55:02 +0000 (09:55 +0000)] 
Bump pre-commit from 2.9.3 to 2.10.0

Bumps [pre-commit](https://github.com/pre-commit/pre-commit) from 2.9.3 to 2.10.0.
- [Release notes](https://github.com/pre-commit/pre-commit/releases)
- [Changelog](https://github.com/pre-commit/pre-commit/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pre-commit/pre-commit/compare/v2.9.3...v2.10.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
4 years agoMerge pull request #1344 from pallets/dependabot/pip/tox-3.21.3
dependabot-preview[bot] [Mon, 1 Feb 2021 09:53:33 +0000 (09:53 +0000)] 
Merge pull request #1344 from pallets/dependabot/pip/tox-3.21.3

4 years agoBump tox from 3.20.1 to 3.21.3 1344/head
dependabot-preview[bot] [Mon, 1 Feb 2021 09:49:33 +0000 (09:49 +0000)] 
Bump tox from 3.20.1 to 3.21.3

Bumps [tox](https://github.com/tox-dev/tox) from 3.20.1 to 3.21.3.
- [Release notes](https://github.com/tox-dev/tox/releases)
- [Changelog](https://github.com/tox-dev/tox/blob/master/docs/changelog.rst)
- [Commits](https://github.com/tox-dev/tox/compare/3.20.1...3.21.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
4 years agoMerge branch '2.11.x'
David Lord [Sun, 31 Jan 2021 16:48:44 +0000 (08:48 -0800)] 
Merge branch '2.11.x'

4 years agorelease version 2.11.3 2.11.3
David Lord [Sun, 31 Jan 2021 16:44:37 +0000 (08:44 -0800)] 
release version 2.11.3

4 years agoMerge pull request #1343 from pallets/urlize-speedup
David Lord [Sun, 31 Jan 2021 16:15:28 +0000 (08:15 -0800)] 
Merge pull request #1343 from pallets/urlize-speedup

backport urlize speedup

4 years agospeed up urlize matching 1343/head
David Lord [Sun, 31 Jan 2021 15:54:40 +0000 (07:54 -0800)] 
speed up urlize matching

4 years agoMerge pull request #1310 from pallets/pre-commit-ci-update-config
David Lord [Sun, 31 Jan 2021 07:09:37 +0000 (23:09 -0800)] 
Merge pull request #1310 from pallets/pre-commit-ci-update-config

[pre-commit.ci] pre-commit autoupdate

4 years agofix new formatting issues 1310/head
David Lord [Sun, 31 Jan 2021 07:07:30 +0000 (23:07 -0800)] 
fix new formatting issues

4 years ago[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] [Mon, 25 Jan 2021 16:41:12 +0000 (16:41 +0000)] 
[pre-commit.ci] pre-commit autoupdate

4 years agoMerge pull request #1195 from bebleo/add_mailto_link_support
David Lord [Sun, 31 Jan 2021 06:55:14 +0000 (22:55 -0800)] 
Merge pull request #1195 from bebleo/add_mailto_link_support

Improve and extend urlize

4 years agorefactor urlize function 1195/head
David Lord [Sun, 31 Jan 2021 06:19:54 +0000 (22:19 -0800)] 
refactor urlize function

don't try other url types if one already matched
no-op function if trim is not enabled
avoid backtracking when matching trailing punctuation
match head and tail punctuation separately
don't scan for unbalanced parentheses more than necessary
ensure email domain starts and ends with a word character

4 years agoupdate docs on adding extensions (#1237)
sixtyfathoms [Sun, 31 Jan 2021 00:20:26 +0000 (14:20 -1000)] 
update docs on adding extensions (#1237)

4 years agoupdate urlize docs, clean up code
David Lord [Sat, 30 Jan 2021 21:23:04 +0000 (13:23 -0800)] 
update urlize docs, clean up code

move regexes near implementation
commented verbose regex for http pattern
renamed extra_uri_schemes to extra_schemes

4 years agoImprove diction (amount -> number) (#1341)
Roy Smith [Sat, 30 Jan 2021 15:53:38 +0000 (10:53 -0500)] 
Improve diction (amount -> number) (#1341)

4 years agoImprove and extend urlize
Bebleo [Sun, 19 Apr 2020 09:42:12 +0000 (05:42 -0400)] 
Improve and extend urlize

4 years agoupdate docs about required blocks (#1340)
David Lord [Sat, 30 Jan 2021 13:47:23 +0000 (05:47 -0800)] 
update docs about required blocks (#1340)

4 years agoMerge pull request #1243 from MLH-Fellowship/deprecate-extension
Amy Lei [Sat, 30 Jan 2021 03:17:45 +0000 (22:17 -0500)] 
Merge pull request #1243 from MLH-Fellowship/deprecate-extension

 deprecate 'autoescape'  and 'with' extensions for removal in 3.1

4 years agodeprecate 'with' and 'autoescape' extensions 1243/head
FawziyahAlebiosu [Thu, 18 Jun 2020 20:06:46 +0000 (16:06 -0400)] 
deprecate 'with' and 'autoescape' extensions

4 years agoMerge pull request #1233 from MLH-Fellowship/required-blocks
Amy Lei [Fri, 29 Jan 2021 15:36:54 +0000 (10:36 -0500)] 
Merge pull request #1233 from MLH-Fellowship/required-blocks

add required attribute to blocks

4 years agoadd required attribute to blocks 1233/head
Amy [Wed, 10 Jun 2020 20:09:09 +0000 (16:09 -0400)] 
add required attribute to blocks

required blocks must be overridden at some point, although not
necessarily by the direct child template

4 years agoMerge pull request #1339 from mkrizek/issue-1335
David Lord [Thu, 28 Jan 2021 14:19:59 +0000 (06:19 -0800)] 
Merge pull request #1339 from mkrizek/issue-1335

native_concat: pass only strings to literal_eval

4 years agonative_concat: pass only strings to literal_eval 1339/head
Martin Krizek [Thu, 28 Jan 2021 09:08:50 +0000 (10:08 +0100)] 
native_concat: pass only strings to literal_eval

If there is only single node and it is not a string, there is no point
in passing it into ``literal_eval``, just return it immediately.

One of the examples where passing a non-string node into
``literal_eval`` would actually cause problems is when the node is
``Undefined``. On Python 3.10 this would cause ``UndefinedError``
instead of just ``Undefined`` being returned.

Fixes #1335

4 years agoFix "If" example in documentation (#1337)
Adam Johnson [Tue, 26 Jan 2021 13:38:00 +0000 (13:38 +0000)] 
Fix "If" example in documentation (#1337)

Fix "If" example in documentation

4 years agoadd 'linetable' to the preserved CodeType attributes (#1334)
Thomas Moschny [Tue, 19 Jan 2021 20:01:18 +0000 (21:01 +0100)] 
add 'linetable' to the preserved CodeType attributes (#1334)

add 'linetable' to the preserved CodeType attributes

co_linetable replaces co_lnotab as part of PEP 626 in Python 3.10.

4 years agoMerge pull request #1329 from pallets/dependabot/pip/pytest-6.2.1
dependabot-preview[bot] [Fri, 1 Jan 2021 08:39:58 +0000 (08:39 +0000)] 
Merge pull request #1329 from pallets/dependabot/pip/pytest-6.2.1

4 years agoBump pytest from 6.1.2 to 6.2.1 1329/head
dependabot-preview[bot] [Fri, 1 Jan 2021 08:35:39 +0000 (08:35 +0000)] 
Bump pytest from 6.1.2 to 6.2.1

Bumps [pytest](https://github.com/pytest-dev/pytest) from 6.1.2 to 6.2.1.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/6.1.2...6.2.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
4 years agoMerge pull request #1330 from pallets/dependabot/pip/pre-commit-2.9.3
dependabot-preview[bot] [Fri, 1 Jan 2021 08:34:04 +0000 (08:34 +0000)] 
Merge pull request #1330 from pallets/dependabot/pip/pre-commit-2.9.3

4 years agoBump pre-commit from 2.9.2 to 2.9.3 1330/head
dependabot-preview[bot] [Fri, 1 Jan 2021 08:31:30 +0000 (08:31 +0000)] 
Bump pre-commit from 2.9.2 to 2.9.3

Bumps [pre-commit](https://github.com/pre-commit/pre-commit) from 2.9.2 to 2.9.3.
- [Release notes](https://github.com/pre-commit/pre-commit/releases)
- [Changelog](https://github.com/pre-commit/pre-commit/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pre-commit/pre-commit/compare/v2.9.2...v2.9.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>