Skip to content

Commit d23165f

Browse files
committed
correct error message on textilefactory to reflect reality.
1 parent 88b1e20 commit d23165f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

textile/textilefactory.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class TextileFactory(object):
3131
>>> f = TextileFactory(html_type='invalid')
3232
Traceback (most recent call last):
3333
...
34-
ValueError: html_type must be 'html', 'xhtml', or 'html5'
34+
ValueError: html_type must be 'xhtml' or 'html5'
3535
3636
3737
"""
@@ -67,8 +67,8 @@ def __init__(self, restricted=False, lite=False, sanitize=False,
6767
else:
6868
self.method_parms['head_offset'] = head_offset
6969

70-
if html_type not in ['html', 'xhtml', 'html5']:
71-
raise ValueError("html_type must be 'html', 'xhtml', or 'html5'")
70+
if html_type not in ['xhtml', 'html5']:
71+
raise ValueError("html_type must be 'xhtml' or 'html5'")
7272
else:
7373
self.class_parms['html_type'] = html_type
7474

0 commit comments

Comments
 (0)