Current File : //proc/self/root/usr/lib/python3.12/__pycache__/os.cpython-312.pyc
�

�4hj���
�dZddlZddlZddlZddlmZeee	�Z
ejZgd�Z
d�Zd�ZdevrIdZdZdd	l�	dd
lmZe
j)d�ddlZ	ddlmZddlZe
j3ee��[nUd
evrId
ZdZdd	l�	dd
lmZe
j)d�ddlZddlZe
j3ee��[	ddlmZned��eej8d<ddlmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%[ed��r�e&�Z'd�Z(e)�Z*e(dd�e(dd�e(dd�e(dd�e(dd�e(dd�e(d d!�e(d"d#�e(d$d%�e(d&d'�e(d(d)�e(d*d+�e(d,d-�e(d.d/�e(d.d0�e(d1d�e*Z+e)�Z*e(dd�e*Z,e)�Z*e(d2d3�e(d4d�e(d5d�e(d6d7�e(d6d8�e(d9d:�e*j[e�e(d;d<�e(d=d�e(d>d�e(d?d@�edA�redB�r	e(dCdA�e*Z.e)�Z*e(dd�e(dd�e(dd�e(dDdE�e(dFd�edG�r	e(dHd�e(dd�e(dId�e(dJd�e(dd�e(d1d�e(dKd�e*Z/[*[['[(dZ0dLZ1dMZ2d�dO�Z3dP�Z4dQ�Z5e
j3gdR��d�dS�Z6e
j)dT�e7ehe+kr#e8ehe.krd�dNddU�dV�Z9dW�Z:e
j)dX�dY�Z;dZ�Z<d[�Z=d\�Z>d]�Z?d^�Z@e
j3gd_��d�d`�ZAd�da�ZBddblmCZCmDZDGdc�ddeC�ZEde�ZFeF�ZG[Fd�df�ZHed
k7ZIe
j3dg�eIr/dh�ZJeEeGj�eJeLeJeL�ZM[Jd�di�ZNe
j3dj�dk�ZOeO�\ZPZQ[Oedl�rKedm�sCedn�r;dZRdLxZSZTe
j3gdo��dp�ZUdq�ZVdr�ZWds�ZXdt�ZYe
j3gdu��edm�rdv�ZZdw�Z[e
j3dxdyg�edz�rd{�Z\d|�Z]e
j3d}d~g�ej�dk7rd�d��Z_Gd��d��Z`e
j)d��d�d��Zad��Zbed��s	ebZcd�ec_dGd��d�ej��Zfed
k(rGd��d��Zgd��Zhyy#e$rY��wxYw#e$rY���wxYw#e$rY��JwxYw#e$rY��&wxYw)�aNOS routines for NT or Posix depending on what system we're on.

This exports:
  - all functions from posix or nt, e.g. unlink, stat, etc.
  - os.path is either posixpath or ntpath
  - os.name is either 'posix' or 'nt'
  - os.curdir is a string representing the current directory (always '.')
  - os.pardir is a string representing the parent directory (always '..')
  - os.sep is the (or a most common) pathname separator ('/' or '\\')
  - os.extsep is the extension separator (always '.')
  - os.altsep is the alternate pathname separator (None or '/')
  - os.pathsep is the component separator used in $PATH etc
  - os.linesep is the line separator in text files ('\r' or '\n' or '\r\n')
  - os.defpath is the default search path for executables
  - os.devnull is the file path of the null device ('/dev/null', etc.)

Programs that import and use 'os' stand a better chance of being
portable between different platforms.  Of course, they must then
only use functions that are defined by all platforms (e.g., unlink
and opendir), and leave all pathname manipulation to os.path
(e.g., split and join).
�N)�_check_methods)�altsep�curdir�pardir�sep�pathsep�linesep�defpath�name�path�devnull�SEEK_SET�SEEK_CUR�SEEK_END�fsencode�fsdecode�
get_exec_path�fdopen�extsepc��|t�vS�N)�globals)rs �/usr/lib/python3.12/os.py�_existsr)s���7�9���c��	t|j�S#t$r+t|�D�cgc]
}|ddk7s�|��ncc}wc}cYSwxYw)Nr�_)�list�__all__�AttributeError�dir)�module�ns  r�_get_exports_listr$,sG��7��F�N�N�#�#���7��v�;�6�a�!�A�$�#�+��6��6�6�7�s��A�
A�A�	A�
A�posix�
)�*)�_exitr()�_have_functions�ntz
zno os specific module foundzos.path)rrrrr
rrr
r)c�`�|tvr&|tvrtjt|�yyyr)�_globalsr)�_set�add)�str�fns  r�_addr1hs'���(�N���!7��H�H�X�b�\�"�"8�Nr�HAVE_FACCESSAT�access�
HAVE_FCHMODAT�chmod�
HAVE_FCHOWNAT�chown�HAVE_FSTATAT�stat�HAVE_FUTIMESAT�utime�HAVE_LINKAT�link�HAVE_MKDIRAT�mkdir�
HAVE_MKFIFOAT�mkfifo�HAVE_MKNODAT�mknod�HAVE_OPENAT�open�HAVE_READLINKAT�readlink�
HAVE_RENAMEAT�rename�HAVE_SYMLINKAT�symlink�
HAVE_UNLINKAT�unlink�rmdir�HAVE_UTIMENSAT�HAVE_FCHDIR�chdir�HAVE_FCHMOD�HAVE_FCHOWN�HAVE_FDOPENDIR�listdir�scandir�HAVE_FEXECVE�execve�HAVE_FTRUNCATE�truncate�
HAVE_FUTIMENS�HAVE_FUTIMES�HAVE_FPATHCONF�pathconf�statvfs�fstatvfs�
HAVE_FSTATVFS�
HAVE_LCHFLAGS�chflags�HAVE_LCHMOD�lchown�HAVE_LCHOWN�HAVE_LUTIMES�
HAVE_LSTAT�
MS_WINDOWS��Fc��tj|�\}}|stj|�\}}|rQ|rOtj|�s:	t||��t
}t
|t�rtt
d�}||k(ry	t||�y#t$rY�EwxYw#t$r|rtj|�s�YywxYw)a�makedirs(name [, mode=0o777][, exist_ok=False])

    Super-mkdir; create a leaf directory and all intermediate ones.  Works like
    mkdir, except that any intermediate path segment (not just the rightmost)
    will be created if it does not exist. If the target directory already
    exists, raise an OSError if exist_ok is False. Otherwise no exception is
    raised.  This is recursive.

    )�exist_ok�ASCIIN)r�split�exists�makedirs�FileExistsErrorr�
isinstance�bytesr?�OSError�isdir)r�moderm�head�tail�cdirs      rrqrq�s������D�!�J�D�$���Z�Z��%�
��d���T�[�[��.�	��T�H�-����d�E�"����)�D��4�<���
�d�D����	��	�����t�z�z�$�/�� 0��s$�

B�B#�	B �B �#!C�Cc��t|�tj|�\}}|stj|�\}}|r.|r+	t|�tj|�\}}|r|r�)yyyy#t$rYywxYw)a�removedirs(name)

    Super-rmdir; remove a leaf directory and all empty intermediate
    ones.  Works like rmdir except that, if the leaf directory is
    successfully removed, directories corresponding to rightmost path
    segments will be pruned away until either the whole path is
    consumed or an error occurs.  Errors during this latter phase are
    ignored -- they generally mean that a directory was not empty.

    N)rNrroru)rrxrys   r�
removedirsr|�sx��
�$�K����D�!�J�D�$���Z�Z��%�
��d�
�4�	��$�K��Z�Z��%�
��d��4�$�4�$���	��	�s�A/�/	A;�:A;c��tj|�\}}|r"|r tj|�st|�t	||�tj|�\}}|r|r
	t|�yyy#t$rYywxYw)a<renames(old, new)

    Super-rename; create directories as necessary and delete any left
    empty.  Works like rename, except creation of any intermediate
    directories needed to make the new pathname good is attempted
    first.  After the rename, directories corresponding to rightmost
    path segments of the old name will be pruned until either the
    whole path is consumed or a nonempty directory is found.

    Note: this function can fail with the new directory structure made
    if you lack permissions needed to unlink the leaf directory or
    file.

    N)rrorprqrIr|ru)�old�newrxrys    r�renamesr��st�����C��J�D�$���T�[�[��.����
�3������C��J�D�$���	��t���t���	��	�s�&A4�4	B�?B)rqr|r�c#�HK�tjd||||�t|�g}tjtj
}}|r�|j
�}t|t�r|���'g}g}g}		t|�}
d}|
5			t|
�}
		|
j�}|r|j|
j�n|j|
j�|s8|r6|rd}n	|
j!�}|}|r|	j|
j���yy#t$r}|�||�Yd}~��d}~wwxYw#t$rYnHwxYw#t$r}|�||�d}Yd}~n*d}~wwxYw#t$rd}Y��wxYw#t$rd}Y��wxYwddd�n#1swYnxYw|r��`|r=|||f��t#|�D]'}|||�}|s	||�r�|j|��)n5|j|||f�t#|	�D]}|j|��|r��֐��w)a&Directory tree generator.

    For each directory in the directory tree rooted at top (including top
    itself, but excluding '.' and '..'), yields a 3-tuple

        dirpath, dirnames, filenames

    dirpath is a string, the path to the directory.  dirnames is a list of
    the names of the subdirectories in dirpath (including symlinks to directories,
    and excluding '.' and '..').
    filenames is a list of the names of the non-directory files in dirpath.
    Note that the names in the lists are just names, with no path components.
    To get a full path (which begins with top) to a file or directory in
    dirpath, do os.path.join(dirpath, name).

    If optional arg 'topdown' is true or not specified, the triple for a
    directory is generated before the triples for any of its subdirectories
    (directories are generated top down).  If topdown is false, the triple
    for a directory is generated after the triples for all of its
    subdirectories (directories are generated bottom up).

    When topdown is true, the caller can modify the dirnames list in-place
    (e.g., via del or slice assignment), and walk will only recurse into the
    subdirectories whose names remain in dirnames; this can be used to prune the
    search, or to impose a specific order of visiting.  Modifying dirnames when
    topdown is false has no effect on the behavior of os.walk(), since the
    directories in dirnames have already been generated by the time dirnames
    itself is generated. No matter the value of topdown, the list of
    subdirectories is retrieved before the tuples for the directory and its
    subdirectories are generated.

    By default errors from the os.scandir() call are ignored.  If
    optional arg 'onerror' is specified, it should be a function; it
    will be called with one argument, an OSError instance.  It can
    report the error to continue with the walk, or raise the exception
    to abort the walk.  Note that the filename is available as the
    filename attribute of the exception object.

    By default, os.walk does not follow symbolic links to subdirectories on
    systems that support them.  In order to get this functionality, set the
    optional argument 'followlinks' to true.

    Caution:  if you pass a relative pathname for top, don't change the
    current working directory between resumptions of walk.  walk never
    changes the current directory, and assumes that the client doesn't
    either.

    Example:

    import os
    from os.path import join, getsize
    for root, dirs, files in os.walk('python/Lib/email'):
        print(root, "consumes ")
        print(sum(getsize(join(root, name)) for name in files), end=" ")
        print("bytes in", len(files), "non-directory files")
        if 'CVS' in dirs:
            dirs.remove('CVS')  # don't visit CVS directories

    zos.walkNFT)�sys�audit�fspathr�islink�join�poprs�tuplerVru�next�
StopIteration�is_dir�appendr�
is_symlink�reversed)�top�topdown�onerror�followlinks�stackr�r��dirs�nondirs�	walk_dirs�
scandir_it�error�cont�entryr��	walk_intor��dirname�new_paths                   r�walkr�s@����x�I�I�i��g�w��<�
�C�[�M�E��;�;��	�	�D�F�
��i�i�k���c�5�!��I�������	�	� ���J���
�)	5��	�� $�Z� 0��#�"�\�\�^�F���K�K��
�
�+��N�N�5�:�:�.��6�#�$(�	�/�).�)9�)9�);�J�)3�N�	� �!�(�(����4�Q��1��"�	��"������	��)��������*�����D���	���#�#�F�#��$ '�/�*/�J�	/��C)	5�)	5�)	5��T����t�W�$�$�#�D�>�
+����W�-��
�f�X�&6��L�L��*�
+�
�L�L�#�t�W�-�.�$�Y�/�
'�����X�&�
'�i�s��A3H"�6D�H"�F�	D<�F�E-�&AF�)E>�9!F�H"�	D9�%
D4�/H"�4D9�9H"�<	E�E�F�E�E�	E*�E%� F�%E*�*F�-E;�8F�:E;�;F�>F�	F�F�F�	H"�F!�5H"�AH"r���follow_symlinks�dir_fdc#�K�tjd|||||�t|�}|st|d|��}t	|t
tz|��}	|s>tjj�rEtj|t|��r&t||t|t�|||�Ed{���t|�y7�#t|�wxYw�w)aDirectory tree generator.

        This behaves exactly like walk(), except that it yields a 4-tuple

            dirpath, dirnames, filenames, dirfd

        `dirpath`, `dirnames` and `filenames` are identical to walk() output,
        and `dirfd` is a file descriptor referring to the directory `dirpath`.

        The advantage of fwalk() over walk() is that it's safe against symlink
        races (when follow_symlinks is False).

        If dir_fd is not None, it should be a file descriptor open to a directory,
          and top should be relative; top will then be relative to that directory.
          (dir_fd is always supported for fwalk.)

        Caution:
        Since fwalk() yields file descriptors, those are only valid until the
        next iteration step, so you should dup() them if you want to keep them
        for a longer period.

        Example:

        import os
        for root, dirs, files, rootfd in os.fwalk('python/Lib/email'):
            print(root, "consumes", end="")
            print(sum(os.stat(name, dir_fd=rootfd).st_size for name in files),
                  end="")
            print("bytes in", len(files), "non-directory files")
            if 'CVS' in dirs:
                dirs.remove('CVS')  # don't visit CVS directories
        zos.fwalkFr��r�N)r�r�r�r9rE�O_RDONLY�
O_NONBLOCK�st�S_ISDIR�st_moder�samestat�_fwalkrsrt�close)r�r�r�r�r��orig_st�topfds       r�fwalkr��s�����B	�	�	�*�c�7�G�_�f�M��S�k����3��f�E�G��S�(�Z�/��?��	��B�J�J�w���$?�$(�M�M�'�4��;�$G�!�%��j��e�.D�")�7�O�E�E�E�
�%�L�E��
�%�L�s1�AC�A!C�3C�4C�8C�C�
C�Cc	#�K�t|�}g}g}|s|rdng}	|D]b}
|
j}|rt|�}	|
j�r%|j	|�|	�#|	j	|
�n|j	|��d|r||||f��|	�|nt||	�D]�}	|s,|rt||d��}n|	�J�|\}}
|
jd��}t|ttz|��}
	|stjt|
��r.tj||�}t|
|||||�Ed{���t!|
���|s	||||f��yy#t
$r6	|
j
�r|j	|�n#t
$rYnwxYwY��qwxYw#t
$r}|�||�Yd}~��d}~wwxYw7��#t!|
�wxYw�w)NF)r�r�)r�r�)rVrrr�r�rur��zipr9rEr�r�rr�r�r�r�)r��toppath�isbytesr�r�r�r�r�r��entriesr�rr��dirfd�err�dirpaths                rr�r��s�����
�U�^�
�����!�_�$�"���	�E��:�:�D����~��

��<�<�>��K�K��%��*����u�-��N�N�4�(��	�&��4��%�/�/�#�O�D��T�7�1C�	�D�
�&��"&�t�E�5�"Q��&�2�2�2�&*���e�"'�*�*�U�*�"C���T�8�j�#8��G��

�"�d�m�m�G�T�%�[�&I�"�i�i���6�G�%�e�W�g�&-�w�� I�I�I��e��)	�,��4��%�/�/���C�
���'�'�)����t�,�������
��*�
��&��C�L���
��I���e��s��6G�AE�?G�AF�'A
F4�1F2�2F4�6G�	F�!E;�:F�;	F�F�F�F�
G�
F�G�	F/�
F*�$G�*F/�/G�2F4�4
G�Gr�c��t||�y)zpexecl(file, *args)

    Execute the executable file with argument list args, replacing the
    current process. N)�execv��file�argss  r�execlr�s��

�$��rc�.�|d}t||dd|�y)z�execle(file, *args, env)

    Execute the executable file with argument list args and
    environment env, replacing the current process. ���N)rX�r�r��envs   r�execler�&s��
�r�(�C�
�4��c�r��C� rc��t||�y)z�execlp(file, *args)

    Execute the executable file (which is searched for along $PATH)
    with argument list args, replacing the current process. N)�execvpr�s  r�execlpr�.s��
�4��rc�.�|d}t||dd|�y)z�execlpe(file, *args, env)

    Execute the executable file (which is searched for along $PATH)
    with argument list args and environment env, replacing the current
    process. r�N)�execvper�s   r�execlper�5s���r�(�C��D�$�s��)�S�!rc��t||�y)z�execvp(file, args)

    Execute the executable file (which is searched for along $PATH)
    with argument list args, replacing the current process.
    args may be a list or tuple of strings. N��_execvper�s  rr�r�>s��
�T�4�rc��t|||�y)z�execvpe(file, args, env)

    Execute the executable file (which is searched for along $PATH)
    with argument list args and environment env, replacing the
    current process.
    args may be a list or tuple of strings. Nr�r�s   rr�r�Fs��
�T�4��r)r�r�r�r�r�r�c��|�t}||f}nt}|f}t}tj|�r
||g|���yd}t|�}tdk7rt|�}tt|�}|D]"}tj||�}	||g|����$|�|�
�#ttf$r}	|	}
Yd}	~	�Ad}	~	wt$r}	|	}
|�|	}Yd}	~	�Xd}	~	wwxYw)Nr*)
rXr��environrr�rrr�mapr��FileNotFoundError�NotADirectoryErrorru)r�r�r��	exec_func�argrest�	saved_exc�	path_listr!�fullname�e�last_excs           rr�r�Qs���
���	���+���	��'�����|�|�D���$�!��!���I��c�"�I��t�|���~����)�,�	��	���9�9�S�$�'��	��h�)��)�	�����
�N��"�#5�6�	��H���	��H�� ��	���	�s$�		B�C�)B0�0C�<C�Cc��ddl}|�t}|j�5|jdt�	|jd�}tr2	|d}|�td��|}|�t|t�rt|�}ddd��t}|jt�S#t$rd}Y�jwxYw#ttf$rY�dwxYw#1swY�LxYw)z�Returns the sequence of directories that will be searched for the
    named executable (similar to a shell) when launching a process.

    *env* must be an environment variable dict or None.  If *env* is None,
    os.environ will be used.
    rN�ignore�PATHsPATHz*env cannot contain 'PATH' and b'PATH' keys)�warningsr��catch_warnings�simplefilter�BytesWarning�get�	TypeError�supports_bytes_environ�
ValueError�KeyErrorrsrtrr
ror)r�r�r��
path_listbs    rrrqs����
�{���
�	 �	 �	"�0����h��5�	������I�"�
'� ��\�
��(�$�D�F�F�&�	��$��I�u�)E�$�Y�/�	�)0�,���	��?�?�7�#�#��'�	��I�	���i�(�
��
��0�0�sR�C	�B#�C	�
B4�,C	�#B1�.C	�0B1�1C	�4C�C	�C�C	�	C)�MutableMapping�Mappingc�T�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zy
)�_Environc�J�||_||_||_||_||_yr)�	encodekey�	decodekey�encodevalue�decodevalue�_data)�self�datar�r�r�r�s      r�__init__z_Environ.__init__�s'��"���"���&���&�����
rc��	|j|j|�}|j|�S#t$r
t|�d�wxYwr)r�r�r�r��r��key�values   r�__getitem__z_Environ.__getitem__�sN��	*��J�J�t�~�~�c�2�3�E�����&�&���	*��3�-�T�)�	*�s	�1�Ac�~�|j|�}|j|�}t||�||j|<yr)r�r��putenvr�r�s   r�__setitem__z_Environ.__setitem__�s7���n�n�S�!��� � ��'���s�E����
�
�3�rc��|j|�}t|�	|j|=y#t$r
t|�d�wxYwr)r��unsetenvr�r�)r�r��
encodedkeys   r�__delitem__z_Environ.__delitem__�sD���^�^�C�(�
����	*��
�
�:�&���	*��3�-�T�)�	*�s	�
,�Ac#�jK�t|j�}|D]}|j|����y�wr)rr�r�)r��keysr�s   r�__iter__z_Environ.__iter__�s2�����D�J�J����	&�C��.�.��%�%�	&�s�13c�,�t|j�Sr)�lenr��r�s r�__len__z_Environ.__len__�s���4�:�:��rc�t��dj�fd��jj�D��}d|�d�S)Nz, c3�n�K�|],\}}�j|��d�j|������.y�w)z: N)r�r�)�.0r�r�r�s   �r�	<genexpr>z$_Environ.__repr__.<locals>.<genexpr>�s>�����$
���U��~�~�c�"�%�R��(8�(8��(?�'B�C�$
�s�25z	environ({z}))r�r��items)r��formatted_itemss` r�__repr__z_Environ.__repr__�s=����)�)�$
�"�j�j�.�.�0�$
�
���O�,�C�0�0rc��t|�Sr)�dictrs r�copyz
_Environ.copy�s���D�z�rc��||vr|||<||Sr�r�s   r�
setdefaultz_Environ.setdefault�s���d�?��D��I��C�y�rc�(�|j|�|Sr)�update)r��others  r�__ior__z_Environ.__ior__�s�����E���rc�j�t|t�stSt|�}|j	|�|Sr�rsr��NotImplementedr
r�r�rrs   r�__or__z_Environ.__or__�s,���%��)�!�!��4�j���
�
�5���
rc�j�t|t�stSt|�}|j	|�|Srrrs   r�__ror__z_Environ.__ror__�s,���%��)�!�!��5�k���
�
�4���
rN)�__name__�
__module__�__qualname__r�r�r�r�rrrrrrrrrrrr�r��s>���'� �*�&��1���
��rr�c����tdk(r:d�}|�t}�fd�}i}tj�D]\}}||||�<�n&t	j
���fd���fd�}�}t}t
|||�|�S)Nr*c�h�t|t�s!tdt|�jz��|S)N�str expected, not %s)rsr/r��typer�r�s r�	check_strz!_createenviron.<locals>.check_str�s,���e�S�)�� 6��e��9M�9M� M�N�N��Lrc�0���|�j�Sr)�upper)r��encodes �rr�z!_createenviron.<locals>.encodekey�s����#�;�$�$�&�&rc���t|t�s!tdt|�jz��|j�d�S)Nr"�surrogateescape)rsr/r�r#rr(�r��encodings �rr(z_createenviron.<locals>.encode�s:����e�S�)�� 6��e��9M�9M� M�N�N��<�<��*;�<�<rc�(��|j�d�S)Nr*)�decoder+s �rr.z_createenviron.<locals>.decode�s����<�<��*;�<�<r)rr/r�r	r��getfilesystemencodingr�)r%r.r�r�r�r�r(r,s      @@r�_createenvironr0�s�����t�|�	�����	'���!�-�-�/�	)�J�C��#(�D��3�� �	)��,�,�.��	=�	=��	����D��6����rc�.�tj||�S)z�Get an environment variable, return None if it doesn't exist.
    The optional second argument can specify an alternate default.
    key, default and the result are str.)r�r��r��defaults  r�getenvr4s���;�;�s�G�$�$r)r4r�c�h�t|t�s!tdt|�jz��|S)Nzbytes expected, not %s)rsrtr�r#rr$s r�_check_bytesr6s,���%��'��4�t�E�{�7K�7K�K�L�L��rc�.�tj||�S)z�Get an environment variable, return None if it doesn't exist.
        The optional second argument can specify an alternate default.
        key, default and the result are bytes.)�environbr�r2s  r�getenvbr9 s���|�|�C��)�)r)r8r9c�v���tj��tj����fd�}��fd�}||fS)Nc�b��t|�}t|t�r|j���S|S)aEncode filename (an os.PathLike, bytes, or str) to the filesystem
        encoding with 'surrogateescape' error handler, return bytes unchanged.
        On Windows, use 'strict' error handler if the file system encoding is
        'mbcs' (which is the default encoding).
        )r�rsr/r(��filenamer,�errorss ��rrz_fscodec.<locals>.fsencode,s/����(�#���h��$��?�?�8�V�4�4��Orc�b��t|�}t|t�r|j���S|S)aDecode filename (an os.PathLike, bytes, or str) from the filesystem
        encoding with 'surrogateescape' error handler, return str unchanged. On
        Windows, use 'strict' error handler if the file system encoding is
        'mbcs' (which is the default encoding).
        )r�rsrtr.r<s ��rrz_fscodec.<locals>.fsdecode8s/����(�#���h��&��?�?�8�V�4�4��Or)r�r/�getfilesystemencodeerrors)rrr,r>s  @@r�_fscodecrA(s6����(�(�*�H�
�
*�
*�
,�F�
�
��X��r�fork�spawnvr�)�P_WAIT�P_NOWAIT�	P_NOWAITOc�:�t|ttf�std��|r|dst	d��t�}|s	|�
|||�n||||�yy|tk(r|S	t|d�\}}t|�r�t|�S#t
d�YyxYw)Nzargv must be a tuple or a listrz"argv first element cannot be empty�)rsr�rr�r�rBr(rE�waitpid�
WIFSTOPPED�waitstatus_to_exitcode)rwr�r�r��func�pid�wpid�stss        r�	_spawnvefrPUs����$���
�.��<�=�=��4��7��A�B�B��f���
��;���t�$���t�S�)�%��x���
��#�C��O�	��c��c�?��-�c�2�2��
��c�
�s�B�
Bc�(�t|||dt�S)aspawnv(mode, file, args) -> integer

Execute file with arguments from args in a subprocess.
If mode == P_NOWAIT return the pid of the process.
If mode == P_WAIT return the process's exit code if it exits normally;
otherwise return -SIG, where SIG is the signal that killed it. N)rPr��rwr�r�s   rrCrCps����t�T�4��7�7rc�(�t||||t�S)a:spawnve(mode, file, args, env) -> integer

Execute file with arguments from args in a subprocess with the
specified environment.
If mode == P_NOWAIT return the pid of the process.
If mode == P_WAIT return the process's exit code if it exits normally;
otherwise return -SIG, where SIG is the signal that killed it. )rPrX�rwr�r�r�s    r�spawnverUys����t�T�3��7�7rc�(�t|||dt�S)a8spawnvp(mode, file, args) -> integer

Execute file (which is looked for along $PATH) with arguments from
args in a subprocess.
If mode == P_NOWAIT return the pid of the process.
If mode == P_WAIT return the process's exit code if it exits normally;
otherwise return -SIG, where SIG is the signal that killed it. N)rPr�rRs   r�spawnvprW�s����t�T�4��8�8rc�(�t||||t�S)a\spawnvpe(mode, file, args, env) -> integer

Execute file (which is looked for along $PATH) with arguments from
args in a subprocess with the supplied environment.
If mode == P_NOWAIT return the pid of the process.
If mode == P_WAIT return the process's exit code if it exits normally;
otherwise return -SIG, where SIG is the signal that killed it. )rPr�rTs    r�spawnvperY�s����t�T�3��8�8r)rCrUrWrYc��t|||�S)aspawnl(mode, file, *args) -> integer

Execute file with arguments from args in a subprocess.
If mode == P_NOWAIT return the pid of the process.
If mode == P_WAIT return the process's exit code if it exits normally;
otherwise return -SIG, where SIG is the signal that killed it. )rCrRs   r�spawnlr[�s���d�D�$�'�'rc�.�|d}t|||dd|�S)a:spawnle(mode, file, *args, env) -> integer

Execute file with arguments from args in a subprocess with the
supplied environment.
If mode == P_NOWAIT return the pid of the process.
If mode == P_WAIT return the process's exit code if it exits normally;
otherwise return -SIG, where SIG is the signal that killed it. r�N)rUrTs    r�spawnler]�s$���2�h���t�T�4���9�c�2�2rr[r]rWc��t|||�S)aWspawnlp(mode, file, *args) -> integer

Execute file (which is looked for along $PATH) with arguments from
args in a subprocess with the supplied environment.
If mode == P_NOWAIT return the pid of the process.
If mode == P_WAIT return the process's exit code if it exits normally;
otherwise return -SIG, where SIG is the signal that killed it. )rWrRs   r�spawnlpr_�s���t�T�4�(�(rc�.�|d}t|||dd|�S)a]spawnlpe(mode, file, *args, env) -> integer

Execute file (which is looked for along $PATH) with arguments from
args in a subprocess with the supplied environment.
If mode == P_NOWAIT return the pid of the process.
If mode == P_WAIT return the process's exit code if it exits normally;
otherwise return -SIG, where SIG is the signal that killed it. r�N)rYrTs    r�spawnlpera�s$���2�h����d�D��"�I�s�3�3rr_ra�vxworksc��t|t�stdt|�z��|dvrt	d|z��|dk(s|�t	d��ddl}|dk(r6|j
|dd|j|��}t|j|�S|j
|dd|j|�	�}t|j|�S)
Nz&invalid cmd type (%s, expected string))�r�wzinvalid mode %rrz+popen() does not support unbuffered streamsrdT)�shell�text�stdout�bufsize)rfrg�stdinri)rsr/r�r#r��
subprocess�Popen�PIPE�_wrap_closerhrj)�cmdrw�	bufferingrk�procs     r�popenrr�s����#�s�#��D�t�C�y�P�Q�Q��z�!��.��5�6�6���>�Y�.��J�K�K���3�;��#�#�C�*.�T�+5�?�?�,5�$�7�D��t�{�{�D�1�1��#�#�C�*.�T�*4�/�/�,5�$�7�D��t�z�z�4�0�0rc�0�eZdZd�Zd�Zd�Zd�Zd�Zd�Zy)rnc� �||_||_yr)�_stream�_proc)r��streamrqs   rr�z_wrap_close.__init__�s��!�D�L��D�Jrc��|jj�|jj�}|dk(rytdk(r|S|dzS)Nrr*�)rur�rv�waitr)r��
returncodes  rr�z_wrap_close.close�sC���L�L��� ������*�J��Q����t�|�!�!�!�Q��&rc��|Srrrs r�	__enter__z_wrap_close.__enter__�����Krc�$�|j�yr�r��r�r�s  r�__exit__z_wrap_close.__exit__�����J�J�Lrc�.�t|j|�Sr)�getattrru)r�rs  r�__getattr__z_wrap_close.__getattr__�s���4�<�<��.�.rc�,�t|j�Sr)�iterrurs rrz_wrap_close.__iter__s������%�%rN)	rrrr�r�r}r�r�rrrrrnrn�s ��	�	'�	�	�	/�	&rrnrrc��t|t�stdt|�z��ddl}d|vr|j|�}|j||||g|��i|��S)Nz&invalid fd type (%s, expected integer)r�b)rs�intr�r#�io�
text_encodingrE)�fdrwrpr,r��kwargsr�s       rrrs\���b�#���@�4��8�K�L�L�
�
�$���#�#�H�-���2�7�7�2�t�Y��B�4�B�6�B�Brc�p�t|ttf�r|St|�}	|j	|�}t|ttf�r|Stdj|jt|�j���#t
$r&t
|d�r�td|jz��wxYw)aaReturn the path representation of a path-like object.

    If str or bytes is passed in, it is returned unchanged. Otherwise the
    os.PathLike interface is used to get the path representation. If the
    path representation is not str or bytes, TypeError is raised. If the
    provided path is not str, bytes, or os.PathLike, TypeError is raised.
    �
__fspath__z/expected str, bytes or os.PathLike object, not z7expected {}.__fspath__() to return str or bytes, not {})
rsr/rtr#r�r �hasattrr�r�format)r�	path_type�	path_reprs   r�_fspathr�s����$��e��%����T�
�I�9��(�(��.�	��)�c�5�\�*����!�!'��	�(:�(:�(,�Y��(@�(@�"B�C�	C���9��9�l�+���#�%.�%7�%7�8�9�
9�	9�s�B�/B5r�c�T�eZdZdZej
d��Zed��Zee	�Z
y)�PathLikezCAbstract base class for implementing the file system path protocol.c��t�)z9Return the file system path representation of the object.)�NotImplementedErrorrs rr�zPathLike.__fspath__:s
��"�!rc�6�|turt|d�StS)Nr�)r�rr)�cls�subclasss  r�__subclasshook__zPathLike.__subclasshook__?s���(�?�!�(�L�9�9��rN)rrr�__doc__�abc�abstractmethodr��classmethodr��GenericAlias�__class_getitem__rrrr�r�6s>��M����"��"�����
$�L�1�rr�c�*�eZdZd�Zd�Zd�Zd�Zd�Zy)�_AddedDllDirectoryc�.�||_||_||_yr)r�_cookie�_remove_dll_directory)r�r�cookie�remove_dll_directorys    rr�z_AddedDllDirectory.__init__Js���D�I�!�D�L�)=�D�&rc�H�|j|j�d|_yr)r�r�rrs rr�z_AddedDllDirectory.closeNs���&�&�t�|�|�4��D�Irc��|Srrrs rr}z_AddedDllDirectory.__enter__Qr~rc�$�|j�yrr�r�s  rr�z_AddedDllDirectory.__exit__Sr�rc�R�|jrdj|j�Sy)Nz<AddedDllDirectory({!r})>z<AddedDllDirectory()>)rr�rs rrz_AddedDllDirectory.__repr__Us!���y�y�2�9�9�$�)�)�D�D�*rN)rrrr�r�r}r�rrrrr�r�Is��	>�	�	�	�	+rr�c�\�ddl}|j|�}t|||j�S)aOAdd a path to the DLL search path.

        This search path is used when resolving dependencies for imported
        extension modules (the module itself is resolved through sys.path),
        and also by ctypes.

        Remove the directory by calling close() on the returned object or
        using it in a with statement.
        rN)r*�_add_dll_directoryr�r�)rr*r�s   r�add_dll_directoryr�Zs5��	�&��&�&�t�,��!����$�$�
�	
r)i�F)TNF)�.TNr)rdr�)rdr�N)ir�r�r�r9r��_collections_abcrr#rr�r��builtin_module_names�_namesrrr$rr	r%r(r��ImportError�	posixpathrr)�extendr*�ntpath�modules�os.pathrrrrr
rrr
rr,r1�setr-�supports_dir_fd�supports_effective_idsr.�supports_fd�supports_follow_symlinksrrrrqr|r�r�rErVr�r�r�r�r�r�r�r�r�rr�r�r�r0r�r4r�r6r�rtr8r9rArrrDrErFrPrCrUrWrYr[r]r_ra�platformrrrnrr�r�r�ABCr�r�r�rrr�<module>r�s����0�
��+��D��I���	�	!�	!����
�7��f���D��G��
�����w���
�)���N�N�$�U�+�,�
�	�V�^��D��G��
�����w���
��N�N�$�R�(�)�
�
�&�
�3�
4�4�����I��
�
�
������y�H�#��5�D��	�H�%���G�$���G�$���F�#��	�G�$���F�#���G�$���H�%���G�$���F�#��	�J�'���H�%��	�I�&���H�%���G�$��	�G�$��O��5�D��	�H�%�!���5�D���G�$���G�$���G�$��	�I�&��	�I�&���H�%��H�H�T�N��	�J�'���G�$���G�$��	�J�'��y��g�j�1��_�i�(��K��5�D��	�H�%�,	��G�$���F�#���I�&���G�$��x���]�G�$���F�#���G�$���F�#���F�#��	�G�$���F�#�#������
������
�@&�,�4���4�5�U'�n���v���$�<�?�"����+�'E�.�e�TX�.�`60�p�N�N�7���!��"������G�H��@)$�Z5�G�~�G�R�<�
���%��$�,�����3�4�����
�
��e��e��H�	�*��N�N�*�+��<�Z���(���6�?�7�8�,���1A�
�F���H�y��N�N�6�7�3�68�8�9�9��N�N�?�@��8��(�	3��N�N�H�i�(�)��9��)�	4��N�N�I�z�*�+��<�<�9��1�,&�&�,�N�N�7��C�C�>�x��
�F��F�O�2�s�w�w�2�$�4�<�+�+�"
�%��[ �
��
���
��
���
��
���
��
�sH�S� S�S*�	S6�S�S�S'�&S'�*S3�2S3�6S?�>S?
¿Qué es la limpieza dental de perros? - Clínica veterinaria


Es la eliminación del sarro y la placa adherida a la superficie de los dientes mediante un equipo de ultrasonidos que garantiza la integridad de las piezas dentales a la vez que elimina en profundidad cualquier resto de suciedad.

A continuación se procede al pulido de los dientes mediante una fresa especial que elimina la placa bacteriana y devuelve a los dientes el aspecto sano que deben tener.

Una vez terminado todo el proceso, se mantiene al perro en observación hasta que se despierta de la anestesia, bajo la atenta supervisión de un veterinario.

¿Cada cuánto tiempo tengo que hacerle una limpieza dental a mi perro?

A partir de cierta edad, los perros pueden necesitar una limpieza dental anual o bianual. Depende de cada caso. En líneas generales, puede decirse que los perros de razas pequeñas suelen acumular más sarro y suelen necesitar una atención mayor en cuanto a higiene dental.


Riesgos de una mala higiene


Los riesgos más evidentes de una mala higiene dental en los perros son los siguientes:

  • Cuando la acumulación de sarro no se trata, se puede producir una inflamación y retracción de las encías que puede descalzar el diente y provocar caídas.
  • Mal aliento (halitosis).
  • Sarro perros
  • Puede ir a más
  • Las bacterias de la placa pueden trasladarse a través del torrente circulatorio a órganos vitales como el corazón ocasionando problemas de endocarditis en las válvulas. Las bacterias pueden incluso acantonarse en huesos (La osteomielitis es la infección ósea, tanto cortical como medular) provocando mucho dolor y una artritis séptica).

¿Cómo se forma el sarro?

El sarro es la calcificación de la placa dental. Los restos de alimentos, junto con las bacterias presentes en la boca, van a formar la placa bacteriana o placa dental. Si la placa no se retira, al mezclarse con la saliva y los minerales presentes en ella, reaccionará formando una costra. La placa se calcifica y se forma el sarro.

El sarro, cuando se forma, es de color blanquecino pero a medida que pasa el tiempo se va poniendo amarillo y luego marrón.

Síntomas de una pobre higiene dental
La señal más obvia de una mala salud dental canina es el mal aliento.

Sin embargo, a veces no es tan fácil de detectar
Y hay perros que no se dejan abrir la boca por su dueño. Por ejemplo…

Recientemente nos trajeron a la clínica a un perro que parpadeaba de un ojo y decía su dueño que le picaba un lado de la cara. Tenía molestias y dificultad para comer, lo que había llevado a sus dueños a comprarle comida blanda (que suele ser un poco más cara y llevar más contenido en grasa) durante medio año. Después de una exploración oftalmológica, nos dimos cuenta de que el ojo tenía una úlcera en la córnea probablemente de rascarse . Además, el canto lateral del ojo estaba inflamado. Tenía lo que en humanos llamamos flemón pero como era un perro de pelo largo, no se le notaba a simple vista. Al abrirle la boca nos llamó la atención el ver una muela llena de sarro. Le realizamos una radiografía y encontramos una fístula que llegaba hasta la parte inferior del ojo.

Le tuvimos que extraer la muela. Tras esto, el ojo se curó completamente con unos colirios y una lentilla protectora de úlcera. Afortunadamente, la úlcera no profundizó y no perforó el ojo. Ahora el perro come perfectamente a pesar de haber perdido una muela.

¿Cómo mantener la higiene dental de tu perro?
Hay varias maneras de prevenir problemas derivados de la salud dental de tu perro.

Limpiezas de dientes en casa
Es recomendable limpiar los dientes de tu perro semanal o diariamente si se puede. Existe una gran variedad de productos que se pueden utilizar:

Pastas de dientes.
Cepillos de dientes o dedales para el dedo índice, que hacen más fácil la limpieza.
Colutorios para echar en agua de bebida o directamente sobre el diente en líquido o en spray.

En la Clínica Tus Veterinarios enseñamos a nuestros clientes a tomar el hábito de limpiar los dientes de sus perros desde que son cachorros. Esto responde a nuestro compromiso con la prevención de enfermedades caninas.

Hoy en día tenemos muchos clientes que limpian los dientes todos los días a su mascota, y como resultado, se ahorran el dinero de hacer limpiezas dentales profesionales y consiguen una mejor salud de su perro.


Limpiezas dentales profesionales de perros y gatos

Recomendamos hacer una limpieza dental especializada anualmente. La realizamos con un aparato de ultrasonidos que utiliza agua para quitar el sarro. Después, procedemos a pulir los dientes con un cepillo de alta velocidad y una pasta especial. Hacemos esto para proteger el esmalte.

La frecuencia de limpiezas dentales necesaria varía mucho entre razas. En general, las razas grandes tienen buena calidad de esmalte, por lo que no necesitan hacerlo tan a menudo e incluso pueden pasarse la vida sin requerir una limpieza. Sin embargo, razas pequeñas como el Yorkshire o el Maltés, deben hacérselas todos los años desde cachorros si se quiere conservar sus piezas dentales.

Otro factor fundamental es la calidad del pienso. Algunas marcas han diseñado croquetas que limpian la superficie del diente y de la muela al masticarse.

Ultrasonido para perros

¿Se necesita anestesia para las limpiezas dentales de perros y gatos?

La limpieza dental en perros no es una técnica que pueda practicarse sin anestesia general , aunque hay veces que los propietarios no quieren anestesiar y si tiene poco sarro y el perro es muy bueno se puede intentar…… , pero no se va a poder pulir ni acceder a todas la zona de la boca …. Además los limpiadores dentales van a irrigar agua y hay riesgo de aspiración a vías respiratorias si no se realiza una anestesia correcta con intubación traqueal . En resumen , sin anestesia no se va hacer una correcta limpieza dental.

Tampoco sirve la sedación ya que necesitamos que el animal esté totalmente quieto, y el veterinario tenga un acceso completo a todas sus piezas dentales y encías.

Alimentos para la limpieza dental

Hay que tener cierto cuidado a la hora de comprar determinados alimentos porque no todos son saludables. Algunos tienen demasiado contenido graso, que en exceso puede causar problemas cardiovasculares y obesidad.

Los mejores alimentos para los dientes son aquellos que están elaborados por empresas farmacéuticas y llevan componentes químicos con tratamientos específicos para el diente del perro. Esto implica no solo limpieza a través de la acción mecánica de morder sino también un tratamiento antibacteriano para prevenir el sarro.

Conclusión

Si eres como la mayoría de dueños, por falta de tiempo , es probable que no estés prestando la suficiente atención a la limpieza dental de tu perro. Por eso te animamos a que comiences a limpiar los dientes de tu perro y consideres atender a su higiene bucal con frecuencia.

Estas simples medidas pueden conllevar a que tu perro tenga una vida más larga y mucho más saludable.

Si te resulta imposible introducir un cepillo de dientes a tu perro en la boca, pásate con él por clínica Tus Veterinarios y te explicamos cómo hacerlo.

Necesitas hacer una limpieza dental profesional a tu mascota?
Llámanos al 622575274 o contacta con nosotros

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

¡Hola!