def release_tidy_doc():
 if hasattr(thread_local_doc, 'doc'):
  tidy.tidyRelease(thread_local_doc.doc)
  del thread_local_doc.doc

def release_tidy_doc ( ) : if hasattr ( thread_local_doc , 'doc' ) : tidy . tidyRelease ( thread_local_doc . doc ) del thread_local_doc . doc
release the stored document object in the current thread .