| Server IP : 43.141.49.107 / Your IP : 113.219.202.141 Web Server : Apache System : Linux VM-8-5-opencloudos 6.6.34-9.oc9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jun 19 19:35:45 CST 2024 x86_64 User : www ( 1000) PHP Version : 8.1.27 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib64/python3.11/__pycache__/ |
Upload File : |
�
��e�4 � � � d Z ddlZddlZddlZddlmZ ddlmZ g d�Z G d� d� � Z dd
�Z
d� Z ej dej
� � j Zd
� Zd� Zedk rq eej � � dk r e e � � � � dS ej d Z ee� � 5 Z e e ee� � � � ddd� � dS # 1 swxY w Y dS dS )�8A lexical analyzer class for simple shell-like syntaxes.� N)�deque)�StringIO)�shlex�split�quote�joinc �n � e Zd ZdZ dd�Zed� � � Zd� Zdd�Zd� Z d � Z
d
� Zd� Zdd�Z
d
� Zd� ZdS )r r NFc � � t |t � � rt |� � }|�|| _ || _ nt
j | _ d | _ || _ |rd | _ nd| _ d| _ d| _
| j r| xj
dz
c_
d| _ d| _ d| _
d| _ d | _ d
| _ t# � � | _ d| _ d| _ d| _ t# � � | _ d | _ |sd}n|d
u rd}|| _ |rvt# � � | _ | xj
dz
c_
| j
� t6 � |� � � � }| j
� |� � | _
d S d S )N� �#�?abcdfeghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_u| ßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞz
Fz'"�\�"� � r Tz();<>|&z~-./*?=)�
isinstance�strr �instream�infile�sys�stdin�posix�eof�
commenters� wordchars�
whitespace�whitespace_split�quotes�escape�
escapedquotes�stater �pushback�lineno�debug�token� filestack�source�_punctuation_chars�_pushback_chars� maketrans�dict�fromkeys� translate)�selfr r r �punctuation_chars�ts �/usr/lib64/python3.11/shlex.py�__init__zshlex.__init__ s� � ��h��$�$� *���)�)�H���$�D�M� �D�K�K��I�D�M��D�K���
�� ��D�H�H��D�H����B����:� _��N�N� ^�
_�N�N�#��� %��������� �����
�����
������
���
��������� � *� "���
�$�
&�
&� )��"3���� 9�#(�7�7�D� ��N�N�i�'�N�N���(�(����7H�)I�)I�J�J�A�!�^�5�5�a�8�8�D�N�N�N� 9� 9� c � � | j S �N)r) �r/ s r2 r0 zshlex.punctuation_charsD s � ��&�&r4 c � � | j dk rt dt |� � z � � | j � |� � dS )z:Push a token onto the stack popped by the get_token methodr zshlex: pushing token N)r% �print�reprr# �
appendleft)r/ �toks r2 �
push_tokenzshlex.push_tokenH sC � ��:��?�?��)�D��I�I�5�6�6�6��
� � ��%�%�%�%�%r4 c �F � t |t � � rt |� � }| j � | j | j | j f� � || _ || _ d| _ | j r4|�t d| j ��� � dS t d| j ��� � dS dS )z9Push an input source onto the lexer's input source stack.r Nzshlex: pushing to file zshlex: pushing to stream )
r r r r'