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. func -- The event handler to execute.
args -- Arguments to the event handler. args -- Arguments to the event handler.
""" """
orig = copy.copy(args[0]) # this is always already copied before this is invoked
orig = args[0]
try: try:
func(*args) func(*args)
except Exception as e: except Exception as e: