Removing unused imports from ietf/tests.py. Using the right Exception type in soup2html.

- Legacy-Id: 283
This commit is contained in:
Henrik Levkowetz 2007-06-10 11:43:19 +00:00
parent 0786a6b852
commit 06eae09af4
2 changed files with 1 additions and 3 deletions

View file

@ -1,12 +1,10 @@
import os import os
import re import re
import sys
import traceback import traceback
import urllib2 as urllib import urllib2 as urllib
from ietf.utils import soup2text as html2text from ietf.utils import soup2text as html2text
from difflib import unified_diff from difflib import unified_diff
import textwrap
import django.test.simple import django.test.simple
from django.test import TestCase from django.test import TestCase

View file

@ -48,7 +48,7 @@ def render(node, encoding='latin-1', pre=False):
else: else:
words.append(child.text) words.append(child.text)
else: else:
raise ValueException("Unexpected node type: '%s'" % child) raise ValueError("Unexpected node type: '%s'" % child)
if words: if words:
blocks.append(para(words, node.pre)) blocks.append(para(words, node.pre))