iputil/testutil: fix pyflakes errors/warnings

This commit is contained in:
Brian Warner 2007-04-18 18:33:37 -07:00
parent 2d0e240466
commit 073333c791
3 changed files with 3 additions and 4 deletions

View File

@ -1,9 +1,8 @@
#!/usr/bin/env python
from allmydata.util import iputil, testutil from allmydata.util import iputil
from twisted.trial import unittest from twisted.trial import unittest
import re, sys import re
DOTTED_QUAD_RE=re.compile("^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$") DOTTED_QUAD_RE=re.compile("^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$")

View File

@ -8,7 +8,6 @@ import re, socket, sys
# from Twisted # from Twisted
from twisted.internet import defer from twisted.internet import defer
from twisted.python import log
from twisted.internet import reactor from twisted.internet import reactor
from twisted.internet.protocol import DatagramProtocol from twisted.internet.protocol import DatagramProtocol
from twisted.internet.utils import getProcessOutput from twisted.internet.utils import getProcessOutput

View File

@ -39,6 +39,7 @@ class TestMixin(SignalMixin):
def tearDown(self): def tearDown(self):
if self.repeatable: if self.repeatable:
import repeatable_random
repeatable_random.restore_non_repeatability() repeatable_random.restore_non_repeatability()
self.clean_pending(required_to_quiesce=True) self.clean_pending(required_to_quiesce=True)