o
    TiX                     @   sB   d dl mZ d dlmZ d dlmZ dd ZdddZd	d
 ZdS )    )unicode_literals)
simple_segtone2_to_tonec                 C   s   t | S Nr   )string r   B/home/ubuntu/.local/lib/python3.10/site-packages/pypinyin/utils.py$_replace_tone2_style_dict_to_default   s   r
   Fc                 C   s.   g }| D ]}|r|sq||vr| | q|S r   )append)lstremove_emptynew_lstitemr   r   r	   _remove_dup_items   s   
r   c                 C   s:   g }| D ]}t |dd}|r|| q|dg q|S )NT)r    )r   r   )lst_listnew_lst_listr   r   r   r	   _remove_dup_and_empty   s   r   N)F)	
__future__r   pypinyin.seg.simplesegr   pypinyin.style._tone_convertr   r
   r   r   r   r   r   r	   <module>   s   

