From abdf6021b21883beb51d92862caafc127d3c25ec Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Thu, 18 Feb 2010 15:03:30 +0000 Subject: tests/cross-test-*: don't use deprecated sets module set() has been a built-in since 2.4, and we don't support older versions. --- test/cross-test-server.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'test/cross-test-server.py') diff --git a/test/cross-test-server.py b/test/cross-test-server.py index ef115e2..40d121a 100644 --- a/test/cross-test-server.py +++ b/test/cross-test-server.py @@ -20,7 +20,6 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER # DEALINGS IN THE SOFTWARE. -from sets import Set import logging import gobject @@ -40,10 +39,10 @@ logging.getLogger().setLevel(1) logger = logging.getLogger('cross-test-server') -class VerboseSet(Set): +class VerboseSet(set): def add(self, thing): print '%s ok' % thing - Set.add(self, thing) + set.add(self, thing) objects = {} -- cgit v1.2.1