summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVijay Pandurangan <vijayp@vijayp.ca>2011-11-19 16:02:41 -0800
committerVijay Pandurangan <vijayp@vijayp.ca>2011-11-19 16:02:41 -0800
commit2332970cf282d76cd5e2ac80e86ab987671486b4 (patch)
treeae6c8ec83c6bf4451b3cc57214b675415a801993
parent48af3d33226a8f432b50e3ff9b54c59c2d9e4cda (diff)
downloadslixmpp-2332970cf282d76cd5e2ac80e86ab987671486b4.tar.gz
slixmpp-2332970cf282d76cd5e2ac80e86ab987671486b4.tar.bz2
slixmpp-2332970cf282d76cd5e2ac80e86ab987671486b4.tar.xz
slixmpp-2332970cf282d76cd5e2ac80e86ab987671486b4.zip
elide unnecessary copy
-rw-r--r--sleekxmpp/xmlstream/xmlstream.py3
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: