%PDF- %PDF-
Direktori : /lib/python3/dist-packages/netaddr/ip/__pycache__/ |
Current File : //lib/python3/dist-packages/netaddr/ip/__pycache__/glob.cpython-312.pyc |
� ӊ�^�( � �v � d Z ddlmZmZ ddlmZmZmZmZ ddl m Z d� Zd� Zd� Z d� Zd � Zd � Z G d� de� Zy )zb Routines and classes for supporting and expressing IP address ranges using a glob style syntax. � )�AddrFormatError�AddrConversionError)�IPRange� IPAddress� IPNetwork�iprange_to_cidrs)�_is_strc �� � t | � syd}d}| j d� }t |� dk7 ry|D ]� }d|v r^|r yd}|r y |j d� D �cg c] }t |� �� c}\ }}||k\ r yd|cxk rdk s y yd|cxk rd k r�` y y|d k( rd}�m|du r y|du r y dt |� cxk rd k s y y�� yc c}w # t $ r Y yw xY w# t $ r Y yw xY w)z� :param ipglob: An IP address range in a glob-style format. :return: ``True`` if IP range glob is valid, ``False`` otherwise. F�.� �-Tr � � � �*)r �split�len�int� ValueError)�ipglob�seen_hyphen� seen_asterisk�octets�octet�i�octet1�octet2s �1/usr/lib/python3/dist-packages/netaddr/ip/glob.py� valid_globr s8 � � �6�?���K��M� �\�\�#� �F� �6�{�a���� ���%�<����K��� �49�K�K��4D�#E�q�C��F�#E� ��� ������%�#�%�� &����%�#�%�� &�� �c�\� �M��d�"����$�� ��C��J�-�#�-� � .� � .�5�<