1
0
Fork 0
mirror of https://github.com/correl/SleekXMPP.git synced 2025-03-31 09:15:46 -09:00

elide unnecessary copy

This commit is contained in:
Vijay Pandurangan 2011-11-19 16:02:41 -08:00
parent 48af3d3322
commit 2332970cf2

View file

@ -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: