Server IP : 172.24.0.40 / Your IP : 216.73.216.10 Web Server : Apache System : Linux dbweb26.ust.edu.ph 4.18.0-513.5.1.el8_9.x86_64 #1 SMP Fri Sep 29 05:21:10 EDT 2023 x86_64 User : apache ( 48) PHP Version : 8.2.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /proc/self/root/lib/python3.6/site-packages/vdo/utils/__pycache__/ |
Upload File : |
3 &gnd�! � @ sd d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlZddlZejd� G dd � d ej �Z dS ) z| YAMLObject - Provides mapping to/from YAML. $Id: //eng/vdo-releases/aluminum/src/python/vdo/utils/YAMLObject.py#2 $ � )�absolute_import)�division)�print_function)�unicode_literalsNZutilsc s� e Zd ZdZejZedd� �Zedd� �Z � fdd�Z edd � �Zed d� �Z edd � �Zdd� Zedd� �Zdd� Zedd� �Zedd� �Z� ZS )� YAMLObjecta� Provides conversion of objects to and from YAML representations. The attributes that are included in the YAML representation are taken from an instance's __dict__ filtered through the list returned from the _yamlAttributeKeys property. The list from the _yamlAttributeKeys property is used to check for missing attributes when generating the YAML representation. It is also used to check for missing or extraneous attributes when constructing an instance from the YAML representation. Subclasses must override _yamlAttributeKeys. Subclasses must specify the class attribute yaml_tag which indicates the type of the instance in the YAML representation. Class attributes: yaml_tag (unicode string) - YAML representation identfifier; must be specified by subclasses yaml_loader - The loader to use; set to yaml.SafeLoader to allow yaml.load_safe() to instantiate objects c c s&