%PDF- %PDF-
Direktori : /usr/share/ibus-table/engine/__pycache__/ |
Current File : //usr/share/ibus-table/engine/__pycache__/tabcreatedb.cpython-312.pyc |
� ��Xe�K � �� � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlZddlZddl Z ddl Z ddlZej j ej j ej j e� � � ddlZdZd ed efd�Z G d� d e� Zd efd�Z e� Zej4 r�ej6 s ed� ej: d� ej j= ej6 � r%ej j? ej6 � s' edej6 z � ej: d� ej6 sKej@ r?ej jC ej@ � jE d� d dz e_ ej6 s ed� ej: d� G d� d� Z#dd�Z$e%dk( r e$� yy)z; Program to create sqlite databases from the table sources � )�Tuple)�List)�Iterable)�Dict)�AnyNz "$&<>,+=#!()'|{}[]?~`;%\�keyname�returnc �( � t d� | D � � S )a Keynames must be ascii, and must not contain any invalid characters >>> gconf_valid_keyname('nyannyan') True >>> gconf_valid_keyname('nyan nyan') False >>> gconf_valid_keyname('nyannyan[') False >>> gconf_valid_keyname('nyan nyan') False c 3 �L K � | ] }|t v xs t |� d kD �� � y�w)� N)�_INVALID_KEYNAME_CHARS�ord)�.0�chars �+/usr/share/ibus-table/engine/tabcreatedb.py� <genexpr>z&gconf_valid_keyname.<locals>.<genexpr>: s. � �� � (�� �1�1�D�S��Y��_�D� (�s �"$)�any)r s r �gconf_valid_keynamer * s# � � � (�&�(� (� (� (� c �8 � � e Zd ZdZdeddf� fd�Zdefd�Z� xZS )�InvalidTableNamez4 Raised when an invalid table name is given �namer Nc �0 �� t �| � � || _ y �N)�super�__init__� table_name)�selfr � __class__s �r r zInvalidTableName.__init__A s �� � ������r c �: � d| j z dt z z dz S )NzValue of NAME attribute (%s) zcannot contain any of %r zand must be all ascii)r r )r s r �__str__zInvalidTableName.__str__E s* � �/�$�/�/�A�-�0F�F�G�)�*� +r )�__name__� __module__�__qualname__�__doc__�strr r! � __classcell__)r s @r r r = s'