Fix deepcopying JIDs

This commit is contained in:
Lance Stout 2013-09-24 16:32:30 -07:00
parent beae845281
commit be874e3c70

View file

@ -19,6 +19,8 @@ import stringprep
import threading
import encodings.idna
from copy import deepcopy
from sleekxmpp.util import stringprep_profiles
from sleekxmpp.thirdparty import OrderedDict
@ -630,3 +632,7 @@ class JID(object):
def __copy__(self):
"""Generate a duplicate JID."""
return JID(self)
def __deepcopy__(self, memo):
"""Generate a duplicate JID."""
return JID(deepcopy(str(self), memo))