ok

Mini Shell

Direktori : /lib/python3.6/site-packages/certbot/compat/__pycache__/
Upload File :
Current File : //lib/python3.6/site-packages/certbot/compat/__pycache__/os.cpython-36.pyc

3

گa'%�@s�dZddlmZddlTddlZddlZejeZ	ej
jd�dkspx,ee�D] Z
ee	e
�sLee	e
eee
��qLWddlmZeejed<[	[[d	d
�Zdd�Zd
d�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd �ZdS)!a�
This compat modules is a wrapper of the core os module that forbids usage of specific operations
(e.g. chown, chmod, getuid) that would be harmful to the Windows file security model of Certbot.
This module is intended to replace standard os module throughout certbot projects (except acme).

This module has the same API as the os module in the Python standard library
except for the functions defined below.

isort:skip_file
�)�absolute_import)�*NZCERTBOT_DOCS�1)�_pathz.pathcOstd��dS)zMethod os.chmod() is forbiddenzPUsage of os.chmod() is forbidden. Use certbot.compat.filesystem.chmod() instead.N)�RuntimeError)�unused_args�
unused_kwargs�r	�/usr/lib/python3.6/os.py�chmodBsrcOstd��dS)zMethod os.chmod() is forbiddenzPUsage of os.umask() is forbidden. Use certbot.compat.filesystem.umask() instead.N)r)rrr	r	r
�umaskLsrcOstd��dS)zMethod os.chown() is forbiddenzgUsage of os.chown() is forbidden.Use certbot.compat.filesystem.copy_ownership_and_apply_mode() instead.N)r)rrr	r	r
�chownUsr
cOstd��dS)zMethod os.open() is forbiddenzNUsage of os.open() is forbidden. Use certbot.compat.filesystem.open() instead.N)r)rrr	r	r
�open`srcOstd��dS)zMethod os.mkdir() is forbiddenzPUsage of os.mkdir() is forbidden. Use certbot.compat.filesystem.mkdir() instead.N)r)rrr	r	r
�mkdirhsrcOstd��dS)z!Method os.makedirs() is forbiddenzVUsage of os.makedirs() is forbidden. Use certbot.compat.filesystem.makedirs() instead.N)r)rrr	r	r
�makedirsssrcOstd��dS)zMethod os.rename() is forbiddenzSUsage of os.rename() is forbidden. Use certbot.compat.filesystem.replace() instead.N)r)rrr	r	r
�rename{srcOstd��dS)z Method os.replace() is forbiddenzTUsage of os.replace() is forbidden. Use certbot.compat.filesystem.replace() instead.N)r)rrr	r	r
�replace�srcOstd��dS)zMethod os.access() is forbiddenz�Usage of os.access() is forbidden. Use certbot.compat.filesystem.check_mode() or certbot.compat.filesystem.is_executable() instead.N)r)rrr	r	r
�access�srcOstd��dS)zMethod os.stat() is forbiddenzUsage of os.stat() is forbidden. Use certbot.compat.filesystem functions instead (eg. has_min_permissions, has_same_ownership).N)r)rrr	r	r
�stat�srcOstd��dS)zMethod os.stat() is forbiddenz�Usage of os.fstat() is forbidden. Use certbot.compat.filesystem functions instead (eg. has_min_permissions, has_same_ownership).N)r)rrr	r	r
�fstat�srcOstd��dS)z!Method os.readlink() is forbiddenzVUsage of os.readlink() is forbidden. Use certbot.compat.filesystem.realpath() instead.N)r)rrr	r	r
�readlink�sr) �__doc__Z
__future__r�osZstd_os�sysZstd_sys�modules�__name__Z	ourselves�environ�get�dirZ	attribute�hasattr�setattr�getattrZcertbot.compatr�pathrrr
rrrrrrrrrr	r	r	r
�<module>
s0	


			

Zerion Mini Shell 1.0