diff options
-rw-r--r-- | CHANGES | 4 | ||||
-rw-r--r-- | pygments/formatters/html.py | 2 | ||||
-rw-r--r-- | pygments/styles/__init__.py | 4 |
3 files changed, 6 insertions, 4 deletions
@@ -1,8 +1,8 @@ Pygments changelog ================== -Version 0.7 ------------ +Version 0.7 (in development) +---------------------------- (codename to be selected, released Feb XX, 2007) - Made it possible to just drop style modules into the `styles` subpackage diff --git a/pygments/formatters/html.py b/pygments/formatters/html.py index cc2a4c19..f44053c7 100644 --- a/pygments/formatters/html.py +++ b/pygments/formatters/html.py @@ -5,6 +5,8 @@ Formatter for HTML output. + TODO: this is a bit of a mess and not subclassable ATM. + :copyright: 2006 by Georg Brandl, Armin Ronacher. :license: BSD, see LICENSE for more details. """ diff --git a/pygments/styles/__init__.py b/pygments/styles/__init__.py index 0e1819e9..e5a6553d 100644 --- a/pygments/styles/__init__.py +++ b/pygments/styles/__init__.py @@ -45,12 +45,12 @@ def get_style_by_name(name): try: mod = __import__('pygments.styles.' + mod, None, None, [cls]) except ImportError: - raise ValueError("Style module %r not found" % mod + + raise ValueError("Could not find style module %r" % mod + (builtin and ", though it should be builtin") + ".") try: return getattr(mod, cls) except AttributeError: - raise ValueError("Style class %r not found in style module." % cls) + raise ValueError("Could not find style class %r in style module." % cls) def get_all_styles(): |