summaryrefslogtreecommitdiff
path: root/test/cross-test-server.py
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2010-02-18 15:03:30 +0000
committerSimon McVittie <smcv@debian.org>2010-02-18 15:03:30 +0000
commitabdf6021b21883beb51d92862caafc127d3c25ec (patch)
treeacd4f90506d09f56d35fe873a01b5c1ae882e83e /test/cross-test-server.py
parentadd31c0964a0a659443aa534b1f114f4e0a2e7b3 (diff)
downloaddbus-python-abdf6021b21883beb51d92862caafc127d3c25ec.tar.gz
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.
Diffstat (limited to 'test/cross-test-server.py')
-rw-r--r--test/cross-test-server.py5
1 files changed, 2 insertions, 3 deletions
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 = {}