B
    d6                 @   sB   d dl mZmZmZ d dlmZ dd Zedkr>dd Ze  dS )	    )absolute_importdivisionprint_function)easy_runc             C   s:   yt d|   jd }W n tk
r4   | }Y nX |S )z Return the demangled C++ function name corresponding to symbol
      on platforms featuring c++filt. On those which do not, return symbol
      untouched
  z
c++filt %sr   )r   fully_bufferedraise_if_errorsstdout_linesAssertionError)symbolresult r   w/mnt/filia/a/genomebrowser/www/genomebrowser/fleming/tools/molprobity/modules/cctbx_project/libtbx/cpp_function_name.pydemangle   s    

r   __main__c               C   s   t ddkstd S )NZJ__ZN5iotbx2xd17master_file_input8on_errorEPKcRKNS_10flex_bison8locationEPvz^iotbx::xd::master_file_input::on_error(char const*, iotbx::flex_bison::location const&, void*))r   r	   r   r   r   r   exercise_demangle   s    r   N)	
__future__r   r   r   libtbxr   r   __name__r   r   r   r   r   <module>   s
   