summaryrefslogtreecommitdiff
path: root/pygments/formatters
diff options
context:
space:
mode:
authorTim Hatch <tim@timhatch.com>2014-10-15 12:59:55 -0700
committerTim Hatch <tim@timhatch.com>2014-10-15 12:59:55 -0700
commitb51bfe6f6c9b69605117ef01bfaeab71e4dabf37 (patch)
tree2493d23c58030e3a708830b312691eccec2b684e /pygments/formatters
parent10be9bec8a7969a40d4fa3483b8317e0131b1715 (diff)
parentd2fb0a7db3b59040820b4e839acb1d5b529ebe0f (diff)
downloadpygments-b51bfe6f6c9b69605117ef01bfaeab71e4dabf37.tar.gz
Merge with -main
Diffstat (limited to 'pygments/formatters')
-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