Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/oslo_i18n/__pycache__/fixture.cpython-39.pyc
Ðазад
a n�h� � @ s� d Z ddlZddlZddlmZ ddlmZ G dd� dej�ZG dd� dej�ZG d d � d ej �Z dd� ZG d d� dej�ZdS )z+Test fixtures for working with oslo_i18n. � N)�_lazy)�_messagec @ s* e Zd ZdZd dd�Zdd� Zdd� Zd S )�Translationa Fixture for managing translatable strings. This class provides methods for creating translatable strings using both lazy translation and immediate translation. It can be used to generate the different types of messages returned from oslo_i18n to test code that may need to know about the type to handle them differently (for example, error handling in WSGI apps, or logging). Use this class to generate messages instead of toggling the global lazy flag and using the regular translation factory. �test-domainc C s || _ dS )z�Initialize the fixture. :param domain: The translation domain. This is not expected to coincide with an actual set of message catalogs, but it can. :type domain: str N��domain)�selfr � r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/oslo_i18n/fixture.py�__init__'