"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Cheetah/NameMapper.py" between
cheetah3-3.2.3.tar.gz and cheetah3-3.2.4.tar.gz

About: Cheetah3 is a template engine and code generation tool for e.g. for Web development or Java, SQL, LaTeX, form email ... (written in Python).

NameMapper.py  (cheetah3-3.2.3):NameMapper.py  (cheetah3-3.2.4)
skipping to change at line 141 skipping to change at line 141
Cheetah comes with both a C version and a Python version of NameMapper. The C Cheetah comes with both a C version and a Python version of NameMapper. The C
version is significantly faster and the exception tracebacks are much easier to version is significantly faster and the exception tracebacks are much easier to
read. It's still slower than standard Python syntax, but you won't notice the read. It's still slower than standard Python syntax, but you won't notice the
difference in realistic usage scenarios. difference in realistic usage scenarios.
Cheetah uses the optimized C version (_namemapper.c) if it has Cheetah uses the optimized C version (_namemapper.c) if it has
been compiled or falls back to the Python version if not. been compiled or falls back to the Python version if not.
""" """
from collections import Mapping
import inspect import inspect
from pprint import pformat from pprint import pformat
from Cheetah.compat import PY2 from Cheetah.compat import PY2
if PY2:
from collections import Mapping
else:
from collections.abc import Mapping
_INCLUDE_NAMESPACE_REPR_IN_NOTFOUND_EXCEPTIONS = False _INCLUDE_NAMESPACE_REPR_IN_NOTFOUND_EXCEPTIONS = False
_ALLOW_WRAPPING_OF_NOTFOUND_EXCEPTIONS = True _ALLOW_WRAPPING_OF_NOTFOUND_EXCEPTIONS = True
__all__ = ['NotFound', __all__ = ['NotFound',
'hasKey', 'hasKey',
'valueForKey', 'valueForKey',
'valueForName', 'valueForName',
'valueFromSearchList', 'valueFromSearchList',
'valueFromFrameOrSearchList', 'valueFromFrameOrSearchList',
'valueFromFrame', 'valueFromFrame',
 End of changes. 3 change blocks. 
1 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)