diff options
author | Tim Hatch <tim@timhatch.com> | 2014-10-15 12:59:55 -0700 |
---|---|---|
committer | Tim Hatch <tim@timhatch.com> | 2014-10-15 12:59:55 -0700 |
commit | b51bfe6f6c9b69605117ef01bfaeab71e4dabf37 (patch) | |
tree | 2493d23c58030e3a708830b312691eccec2b684e /pygments/formatters | |
parent | 10be9bec8a7969a40d4fa3483b8317e0131b1715 (diff) | |
parent | d2fb0a7db3b59040820b4e839acb1d5b529ebe0f (diff) | |
download | pygments-b51bfe6f6c9b69605117ef01bfaeab71e4dabf37.tar.gz |
Merge with -main
Diffstat (limited to 'pygments/formatters')
-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 |