diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-09-25 15:49:25 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-09-25 15:49:25 -0400 |
commit | 3b3ecb4fcba471d33dbd118c02798e6f3f4b9927 (patch) | |
tree | af85e3850935cd9e076d4e0da29f287fa9dcaefe /src/lib/Bcfg2/Server/Reports/reports/templatetags/syntax_coloring.py | |
parent | a74636278353b829f3589f6e671f1d56172b291c (diff) | |
download | bcfg2-3b3ecb4fcba471d33dbd118c02798e6f3f4b9927.tar.gz bcfg2-3b3ecb4fcba471d33dbd118c02798e6f3f4b9927.tar.bz2 bcfg2-3b3ecb4fcba471d33dbd118c02798e6f3f4b9927.zip |
various pylint fixes
Diffstat (limited to 'src/lib/Bcfg2/Server/Reports/reports/templatetags/syntax_coloring.py')
-rw-r--r-- | src/lib/Bcfg2/Server/Reports/reports/templatetags/syntax_coloring.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/Bcfg2/Server/Reports/reports/templatetags/syntax_coloring.py b/src/lib/Bcfg2/Server/Reports/reports/templatetags/syntax_coloring.py index 70ef49bc1..bd379b98d 100644 --- a/src/lib/Bcfg2/Server/Reports/reports/templatetags/syntax_coloring.py +++ b/src/lib/Bcfg2/Server/Reports/reports/templatetags/syntax_coloring.py @@ -8,16 +8,15 @@ from Bcfg2.Compat import u_str register = template.Library() -# pylint: disable=E0611,F0401 +# pylint: disable=E0611 try: from pygments import highlight from pygments.lexers import get_lexer_by_name from pygments.formatters import HtmlFormatter colorize = True - except: colorize = False -# pylint: enable=E0611,F0401 +# pylint: enable=E0611 @register.filter |