From 073333c79158a9d21245d3ee50dac279397549f6 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Wed, 18 Apr 2007 18:33:37 -0700 Subject: [PATCH] iputil/testutil: fix pyflakes errors/warnings --- src/allmydata/test/test_iputil.py | 5 ++--- src/allmydata/util/iputil.py | 1 - src/allmydata/util/testutil.py | 1 + 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/allmydata/test/test_iputil.py b/src/allmydata/test/test_iputil.py index 1963ac2d..a2ffe08d 100644 --- a/src/allmydata/test/test_iputil.py +++ b/src/allmydata/test/test_iputil.py @@ -1,9 +1,8 @@ -#!/usr/bin/env python -from allmydata.util import iputil, testutil +from allmydata.util import iputil from twisted.trial import unittest -import re, sys +import re DOTTED_QUAD_RE=re.compile("^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$") diff --git a/src/allmydata/util/iputil.py b/src/allmydata/util/iputil.py index 82752cd2..5b52a3d0 100644 --- a/src/allmydata/util/iputil.py +++ b/src/allmydata/util/iputil.py @@ -8,7 +8,6 @@ import re, socket, sys # from Twisted from twisted.internet import defer -from twisted.python import log from twisted.internet import reactor from twisted.internet.protocol import DatagramProtocol from twisted.internet.utils import getProcessOutput diff --git a/src/allmydata/util/testutil.py b/src/allmydata/util/testutil.py index 72595c1f..fb6dc760 100644 --- a/src/allmydata/util/testutil.py +++ b/src/allmydata/util/testutil.py @@ -39,6 +39,7 @@ class TestMixin(SignalMixin): def tearDown(self): if self.repeatable: + import repeatable_random repeatable_random.restore_non_repeatability() self.clean_pending(required_to_quiesce=True) -- 2.45.2