Commit be874e3c authored by Lance Stout's avatar Lance Stout

Fix deepcopying JIDs

parent beae8452
......@@ -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))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment