Skip to content

Commit 06eae09

Browse files
committed
Removing unused imports from ietf/tests.py. Using the right Exception type in soup2html.
- Legacy-Id: 283
1 parent 0786a6b commit 06eae09

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

ietf/tests.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
import os
22
import re
3-
import sys
43
import traceback
54
import urllib2 as urllib
65

76
from ietf.utils import soup2text as html2text
87
from difflib import unified_diff
9-
import textwrap
108

119
import django.test.simple
1210
from django.test import TestCase

ietf/utils/soup2text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def render(node, encoding='latin-1', pre=False):
4848
else:
4949
words.append(child.text)
5050
else:
51-
raise ValueException("Unexpected node type: '%s'" % child)
51+
raise ValueError("Unexpected node type: '%s'" % child)
5252
if words:
5353
blocks.append(para(words, node.pre))
5454

0 commit comments

Comments
 (0)