diff options
author | Joel Rosdahl <joel@rosdahl.net> | 2011-08-20 21:02:55 +0200 |
---|---|---|
committer | Joel Rosdahl <joel@rosdahl.net> | 2011-08-21 15:57:19 +0200 |
commit | c9e2260c20aa47f1f1d61924bb0f0d7ff509999b (patch) | |
tree | c2d9e4247a3684244a291ad537a1484c3f78ba84 /miniircd | |
parent | 326d903503c574f4fdbc2dcc9a7f3ab9dff8627d (diff) | |
download | miniircd-c9e2260c20aa47f1f1d61924bb0f0d7ff509999b.tar.gz miniircd-c9e2260c20aa47f1f1d61924bb0f0d7ff509999b.zip |
Use set() instead of obsolete sets.Set()
Diffstat (limited to 'miniircd')
-rwxr-xr-x | miniircd | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -25,7 +25,6 @@ version = "0.2.0" import getopt import os import select -import sets import socket import string import sys @@ -36,9 +35,9 @@ class Channel(object): def __init__(self, server, name): self.__server = server self.__name = name - self.__members = sets.Set() - self.__operators = sets.Set() - self.__voiced = sets.Set() + self.__members = set() + self.__operators = set() + self.__voiced = set() self.__topic = "" def getName(self): @@ -680,7 +679,7 @@ class Client(object): client.message(line) def messageRelated(self, msg, includeSelf=False): - clients = sets.Set() + clients = set() if includeSelf: clients.add(self) for channel in self.channels.values(): |