[Python-checkins] r61134 - in doctools/trunk/sphinx: ext/refcounting.py highlighting.py
georg.brandl
python-checkins at python.org
Fri Feb 29 19:19:13 CET 2008
Author: georg.brandl
Date: Fri Feb 29 19:19:13 2008
New Revision: 61134
Modified:
doctools/trunk/sphinx/ext/refcounting.py
doctools/trunk/sphinx/highlighting.py
Log:
#2207: fix if no Pygments available.
Modified: doctools/trunk/sphinx/ext/refcounting.py
==============================================================================
--- doctools/trunk/sphinx/ext/refcounting.py (original)
+++ doctools/trunk/sphinx/ext/refcounting.py Fri Feb 29 19:19:13 2008
@@ -6,6 +6,9 @@
Supports reference count annotations for C API functions. Based on
refcount.py and anno-api.py in the old Python documentation tools.
+ Usage: Set the `refcount_file` config value to the path to the reference
+ count data file.
+
:copyright: 2008 by Georg Brandl.
:license: BSD.
"""
Modified: doctools/trunk/sphinx/highlighting.py
==============================================================================
--- doctools/trunk/sphinx/highlighting.py (original)
+++ doctools/trunk/sphinx/highlighting.py Fri Feb 29 19:19:13 2008
@@ -67,9 +67,9 @@
class PygmentsBridge(object):
def __init__(self, dest='html', stylename='sphinx'):
+ self.dest = dest
if not pygments:
return
- self.dest = dest
if stylename == 'sphinx':
style = SphinxStyle
else:
More information about the Python-checkins
mailing list