summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-10-01 18:13:19 +0200
committerGeorg Brandl <georg@python.org>2014-10-01 18:13:19 +0200
commit55e07ae2d60f3807bfee30b52f06be6cfccc2fc1 (patch)
tree0125670ec7ac932204c1c912e63fc29dfc818ea8
parent02a1bc6114b05715619eed310922df563e85b2fe (diff)
downloadpygments-55e07ae2d60f3807bfee30b52f06be6cfccc2fc1.tar.gz
Fix refactoring error.
-rw-r--r--pygments/lexers/__init__.py4
-rwxr-xr-xsetup.py1
2 files changed, 2 insertions, 3 deletions
diff --git a/pygments/lexers/__init__.py b/pygments/lexers/__init__.py
index 80545b6c..578a9101 100644
--- a/pygments/lexers/__init__.py
+++ b/pygments/lexers/__init__.py
@@ -144,10 +144,10 @@ def get_lexer_for_filename(_fn, code=None, **options):
Raises ClassNotFound if not found.
"""
- res = find_lexer_class_for_filename(_fn, code)(**options)
+ res = find_lexer_class_for_filename(_fn, code)
if not res:
raise ClassNotFound('no lexer for filename %r found' % _fn)
- return res
+ return res(**options)
def get_lexer_for_mimetype(_mime, **options):
diff --git a/setup.py b/setup.py
index 3d32c539..f1bbfbb2 100755
--- a/setup.py
+++ b/setup.py
@@ -15,7 +15,6 @@
* a number of output formats, presently HTML, LaTeX, RTF, SVG, all image \
formats that PIL supports and ANSI sequences
* it is usable as a command-line tool and as a library
- * ... and it highlights even Brainfuck!
:copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.