Sindbad~EG File Manager
�
��g� � �x � d Z ddlZddlZej dk rd� Zd� ZnddlmZmZ d� Z G d� d e� � Z dd�Z
dS )
z@
MissingDebugHandler base class, and register_handler function.
� N)� � c �* � | � � � S �N)�isascii��chs �./gdb/missing_debug.pyr r � � ��z�z�|�|�� c �* � | � � � S r )�isalnumr s r
r r r r )r r c �~ � | D ]9}t |� � rt |� � s|dv st d|�d| ��� � ��:dS )a� Validate a missing debug handler name string.
If name is valid as a missing debug handler name, then this
function does nothing. If name is not valid then an exception is
raised.
Arguments:
name: A string, the name of a missing debug handler.
Returns:
Nothing.
Raises:
ValueError: If name is invalid as a missing debug handler
name.
z_-zinvalid character 'z' in handler name: N)r r �
ValueError)�namer s r
�_validate_namer '