def unregister_class(alias):
 try:
  x = CLASS_CACHE[alias]
 except KeyError:
  raise UnknownClassAlias(('Unknown alias %r' % (alias,)))
 if (not x.anonymous):
  del CLASS_CACHE[x.alias]
 del CLASS_CACHE[x.klass]
 return x

def unregister_class ( alias ) : try : x = CLASS_CACHE [ alias ] except KeyError : raise UnknownClassAlias ( ( 'Unknown alias %r' % ( alias , ) ) ) if ( not x . anonymous ) : del CLASS_CACHE [ x . alias ] del CLASS_CACHE [ x . klass ] return x
unregister class instrumentation .