elide unnecessary copy
This commit is contained in:
parent
48af3d3322
commit
2332970cf2
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue