| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Improved the line-number tracking for source lines inside of Python ``<%
... %>`` blocks, such that text- and HTML-formatted exception traces such
as that of :func:`.html_error_template` now report the correct source line
inside the block, rather than the first line of the block itself.
Exceptions in ``<%! ... %>`` blocks which get raised while loading the
module are still not reported correctly, as these are handled before the
Mako code is generated. Pull request courtesy Martin von Gagern.
Closes: #297
Pull-request: https://github.com/sqlalchemy/mako/pull/297
Pull-request-sha: 60ad749604f8de0a9b8133430995045a93d0939c
Change-Id: I2086e4370e8e2db7099de01743840286f0160efc
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
As this is an old module that keeps changing with new Python
releases, combined with the fact that we no longer use "import *",
remove all unused functions from this module so that the list
of imports we are maintaining is much shorter.
Python 3.8 is also added to tox.ini with more adjustments to
test_exceptions to accommodate for quoting differences.
Fixes: #296
Change-Id: I0cea7d21ecb2be9335e0845ae7fbd06d468a137b
|
| |
|
| |
|
|
|
|
|
|
|
| |
- fix MANIFEST to remove old names, add tox.ini
- reformat .gitignore
Change-Id: I450672f92ebfb43a023df502de795f24ad809884
|
|
|
|
| |
Change-Id: I258e9ff77e5a9ac687cd20d33b6d75de7c79b4dc
|
|
|
|
| |
Change-Id: Ibb0af4ae3e89ede0d50ea5e16f66ad9ce15ffec5
|
|
|
|
| |
Change-Id: I3650915ea2e45c48f0823b08084eecb46ee17a14
|
|
|
|
| |
Change-Id: Ia047c7052a6d242c2cf1c7a83981f1e38ea4d928
|
|
|
|
| |
Change-Id: I531f9eb3d2277c5a201c2284aa87cae5c4e1b11a
|
|
|
|
| |
Change-Id: Ic7b1dadd186ec007e9e0116bb196f9c5ac85aaa4
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Added a default encoding of "utf-8" when the :class:`.RichTraceback`
object retrieves Python source lines from a Python traceback; as these
are bytes in Python 3 they need to be decoded so that they can be
formatted in the template.
Fixes: #293
Change-Id: I41a5c09422d6500c7cab2423ed14ac951a64e2f4
|
| |
|
| |
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Since Python 3.8, class ast.Constant is used for all constants.
Old classes ast.Num, ast.Str, ast.Bytes, ast.NameConstant and
ast.Ellipsis are still available, but they will be removed in
future Python releases.
Further corrected the previous fix for :ticket:`287` as it relied upon
an attribute that is monkeypatched by Python's ``ast`` module for some
reason, which fails if ``ast`` hasn't been imported; the correct
attribute ``Constant.value`` is now used. Also note the issue
was mis-numbered in the previous changelog note.
References: https://github.com/Pylons/pyramid_mako/issues/47
Fixes: #287
Closes: #292
Pull-request: https://github.com/sqlalchemy/mako/pull/292
Pull-request-sha: b48081aa08fdc1cb6e0196b59a2d0eff35adcd94
Change-Id: Ic3fd1975e608b6890410f3fd4ad4d949478dc45e
|
|/
|
|
|
|
| |
to changelog by the common release scripts
Change-Id: Ib31e19482776723bf3c70bb251e06018cb08cd95
|
|
|
|
|
| |
This has been supported since 8bebfc205230d41429a88c98b56d45acf7e67226
but isn't in the docs.
|
|\
| |
| |
| | |
Change-Id: I5c7410a0445ee50d3c42d412a9bfe682f1f567f4
|
| | |
|
|/ |
|
| |
|
| |
|
|
|
|
| |
Change-Id: Ifcd32c227700d7a9bc1eff6d26cd45ce6a04b0cf
|
| |
|
|
|
|
|
|
|
|
| |
Python 3.8 seems to require this be present for expression
generation to succeed.
Fixes: #287
Change-Id: I4a3ac22c74e3c96f5f15d349fc8fe2523d6e7def
|
| |
|
|
|
|
| |
Change-Id: I12a50d430d10fd52ab9afe8721a4964a135cfab5
|
|
|
|
| |
Change-Id: I7e5433ba1e0f6ca6e44a35664d1d4fcaa3fce545
|
|\ |
|
| |
| |
| |
| | |
Change-Id: Ia2af89ba031f2a282b795a2ea05503e766329498
|
| |
| |
| |
| | |
this is failing with more recent git/pip combinations.
|
|\ \ |
|
| | | |
|
| | |
| | |
| | |
| | | |
This reverts commit babbc711b02bb5c58e0bb50edc61ef3adc22d2a3.
|
|/ /
| |
| |
| | |
This reverts commit 9055282a969fb92c7d28bcbf83e23c65000155df.
|
|/
|
|
|
| |
this allows maintenance of the "non-standard Sphinx theme"
to remain in one place.
|
|
|
|
| |
Change-Id: I151a2351a7fadffd99c843e70c1504135a2c56c6
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Includes PR https://github.com/zzzeek/mako/pull/26 so [Travis CI passes](https://travis-ci.org/hugovk/mako/builds/329346809). The last two commits are unique to this PR.
---
Since Mako 1.0.0, Python 2.6 has been the minimum supported version:
> [general] Compatibility changes; in order to modernize the codebase, Mako is now dropping support for Python 2.4 and Python 2.5 altogether. The source base is now targeted at Python 2.6 and forwards.
http://docs.makotemplates.org/en/latest/changelog.html#change-b602a175c0ec26eaa4f42962d23cca96
This removes redundant code only relevant to Python 2.5 or earlier.
It also adds `python_requires` to setup.py, so pip won't install this version on Python 2.5 or earlier. For people with older versions, pip will install the next Mako version down.
Are all Python 3.x versions supported? If not, I'll add those to `python_requires` as well.
Change-Id: I624e1d56e79555c579278c7a5b4de9498179ffe9
Pull-request: https://github.com/zzzeek/mako/pull/27
|
|\ |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
Pull request courtesy Hugo.
(cherry picked from commit 7e6a1d7822bac275aabb3c1cc90cb67612548127)
Change-Id: I84a302c982f18762d2514c3f840331d1eb3ebcda
|
|/
|
|
|
| |
Fixes: #271
Change-Id: I88b46cfbdea9eda0b4c478dd97829bee8431ff58
|
| |
|