
    Fhi                         S r SSKrSSKrSSKrSSKrSSKrSSKrSSKJrJ	r	  SS jr
S r " S S\	\\4   5      r \R                  rS	 rS
 rg! \ a    Sr Nf = f)zio-related utilities    N)AnyDictc                     U S;   d   e[        [        U 5      n  U R                  n[        R
                  " S5      " U5      $ ! [         a    U s $ f = f)u   Get a wrapper to write unicode to stdout/stderr as UTF-8.

This ignores environment variables and default encodings, to reliably write
unicode to stdout or stderr.

::

    unicode_std_stream().write(u'ł@e¶ŧ←')
)stdoutstderrutf-8)getattrsysbufferAttributeErrorcodecs	getwriterstreamstream_bs     eC:\Users\julio\OneDrive\Documentos\Trabajo\Ideas Frescas\venv\Lib\site-packages\nbconvert/utils/io.pyunicode_std_streamr      s[     ))))S&!F==
 G$X..	  s   A AAc                      [         R                  n  U R                  n[        R
                  " S5      " U5      $ ! [         a    U s $ f = f)zGet a wrapper to read unicode from stdin as UTF-8.

This ignores environment variables and default encodings, to reliably read unicode from stdin.

::

    totreat = unicode_stdin_stream().read()
r   )r
   stdinr   r   r   	getreaderr   s     r   unicode_stdin_streamr   %   sI     YYF== G$X..  s   : A	A	c                       \ rS rSrSrS rSrg)FormatSafeDict7   zFormat a dictionary safely.c                     SU-   S-   $ )zHandle missing value.{} )selfkeys     r   __missing__FormatSafeDict.__missing__:   s    Sy3    r   N)__name__
__module____qualname____firstlineno____doc__r!   __static_attributes__r   r#   r   r   r   7   s
    %r#   r   i  c                     [        [        S5      (       d  [        $ Sn [        R                  " X5        U$ ! [         a  nUR
                  n SnAU$ SnAff = f)zHard links ``src`` to ``dst``, returning 0 or errno.

Note that the special errno ``ENOLINK`` will be returned if ``os.link`` isn't
supported by the operating system.
linkr   N)hasattrosENOLINKr+   OSErrorerrno)srcdst
link_errnoes       r   r+   r+   E   sU     2vJ
   WW
s   7 
AAAc                    [         R                  R                  U5      (       a=  [         R                  R                  U[         R                  R	                  U 5      5      n[        X5      nU[        R                  :X  a  [         R                  " U 5      R                  [         R                  " U5      R                  :X  a  gUS[        R                  " SS5      S 3-   n [        X5        [         R                   " X15        gUS:w  a  ["        R$                  " X5        gg! [         a)     [         R                  " U5        e ! [         a     e f = ff = f)a  Attempts to hardlink ``src`` to ``dst``, copying if the link fails.

Attempts to maintain the semantics of ``shutil.copy``.

Because ``os.link`` does not overwrite files, a unique temporary file
will be used if the target already exists, then that file will be moved
into place.
Nz-temp-   i   04Xr   )r-   pathisdirjoinbasenamer+   r0   EEXISTstatst_inorandomrandintlink_or_copyBaseExceptionremover/   renameshutilcopy)r1   r2   r3   new_dsts       r   rA   rA   V   s
    
ww}}Sggll3 0 0 56cJU\\!773<"''#,"5"55 &5!9# >??	& 			'	q 	C 
  			'"   	s0   #D# #
E.EE
EEEE)r   )r(   r   r0   r-   r?   rE   r
   typingr   r   r   r   r   r.   r   r+   rA   r   r#   r   <module>rI      sk    
   	   
 /,/$T#s(^ mmG
""+  Gs   A AA