Ë ~œiu5jÇÛãó(—dZdZddlZ eZeZeZeZddlm Z ddl m Z ddl m Z ddl mZ dd lmZd „Zd „Zd „Zd„Zd„Zy#eef$r#eZeZeZeZddlm Z ddlm Z ddlm Z ddlmZYŒ@wxYw#e$r dd lmZn#eef$r dd lmZYnwxYwYŒ_wxYw)aK Compatibility with Python 2 and 3. This module exposes aliases and functions that make it easier to write Python code that is compatible with Python 2 and Python 3. .. data:: basestring Alias for :func:`python2:basestring` (in Python 2) or :class:`python3:str` (in Python 3). See also :func:`is_string()`. .. data:: HTMLParser Alias for :class:`python2:HTMLParser.HTMLParser` (in Python 2) or :class:`python3:html.parser.HTMLParser` (in Python 3). .. data:: interactive_prompt Alias for :func:`python2:raw_input()` (in Python 2) or :func:`python3:input()` (in Python 3). .. data:: StringIO Alias for :class:`python2:StringIO.StringIO` (in Python 2) or :class:`python3:io.StringIO` (in Python 3). .. data:: unicode Alias for :func:`python2:unicode` (in Python 2) or :class:`python3:str` (in Python 3). See also :func:`coerce_string()`. .. data:: monotonic Alias for :func:`python3:time.monotonic()` (in Python 3.3 and higher) or `monotonic.monotonic()` (a `conditional dependency `_ on older Python versions). )Ú HTMLParserÚStringIOÚ basestringÚ coerce_stringÚinteractive_promptÚ is_stringÚ is_unicodeÚ monotonicÚname2codepointÚon_macosÚ on_windowsÚunichrÚunicodeÚwhichéN)Úfind_executable)r)r)r )r)r )Útimecó2—t|«r|St|«S)z× Coerce any value to a Unicode string (:func:`python2:unicode` in Python 2 and :class:`python3:str` in Python 3). :param value: The value to coerce. :returns: The value coerced to a Unicode string. )rr©Úvalues ú9/usr/lib/python3.12/site-packages/humanfriendly/compat.pyrres€ô˜eÔ$ˆ5Ð8¬'°%«.Ð8ócó"—t|t«S)zë Check if a value is a :func:`python2:basestring` (in Python 2) or :class:`python3:str` (in Python 3) object. :param value: The value to check. :returns: :data:`True` if the value is a string, :data:`False` otherwise. )Ú isinstancerrs rrros€ô �eœZÓ (Ð(rcó"—t|t«S)zð Check if a value is a :func:`python2:unicode` (in Python 2) or :class:`python2:str` (in Python 3) object. :param value: The value to check. :returns: :data:`True` if the value is a Unicode string, :data:`False` otherwise. )rrrs rrrys€ô �eœWÓ %Ð%rcó@—tjjd«S)zw Check if we're running on Apple MacOS. :returns: :data:`True` if running MacOS, :data:`False` otherwise. Údarwin©ÚsysÚplatformÚ startswith©rrr r ƒs€ô �<‰<× "Ñ " 8Ó ,Ð,rcó@—tjjd«S)z† Check if we're running on the Microsoft Windows OS. :returns: :data:`True` if running Windows, :data:`False` otherwise. Úwinrr!rrr r Œs€ô �<‰<× "Ñ " 5Ó )Ð)r) Ú__doc__Ú__all__rrr rÚ raw_inputrÚdistutils.spawnrrrrÚhtmlentitydefsr Ú ImportErrorÚ NameErrorÚstrÚchrÚinputÚshutilÚ html.parserÚioÚ html.entitiesrr Ú RuntimeErrorrrrr r r!rrÚr3sÇðñ$ðL €ó$ ð-à€GØ €FØ€JØ"ÐÝ8Ý%Ý!Ý-ð +åò9ò)ò&ò-ó*øðA �YÐò -à€GØ €FØ€JØÐÝÝ&Ýß,ð -ûðò+ð+Þ'øØ ˜Ð &ò+÷ +ð+üð +úsFŠ A«A.Á'A+Á*A+Á.BÁ4A;Á:BÁ; B ÂB B  BÂB