diff options
author | Lance Stout <lancestout@gmail.com> | 2013-09-24 16:32:30 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2013-09-24 16:32:30 -0700 |
commit | be874e3c70b16a7f5fc42e7ac79f6259e9327238 (patch) | |
tree | 35dcc1552f44cfa5184d0d0314aefd82011d343f /sleekxmpp | |
parent | beae845281a703adb6f9db3894a40063259aebe3 (diff) | |
download | slixmpp-be874e3c70b16a7f5fc42e7ac79f6259e9327238.tar.gz slixmpp-be874e3c70b16a7f5fc42e7ac79f6259e9327238.tar.bz2 slixmpp-be874e3c70b16a7f5fc42e7ac79f6259e9327238.tar.xz slixmpp-be874e3c70b16a7f5fc42e7ac79f6259e9327238.zip |
Fix deepcopying JIDs
Diffstat (limited to 'sleekxmpp')
-rw-r--r-- | sleekxmpp/jid.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sleekxmpp/jid.py b/sleekxmpp/jid.py index 620d4160..ac5ba30d 100644 --- a/sleekxmpp/jid.py +++ b/sleekxmpp/jid.py @@ -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)) |