From a28715c2c667f0dfa25dedaad20e4d7b5e081726 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sun, 13 Sep 2015 13:47:04 -0700 Subject: [PATCH] IrcChannel: allow .deepcopy() --- classes.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/classes.py b/classes.py index 9216063..cdb57f4 100644 --- a/classes.py +++ b/classes.py @@ -6,6 +6,7 @@ import threading import ssl from collections import defaultdict import hashlib +from copy import deepcopy from log import log from conf import conf @@ -333,6 +334,9 @@ class IrcChannel(): s.discard(target) self.users.discard(target) + def deepcopy(self): + return deepcopy(self) + ### FakeIRC classes, used for test cases class FakeIRC(Irc):