| Server IP : 35.80.110.71 / Your IP : 216.73.216.221 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/IPython/utils/__pycache__/ |
Upload File : |
�
}�eg_ �
� � d Z ddlZddlZddlZddlZddlZddlZddlmZ ddlm Z ddl
mZmZm
Z
G d� de� Z G d� d e� Zd(d
�Zd� Zd)d�Z ej* d
� Zd� Zd� Zdedefd�Zd*d�Zd� Zd� Z G d� de� Z G d� de� Z G d� de� Zd+d�Z de!de"d e"fd!�Z#d,d"�Z$ d-d#dd$�de!de
eee" eee"f f fd%�Z%d.d&�Z&d/d'�Z'y)0z~
Utilities for working with strings and text.
Inheritance diagram:
.. inheritance-diagram:: IPython.utils.text
:parts: 3
� N)� Formatter)�Path)�List�Dict�Tuplec �x � e Zd ZdZd� Z ee� xZZd� Z ee� xZ Z
d� Z ee� xZZ
d� Z ee� xZZy)�LSStringa` String derivative with a special access attributes.
These are normal strings, but with the special attributes:
.l (or .list) : value as list (split on newlines).
.n (or .nlstr): original value (the string itself).
.s (or .spstr): value as whitespace-separated string.
.p (or .paths): list of path objects (requires path.py package)
Any values which require transformations are computed only once and
cached.
Such strings are very useful to efficiently interact with the shell, which
typically only understands whitespace-separated options for commands.c �~ � | j S # t $ r% | j d� | _ | j cY S w xY w�N�
)�_LSString__list�AttributeError�split��selfs �4/usr/lib/python3/dist-packages/IPython/utils/text.py�get_listzLSString.get_list'