관리-도구
편집 파일: parser.cpython-38.pyc
U .?�fmV � @ s� d dl Zd dlZd dlZddlmZmZ ddlmZm Z m Z ddlmZ dd� Z ed�hZd d � Zddd d�Zdd� Ze�d�Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zd d!� Zd"d#� Zd$d%� Zd&d'� Zd(d)� Z dS )*� N� )�Metric�METRIC_LABEL_NAME_RE)�Exemplar�Sample� Timestamp)�floatToGoStringc c s t t�| ��E dH dS )z^Parse Openmetrics text format from a unicode string. See text_fd_to_metric_families. N)�text_fd_to_metric_families�StringIO)�text� r �R/opt/hc_python/lib/python3.8/site-packages/prometheus_client/openmetrics/parser.py�text_string_to_metric_families s r �infc C s t | �}|tkrdS | t|�kS )NF)�float�_CANONICAL_NUMBERSr )�s�fr r r �_isUncanonicalNumber s r �\� �")z\\z\nz\"c C s t | �d� S )Nr )�ESCAPE_SEQUENCES�group)�matchr r r �_replace_escape_sequence&