summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Reports/reports
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-09-25 15:49:25 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-09-25 15:49:25 -0400
commit3b3ecb4fcba471d33dbd118c02798e6f3f4b9927 (patch)
treeaf85e3850935cd9e076d4e0da29f287fa9dcaefe /src/lib/Bcfg2/Server/Reports/reports
parenta74636278353b829f3589f6e671f1d56172b291c (diff)
downloadbcfg2-3b3ecb4fcba471d33dbd118c02798e6f3f4b9927.tar.gz
bcfg2-3b3ecb4fcba471d33dbd118c02798e6f3f4b9927.tar.bz2
bcfg2-3b3ecb4fcba471d33dbd118c02798e6f3f4b9927.zip
various pylint fixes
Diffstat (limited to 'src/lib/Bcfg2/Server/Reports/reports')
-rw-r--r--src/lib/Bcfg2/Server/Reports/reports/templatetags/syntax_coloring.py5
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