def purge_processor(caller):
 try:
  del caller.ndb.batch_stack
  del caller.ndb.batch_stackptr
  del caller.ndb.batch_pythonpath
  del caller.ndb.batch_batchmode
 except:
  pass
 if caller.ndb.batch_cmdset_backup:
  caller.cmdset.cmdset_stack = caller.ndb.batch_cmdset_backup
  caller.cmdset.update()
  del caller.ndb.batch_cmdset_backup
 else:
  caller.cmdset.clear()
 caller.scripts.validate()

def purge_processor ( caller ) : try : del caller . ndb . batch_stack del caller . ndb . batch_stackptr del caller . ndb . batch_pythonpath del caller . ndb . batch_batchmode except : pass if caller . ndb . batch_cmdset_backup : caller . cmdset . cmdset_stack = caller . ndb . batch_cmdset_backup caller . cmdset . update ( ) del caller . ndb . batch_cmdset_backup else : caller . cmdset . clear ( ) caller . scripts . validate ( )
this purges all effects running on the caller .