def inherit_metadata(descriptor, inherited_data):
 try:
  descriptor.xblock_kvs.inherited_settings = inherited_data
 except AttributeError:
  pass

def inherit_metadata ( descriptor , inherited_data ) : try : descriptor . xblock_kvs . inherited_settings = inherited_data except AttributeError : pass
updates this module with metadata inherited from a containing module .