def load_formatter_class(scoped_class_name):
 if (':' not in scoped_class_name):
  message = ('REQUIRE: "module:class", but was: "%s"' % scoped_class_name)
  raise ValueError(message)
 (module_name, class_name) = parse_scoped_name(scoped_class_name)
 formatter_module = load_module(module_name)
 formatter_class = getattr(formatter_module, class_name, None)
 if (formatter_class is None):
  raise ImportError(('CLASS NOT FOUND: %s' % scoped_class_name))
 return formatter_class

def load_formatter_class ( scoped_class_name ) : if ( ':' not in scoped_class_name ) : message = ( 'REQUIRE: "module:class", but was: "%s"' % scoped_class_name ) raise ValueError ( message ) ( module_name , class_name ) = parse_scoped_name ( scoped_class_name ) formatter_module = load_module ( module_name ) formatter_class = getattr ( formatter_module , class_name , None ) if ( formatter_class is None ) : raise ImportError ( ( 'CLASS NOT FOUND: %s' % scoped_class_name ) ) return formatter_class
load a formatter class by using its scoped class name .