def _load_yaml_with_clear_tag(stream):
 loader = yaml.SafeLoader(stream)
 loader.add_constructor('!clear', _cleared_value_constructor)
 try:
  return loader.get_single_data()
 finally:
  if hasattr(loader, 'dispose'):
   loader.dispose()

def _load_yaml_with_clear_tag ( stream ) : loader = yaml . SafeLoader ( stream ) loader . add_constructor ( '!clear' , _cleared_value_constructor ) try : return loader . get_single_data ( ) finally : if hasattr ( loader , 'dispose' ) : loader . dispose ( )
like yaml .