File: D:/Python311/Lib/site-packages/google/protobuf/__pycache__/text_format.cpython-311.pyc
�
�ncf� � �> � d Z dZddlZddlZddlZddlZddlZddlm Z ddlm
Z
ddlmZ ddlm
Z
g d�Z e
j � � e
j � � e
j � � e
j � � fZ ej d ej � � Z ej d
ej � � Z ed� � ZdZ G d
� de� � Z G d� de� � Z G d� de� � Z d7d�Z d� Z!d� Z" d8d�Z# d9d�Z$ d9d�Z%d� Z&dZ'dZ( G d� de� � Z) d:d�Z* d:d �Z+ d:d!�Z, d:d"�Z- G d#� d$e� � Z.d%� Z/d&� Z0d'� Z1d(� Z2 G d)� d*e� � Z3e3Z4d+� Z5d,� Z6d-� Z7d.� Z8d/� Z9d0� Z:d;d1�Z;d;d2�Z<d3� Z=d4� Z>d5� Z?d6� Z@dS )<ac Contains routines for printing protocol messages in text format.
Simple usage example::
# Create a proto object and serialize it to a text proto string.
message = my_proto_pb2.MyMessage(foo='bar')
text_proto = text_format.MessageToString(message)
# Parse a text proto string.
message = text_format.Parse(text_proto, my_proto_pb2.MyMessage())
z kenton@google.com (Kenton Varda)� N)�decoder)�
type_checkers)�
descriptor)�
text_encoding)�MessageToString�Parse�PrintMessage�
PrintField�PrintFieldValue�Merge�MessageToBytesz-?inf(?:inity)?f?$znanf?$)�'�"zgoogle.protobuf.Anyc � � e Zd ZdZdS )�Errorz'Top-level module error for text_format.N)�__name__�
__module__�__qualname__�__doc__� � �=D:\Python311\Lib\site-packages\google/protobuf/text_format.pyr r G s � � � � � �/�/�/�/r r c �0 � � e Zd ZdZd� fd� Zd� Zd� Z� xZS )�
ParseErrorz3Thrown in case of text parsing or tokenizing error.Nc �N �� |�A|�?t |� � }|�|d� |� � z
}d� ||� � }|�)t t | � � � |� � n't t | � � � � � || _ || _ d S )Nz:{0}z {0} : {1})�str�format�superr �__init__�_line�_column)�self�message�line�column�loc� __class__s �r r zParseError.__init__N s� �� �� 1�t� 1���I�I�c� � %��v�}�}�V�$�$�$���"�"�3��0�0�g�� )��J����&�&�w�/�/�/�/��J����&�&�(�(�(��D�J��D�L�L�Lr c � � | j S �N)r �r"