diff options
author | Eevee (Alex Munroe) <eevee.git@veekun.com> | 2014-02-11 13:18:39 -0800 |
---|---|---|
committer | Eevee (Alex Munroe) <eevee.git@veekun.com> | 2014-02-11 13:18:39 -0800 |
commit | 836e5f97e84088cd3104cb3a30bf02e8a6c0a9a5 (patch) | |
tree | 89d1b80846f6feca036096ecbb6b28323fa0eb21 /mako/compat.py | |
parent | a5740079856fcb2244dcebc7fb81da739a4094fd (diff) | |
download | external_python_mako-836e5f97e84088cd3104cb3a30bf02e8a6c0a9a5.tar.gz external_python_mako-836e5f97e84088cd3104cb3a30bf02e8a6c0a9a5.tar.bz2 external_python_mako-836e5f97e84088cd3104cb3a30bf02e8a6c0a9a5.zip |
Support Python 3's keyword-only arguments.
Previously, they would parse correctly in Python 3, but any keyword-only
arguments would be quietly lost, and the user would either get
`TypeError: foo() got an unexpected keyword argument...` or the
confusing behavior of having the keyword argument overwritten with
whatever's in the context with the same name.
Diffstat (limited to 'mako/compat.py')
-rw-r--r-- | mako/compat.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mako/compat.py b/mako/compat.py index 31da8bd..c5ef84b 100644 --- a/mako/compat.py +++ b/mako/compat.py @@ -3,6 +3,7 @@ import time py3k = sys.version_info >= (3, 0) py33 = sys.version_info >= (3, 3) +py2k = sys.version_info < (3,) py26 = sys.version_info >= (2, 6) py25 = sys.version_info >= (2, 5) jython = sys.platform.startswith('java') |