aboutsummaryrefslogtreecommitdiffstats
path: root/mako/exceptions.py
Commit message (Collapse)AuthorAgeFilesLines
* - update copyrightMike Bayer2019-05-311-1/+1
| | | | Change-Id: I258e9ff77e5a9ac687cd20d33b6d75de7c79b4dc
* Use tox / zimportsMike Bayer2019-05-311-32/+64
| | | | Change-Id: Ia047c7052a6d242c2cf1c7a83981f1e38ea4d928
* Use utf-8 encoding for traceback source with no encoding in py3kMike Bayer2019-05-091-0/+2
| | | | | | | | | | 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
* - happy new yearMike Bayer2016-03-101-1/+1
|
* - get flake8 to pass fully for mako/ (tests are a much bigger deal)Mike Bayer2015-03-251-12/+33
|
* happy new yearrel_1_0_1Mike Bayer2015-01-221-1/+1
|
* - fix the line number scheme to be consistently 1-based, bothMike Bayer2014-05-211-1/+2
| | | | | | | for the template and the module - turn full_line_map into a list - add another start source to help with when a render callable begins
* Merge branch 'w_json_metadata'Mike Bayer2014-04-281-11/+8
|\
| * - add module source thing as ModuleInfo.get_module_source_metadataMike Bayer2014-04-141-20/+7
| |
| * - Template modules now generate a JSON "metadata" structure at the bottomMike Bayer2014-03-141-8/+18
| | | | | | | | | | | | | | | | | | of the source file which includes parseable information about the templates' source file, encoding etc. as well as a mapping of module source lines to template lines, thus replacing the "# SOURCE LINE" markers throughout the source code. The structure also indicates those lines that are explicitly not part of the template's source; the goal here is to allow integration with coverage tools.
* | - will now be 1.0Mike Bayer2014-04-281-6/+7
|/ | | | | - drop python 2.4, 2.5 support - various pep8ing
* - 2014Mike Bayer2014-01-091-1/+1
| | | | - move CHANGES to changelog.rst
* update copyrightMike Bayer2013-08-031-1/+1
|
* - get the pygments install to be easily switched on/offMike Bayer2012-11-121-2/+12
| | | | | - fix test_exceptions to always call non-pygments tests - update test for py3k transition
* - first pass at running a py3k compatible base in py2k as well.Mike Bayer2012-11-111-7/+9
| | | | | having some weird unicode issues I can't debug; the meaning of str.encode() seems to be changing globally somehow
* epic trailing whitespace removalMike Bayer2012-07-071-21/+21
|
* Add some `reStructuredText` (or `Sphinx` related) markups:Vincent Férotin2012-05-141-4/+4
| | | | | add more litterals, systematicaly use ``.. sourcecode::`` before code samples, add some ``:func:``, ``:class:`` and so on, fix some links, etc.
* Fix some various typos in documentation:Vincent Férotin2012-05-141-9/+9
| | | | | | fix misspelled words, remove line ending spaces, change ``-`` to ``--``, add some ``'`` between subject and 'to be' verb (e.g. "it's", "i'm"), add some ending dots to sentences, change some letters "capitalness", etc.
* Brought all modules into PEP 8 width complianceBenjamin Trofatter2012-03-241-7/+14
|
* - apply the #125 patchMike Bayer2012-03-241-0/+3
| | | | - changelog
* - [feature] The html_error_template() will nowMike Bayer2012-03-121-4/+47
| | | | | | | apply Pygments highlighting to the source code displayed in the traceback, if Pygments if available. Courtesy Ben Trofatter [ticket:95]
* - [bug] Added "white-space:pre" style to html_error_template()Mike Bayer2012-01-161-0/+2
| | | | | for code blocks so that indentation is preserved [ticket:173]
* - [bug] The exception message in the html_error_templateMike Bayer2012-01-161-1/+1
| | | | is now escaped with the HTML filter. [ticket:142]
* 2012Mike Bayer2012-01-161-1/+1
|
* - a slight adjustment to the "highlight" logicMike Bayer2011-03-221-2/+0
| | | | | | for generating template bound stacktraces. Will stick to known template source lines without any extra guessing. [ticket:165]
* - add AUTHORS fileMike Bayer2011-02-191-2/+2
| | | | - convert heading copyrights to 2006-2011, reference AUTHORS file
* - now that trailing whitespace comes up in red, need to get rid of itMike Bayer2011-01-191-22/+22
|
* - initial sphinx buildout. only includes "usage" so far, needs more work.Mike Bayer2010-11-121-25/+2
|
* - Fixed call to "unicode.strip" inMike Bayer2010-06-221-1/+1
| | | | | exceptions.text_error_template which is not Py3k compatible. [ticket:137]
* - Added conditional to RichTracebackMike Bayer2010-05-311-33/+44
| | | | | | | | | such that if no traceback is passed and sys.exc_info() has been reset, the formatter just returns blank for the "traceback" portion. [ticket:135] - some long line cleanup
* - Fixed error formatting when a stacktraceMike Bayer2010-04-171-0/+2
| | | | | | line contains no line number, as in when inside an eval/exec-generated function. [ticket:132]
* - Fixed sometimes incorrect usage ofMike Bayer2010-03-241-11/+20
| | | | | | exc.__class__.__name__ in html/text error templates when using Python 2.4 [ticket:131]
* - RichTraceback(), html_error_template().render(),Mike Bayer2010-03-051-11/+18
| | | | | | text_error_template().render() now accept "error" and "traceback" as optional arguments, and these are now actually used. [ticket:122]
* some effort towards [ticket:122] , needs testsMike Bayer2010-03-051-19/+30
|
* - merged -r481:499 of py3k branch.Mike Bayer2010-03-041-14/+23
| | | | | | - Python 3 support is added ! See README.py3k for installation and testing notes. [ticket:119]
* move lib/mako to makoMike Bayer2010-02-051-0/+283