3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-23 19:19:31 +01:00

IrcChannel: allow .deepcopy()

This commit is contained in:
James Lu 2015-09-13 13:47:04 -07:00
parent fa4583c272
commit a28715c2c6

View File

@ -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):