summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Hatch <tim@timhatch.com>2014-10-15 07:59:20 -0700
committerTim Hatch <tim@timhatch.com>2014-10-15 07:59:20 -0700
commit410f5b1f6998c2cf2ca67070fc20680abc6e0e5d (patch)
tree94410739f2f4d5cbdab4adf01d20e76026e81890
parent386534dc36c4b983e5d06668266fda36d888f99f (diff)
downloadpygments-410f5b1f6998c2cf2ca67070fc20680abc6e0e5d.tar.gz
Minor cleanup in TestcaseFormatter
-rw-r--r--pygments/formatters/other.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/pygments/formatters/other.py b/pygments/formatters/other.py
index d8e5f4f7..6100f70b 100644
--- a/pygments/formatters/other.py
+++ b/pygments/formatters/other.py
@@ -136,10 +136,8 @@ class TestcaseFormatter(Formatter):
def __init__(self, **options):
Formatter.__init__(self, **options)
- #if self.encoding != 'utf-8':
- # print >>sys.stderr, "NOTICE: Forcing encoding to utf-8, as all Pygments source is"
if self.encoding is not None and self.encoding != 'utf-8':
- raise ValueError("Only None and utf-u are allowed encodings.")
+ raise ValueError("Only None and utf-8 are allowed encodings.")
def format(self, tokensource, outfile):
indentation = ' ' * 12