ó
    oñ:i¾  ã                   ó(  • S r SSKrSSKrSSKrSSKJrJr  SSK	J
r
  SSK	Jr  SSKJr  SSKJrJrJrJrJrJrJr  \R.                  " S	\5        / S
Qr " S S\5      r\r\r\r\R>                  r\R@                  r \!r!\"r"\#=r#r$\%r&\r'\(r(\r)S r*SS jr+g)z"Python 2/3 compat layer leftovers.é    N)Úredirect_stderrÚredirect_stdout)ÚBytesIO)ÚStringIO)ÚSimpleNamespaceé   )ÚTagÚbytechrÚbyteordÚ	bytesjoinÚstrjoinÚtobytesÚtostrzeThe py23 module has been deprecated and will be removed in a future release. Please update your code.)Ú
basestringr
   r   r   r   ÚopenÚ	Py23ErrorÚrangeÚRecursionErrorÚroundr   r   r   r	   r   r   Ú	tounicodeÚunichrÚunicodeÚ	UnicodeIOÚxrangeÚzipc                   ó   • \ rS rSrSrg)r   é-   © N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__static_attributes__r   ó    ÚV/srv/projetos/modelo_ml_acdoc/venv/lib/python3.13/site-packages/fontTools/misc/py23.pyr   r   -   s   † Úr$   r   c                  ó   • [        S5      e)Nz-'xrange' is not defined. Use 'range' instead.)r   )ÚargsÚkwargss     r%   r   r   A   s   € Ü
ÐCÓ
DÐDr$   c                 ó>  • Uc  SnUS:  a3  SU* -  n[        X5      u  p4XBS-  :¼  a  U S:¼  a  US-  n[        X2-  5      $ [        R                  " S5      U* -  n[        R                  R	                  U 5      R                  U[        R                  S9n[        U5      $ )a´  
Implementation of Python 2 built-in round() function.
Rounds a number to a given precision in decimal digits (default
0 digits). The result is a floating point number. Values are rounded
to the closest multiple of 10 to the power minus ndigits; if two
multiples are equally close, rounding is done away from 0.
ndigits may be negative.
See Python 2 documentation:
https://docs.python.org/2/library/functions.html?highlight=round#round
r   é
   é   r   Ú10)Úrounding)ÚdivmodÚfloatÚ_decimalÚDecimalÚ
from_floatÚquantizeÚROUND_HALF_UP)ÚnumberÚndigitsÚexponentÚquotientÚ	remainderÚds         r%   Úround2r;   E   s¨   € ð �Øˆà�ƒ{Ø˜7˜(Ñ#ˆÜ$ VÓ6ÑˆØ A™Ó%¨&°A«+Ø˜‰MˆHÜ�XÑ(Ó)Ð)ä×#Ò# DÓ)¨w¨hÑ7ˆä×Ñ×'Ñ'¨Ó/×8Ñ8Øœx×5Ñ5ð 9ð 
ˆô �Q‹xˆr$   )N),Ú__doc__Údecimalr0   ÚmathÚ_mathÚwarningsÚ
contextlibr   r   Úior   r   r   Útypesr   Ú	textToolsr	   r
   r   r   r   r   r   ÚwarnÚDeprecationWarningÚ__all__ÚNotImplementedErrorr   r   Ústrr   ÚiscloseÚisfiniter   r   r   Úround3Úchrr   r   r   r   r   r;   r   r$   r%   Ú<module>rN      s¤   ðÙ (ã Û Û ß 7Ý Ý $Ý !ç P× PÑ Pà ‡‚ðàôò€ô4	Ð#ô 	ð  €Ø€à€
Ø
�-‰-€Ø�>‰>€Ø€Ø€ØÐ €ˆØ	€Ø
€Ø	€à€	òEõr$   