diff options
author | Tim Hatch <tim@timhatch.com> | 2014-10-15 07:59:20 -0700 |
---|---|---|
committer | Tim Hatch <tim@timhatch.com> | 2014-10-15 07:59:20 -0700 |
commit | 410f5b1f6998c2cf2ca67070fc20680abc6e0e5d (patch) | |
tree | 94410739f2f4d5cbdab4adf01d20e76026e81890 | |
parent | 386534dc36c4b983e5d06668266fda36d888f99f (diff) | |
download | pygments-410f5b1f6998c2cf2ca67070fc20680abc6e0e5d.tar.gz |
Minor cleanup in TestcaseFormatter
-rw-r--r-- | pygments/formatters/other.py | 4 |
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 |