diff options
author | blackbird <devnull@localhost> | 2006-12-21 22:10:34 +0100 |
---|---|---|
committer | blackbird <devnull@localhost> | 2006-12-21 22:10:34 +0100 |
commit | f86e5908ca4c35bcbe8fe25ba839ff5c9a7a9f34 (patch) | |
tree | 98237a777c718b58116b68e7643c79e76acf10f8 /pygments/util.py | |
parent | 95377ce6c229ec8cb1df8e358337fc524b8476c8 (diff) | |
download | pygments-f86e5908ca4c35bcbe8fe25ba839ff5c9a7a9f34.tar.gz |
[svn] implemented filters for pygments (first approach, api might change), it's impossible at the moment to add filters by using pygmentize
Diffstat (limited to 'pygments/util.py')
-rw-r--r-- | pygments/util.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pygments/util.py b/pygments/util.py index d66eabd6..87ee817a 100644 --- a/pygments/util.py +++ b/pygments/util.py @@ -37,8 +37,8 @@ def get_bool_opt(options, optname, default=None): return False else: raise OptionError('Invalid value %r for option %s; use ' - '1/0, yes/no, true/false, on/off' % - string, optname) + '1/0, yes/no, true/false, on/off' % ( + string, optname)) def get_int_opt(options, optname, default=None): @@ -47,8 +47,8 @@ def get_int_opt(options, optname, default=None): return int(string) except ValueError: raise OptionError('Invalid value %r for option %s; you ' - 'must give an integer value' % - string, optname) + 'must give an integer value' % ( + string, optname)) def get_list_opt(options, optname, default=None): @@ -59,8 +59,8 @@ def get_list_opt(options, optname, default=None): return list(val) else: raise OptionError('Invalid value %r for option %s; you ' - 'must give a list value' % - val, optname) + 'must give a list value' % ( + val, optname)) def make_analysator(f): |