File: //lib/python3.9/site-packages/S3/__pycache__/Config.cpython-39.pyc
a
�9pe�t � @ s� d dl mZ d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl Z d dl
Z
d dlmZmZ ddl
mZ zd dlZd dlZW n2 ey� ej�d� ej�� e�e� Y n0 zd dlZW n ey� d dlmZ Y n0 z d dlmZmZmZmZmZ W n0 e�y4 d dlmZmZmZmZmZ Y n0 ddl!m"Z" dd l#m#Z# dd
l$m%Z%m&Z&m'Z'm(Z(m)Z) ze* W n e+�y� e,Z*Y n0 dd� Z-d
d� Z.dd� Z/G dd� de0�Z1G dd� de0�ZG dd� de0�Z2dS )� )�absolute_importN)�debug�warning� )� EX_OSFILEa:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ImportError trying to import dateutil.parser and dateutil.tz.
Please install the python dateutil module:
$ sudo apt-get install python-dateutil
or
$ sudo yum install python-dateutil
or
$ pip install python-dateutil
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
)�
NoOptionError�NoSectionError�MissingSectionHeaderError�ParsingError�ConfigParser)�Progress)�
SortedDict)�s3_quote�getTreeFromXml�getDictFromTree�base_unicodise�dateRFC822toPythonc C s8 t | �tkr| �� dv S t | �tkr0| dkr0dS dS dS )zsCheck to see if a string is true, yes, on, or 1
value may be a str, or unicode.
Return True if it is
)�trueZyesZon�1TFN��type�unicode�lower�bool��value� r �-/usr/lib/python3.9/site-packages/S3/Config.py�is_bool_trueM s
r c C s8 t | �tkr| �� dv S t | �tkr0| dkr0dS dS dS )ztCheck to see if a string is false, no, off, or 0
value may be a str, or unicode.
Return True if it is
)Zfalse�noZoff�0FTNr r r r r �
is_bool_false\ s
r! c C s t | �pt| �S )z)Check a string value to see if it is bool)r r! r r r r �is_boolk s r"