def __getitem__(self, cpv): # Protected dict's come back by default, but are a minor # pita to deal with for this code- thus we convert back. # Additionally, we drop any chksum info in the process. d = dict(base.__getitem__(self, cpv).iteritems()) d.pop('_%s_' % self.chf_type, None) return d
def __getitem__(self, cpv): # Protected dict's come back by default, but are a minor # pita to deal with for this code- thus we convert back. # Additionally, we drop any chksum info in the process. d = dict(base.__getitem__(self, cpv).items()) d.pop(f'_{self.chf_type}_', None) return d