def _copy(self):
        """Creates a shallow copy of all tags"""

        items = self.items()
        subs = {}
        for f in (self.getall("CHAP") + self.getall("CTOC")):
            subs[f.HashKey] = f.sub_frames._copy()
        return (items, subs)
def _copy ( self ) : items = self . items ( ) subs = { } for f in ( self . getall ( "CHAP" ) + self . getall ( "CTOC" ) ) : subs [ f . HashKey ] = f . sub_frames . _copy ( ) return ( items , subs )
Creates a shallow copy of all tags