Skip to content

Commit

Permalink
Remove unnecessary deepcopy
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed May 24, 2024
1 parent 9cc8961 commit b5e5708
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/podio/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"""Module for the python bindings of the podio::Frame"""

import cppyy
from copy import deepcopy

import ROOT

Expand Down Expand Up @@ -154,7 +153,7 @@ def getName(self, token):
"""
maybeName = self._frame.getName(token)
if maybeName.has_value():
return deepcopy(maybeName.value())
return maybeName.value()

def _get_id(tok):
if isinstance(tok, int):
Expand Down

0 comments on commit b5e5708

Please sign in to comment.