diff options
author | Vijay Pandurangan <vijayp@vijayp.ca> | 2011-11-19 16:02:41 -0800 |
---|---|---|
committer | Vijay Pandurangan <vijayp@vijayp.ca> | 2011-11-19 16:02:41 -0800 |
commit | 2332970cf282d76cd5e2ac80e86ab987671486b4 (patch) | |
tree | ae6c8ec83c6bf4451b3cc57214b675415a801993 /sleekxmpp/xmlstream | |
parent | 48af3d33226a8f432b50e3ff9b54c59c2d9e4cda (diff) | |
download | slixmpp-2332970cf282d76cd5e2ac80e86ab987671486b4.tar.gz slixmpp-2332970cf282d76cd5e2ac80e86ab987671486b4.tar.bz2 slixmpp-2332970cf282d76cd5e2ac80e86ab987671486b4.tar.xz slixmpp-2332970cf282d76cd5e2ac80e86ab987671486b4.zip |
elide unnecessary copy
Diffstat (limited to 'sleekxmpp/xmlstream')
-rw-r--r-- | sleekxmpp/xmlstream/xmlstream.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py index 1453a2a1..dcbb8ebb 100644 --- a/sleekxmpp/xmlstream/xmlstream.py +++ b/sleekxmpp/xmlstream/xmlstream.py @@ -1232,7 +1232,8 @@ class XMLStream(object): func -- The event handler to execute. args -- Arguments to the event handler. """ - orig = copy.copy(args[0]) + # this is always already copied before this is invoked + orig = args[0] try: func(*args) except Exception as e: |