Removing unused imports from ietf/tests.py. Using the right Exception type in soup2html.
- Legacy-Id: 283
This commit is contained in:
parent
0786a6b852
commit
06eae09af4
|
@ -1,12 +1,10 @@
|
|||
import os
|
||||
import re
|
||||
import sys
|
||||
import traceback
|
||||
import urllib2 as urllib
|
||||
|
||||
from ietf.utils import soup2text as html2text
|
||||
from difflib import unified_diff
|
||||
import textwrap
|
||||
|
||||
import django.test.simple
|
||||
from django.test import TestCase
|
||||
|
|
|
@ -48,7 +48,7 @@ def render(node, encoding='latin-1', pre=False):
|
|||
else:
|
||||
words.append(child.text)
|
||||
else:
|
||||
raise ValueException("Unexpected node type: '%s'" % child)
|
||||
raise ValueError("Unexpected node type: '%s'" % child)
|
||||
if words:
|
||||
blocks.append(para(words, node.pre))
|
||||
|
||||
|
|
Loading…
Reference in a new issue