summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2011-08-20 21:02:55 +0200
committerJoel Rosdahl <joel@rosdahl.net>2011-08-21 15:57:19 +0200
commitc9e2260c20aa47f1f1d61924bb0f0d7ff509999b (patch)
treec2d9e4247a3684244a291ad537a1484c3f78ba84
parent326d903503c574f4fdbc2dcc9a7f3ab9dff8627d (diff)
downloadminiircd-c9e2260c20aa47f1f1d61924bb0f0d7ff509999b.tar.gz
miniircd-c9e2260c20aa47f1f1d61924bb0f0d7ff509999b.zip
Use set() instead of obsolete sets.Set()
-rwxr-xr-xminiircd9
1 files changed, 4 insertions, 5 deletions
diff --git a/miniircd b/miniircd
index a0f3cf1..7dd3b9e 100755
--- a/miniircd
+++ b/miniircd
@@ -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():