def _dehook(klass, name):
 if (not hasattr(klass, ORIG(klass, name))):
  raise HookError('Cannot unhook!')
 setattr(klass, name, getattr(klass, ORIG(klass, name)))
 delattr(klass, PRE(klass, name))
 delattr(klass, POST(klass, name))
 delattr(klass, ORIG(klass, name))

def _dehook ( klass , name ) : if ( not hasattr ( klass , ORIG ( klass , name ) ) ) : raise HookError ( 'Cannot unhook!' ) setattr ( klass , name , getattr ( klass , ORIG ( klass , name ) ) ) delattr ( klass , PRE ( klass , name ) ) delattr ( klass , POST ( klass , name ) ) delattr ( klass , ORIG ( klass , name ) )
causes a certain method name no longer to be hooked on a class .