summaryrefslogtreecommitdiff
path: root/docutils/utils/code_analyzer.py
Commit message (Collapse)AuthorAgeFilesLines
* Update pygments integration.milde2021-01-031-6/+1
| | | | | | | Pygments no longer uses the pkg_resources.DistributionNotFound exception, so we don't need to import it. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8599 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Don't drop "code" directive content if Warnings are silenced.milde2020-12-161-2/+2
| | | | | | | | | | | | | | Output the content without syntax highlight to prevent data loss. It is still recommended to solve the issue instead of just silencing the warning. (Languages that are unknown to the Pygments Lexer should be specified as :class: option value instead of directive argument.) Thanks to Jérôme Carretero for the report and suggestion. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8596 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* py3: Replace 'foo.next()' with 'next(foo)'milde2019-08-261-1/+1
| | | | | | | | | The former only works in Python 2, while the latter works in Python 2.7 and 3.x. Signed-off-by: Stephen Finucane <stephen@that.guru> git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8361 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Drop support for Python 3.3milde2019-08-261-1/+1
| | | | | | | | | | This doesn't involve a whole lot of changes, but references to Python 3.3 (plus some to the already removed Python 2.6) are removed and 'setup.py' is updated as necessary. Signed-off-by: Stephen Finucane <stephen@that.guru> git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8338 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix code_analyzer problem under Python 3.3.milde2018-01-161-1/+6
| | | | | | | Handle pkg_resources.DistributionNotFound error raised by pygments if no lexer can be found for a "code" role or directive. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8213 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Drop compatibility code for Python 2.4 and 2.5.milde2017-08-111-5/+8
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8163 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Safe import of "pygments": syntax errors with Py 3.1 and 3.2.milde2015-04-201-1/+1
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@7884 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* docutils.utils is now a package (providing a place for sub-modules)milde2011-12-201-0/+134
important:: docutils/math, docutils/error_reporting.py, and docutils/urischemes.py will move to the utils package in the next release, too. Code importing these modules needs to adapt. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@7267 929543f6-e4f2-0310-98a6-ba3bd3dd1d04