예제 #1
0
 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
예제 #2
0
 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