관리-도구
편집 파일: convert.cpython-37.pyc
B ���a� � @ s� d dl mZmZ d dlZd dlZG dd� de�ZG dd� de�ZG dd� de�ZG d d � d e�Z dd� Z eeed�ee e iZd d� ZdZdS )� )�absolute_import�unicode_literalsNc @ s$ e Zd Zdd� Zdd� Zdd� ZdS )�TypeDatac C s || _ || _d S )N)�default_type�as_type)�selfr r � r �J/opt/alt/python37/lib/python3.7/site-packages/virtualenv/config/convert.py�__init__ s zTypeData.__init__c C s d� | jj| j| j�S )Nz{}(base={}, as={}))�format� __class__�__name__r r )r r r r �__repr__ s zTypeData.__repr__c C s | � |�S )N)r )r �valuer r r �convert s zTypeData.convertN)r � __module__�__qualname__r r r r r r r r s r c @ s* e Zd Zddddddddd�Zdd� ZdS )�BoolTypeTF)�1�yes�true�on�0�no�false�offc C s( |� � | jkrtd| ��| j|� � S )NzNot a boolean: %s)�lower�BOOLEAN_STATES� ValueError)r r r r r r s zBoolType.convertN)r r r r r r r r r r s r c @ s e Zd Zdd� ZdS )�NoneTypec C s |sd S t |�S )N)�str)r r r r r r &