403Webshell
Server IP : 146.190.157.162  /  Your IP : 216.73.216.238
Web Server : Apache
System : Linux ubuntu-s-2vcpu-4gb-amd-sfo3-01-KIT-DIGITAL 6.5.0-44-generic #44-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 7 15:10:09 UTC 2024 x86_64
User : businessweek ( 639)
PHP Version : 8.2.10-2ubuntu2.2
Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_signal,pcntl_signal_dispatch,pcntl_getpriority,pcntl_setpriority,dl,putenv,parse_ini_file,show_source
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/__pycache__/roman.cpython-311.pyc
�

"*_P��<�ddlmZ	dZdZdZdZddlZddlZddlZddl	Z	Gd�de
��ZGd	�d
e��ZGd�de��Z
Gd
�de��ZdZd�Zejdej��Zd�Zd�Zd�Zedkre	je����dSdS)�)�print_functionz&Mark Pilgrim (f8dy@diveintopython.org)z1.4z
8 August 2001agCopyright (c) 2001 Mark Pilgrim

This program is part of "Dive Into Python", a free Python tutorial for
experienced programmers.  Visit http://diveintopython.org/ for the
latest version.

This program is free software; you can redistribute it and/or modify
it under the terms of the Python 2.1.1 license, available at
http://www.python.org/2.1.1/license.html
Nc��eZdZdS)�
RomanErrorN��__name__�
__module__�__qualname__���'/usr/lib/python3/dist-packages/roman.pyrr��������Drrc��eZdZdS)�OutOfRangeErrorNrr
rrrrr
rrc��eZdZdS)�NotIntegerErrorNrr
rrrr#r
rrc��eZdZdS)�InvalidRomanNumeralErrorNrr
rrrr'r
rr)
)�Mi�)�CMi�)�Di�)�CDi�)�C�d)�XC�Z)�L�2)�XL�()�X�
)�IX�	)�V�)�IV�)�I�c���t|t��std���d|cxkrdksntd���|dkrdSd}tD]\}}||kr||z
}||z}||k��|S)z convert integer to Roman numeralzdecimals can not be converted���i�z%number out of range (must be 0..4999)r�N�)�
isinstance�intrr�romanNumeralMap)�n�result�numeral�integers    r�toRomanr5;s����a����?��=�>�>�>���M�M�M�M�T�M�M�M�M��E�F�F�F�	�A�v�v��s�
�F�+�������7�l�l��g��F�
��L�A��7�l�l���Mra8
    ^                   # beginning of string
    M{0,4}              # thousands - 0 to 4 M's
    (CM|CD|D?C{0,3})    # hundreds - 900 (CM), 400 (CD), 0-300 (0 to 3 C's),
                        #            or 500-800 (D, followed by 0 to 3 C's)
    (XC|XL|L?X{0,3})    # tens - 90 (XC), 40 (XL), 0-30 (0 to 3 X's),
                        #        or 50-80 (L, followed by 0 to 3 X's)
    (IX|IV|V?I{0,3})    # ones - 9 (IX), 4 (IV), 0-3 (0 to 3 I's),
                        #        or 5-8 (V, followed by 0 to 3 I's)
    $                   # end of string
    c�X�|std���|dkrdSt�|��std|z���d}d}tD]X\}}|||t	|��z�|kr5||z
}|t	|��z
}|||t	|��z�|k�5�Y|S)z convert Roman numeral to integerzInput can not be blankr,rzInvalid Roman numeral: %s)r�romanNumeralPattern�searchr0�len)�sr2�indexr3r4s     r�	fromRomanr<\s����A�&�'?�@�@�@�	�C�x�x��q��%�%�a�(�(�H�&�'B�Q�'F�G�G�G�
�F�
�E�+�"�"������e�c�'�l�l�*�*�+�w�6�6��g��F��S��\�\�!�E���e�c�'�l�l�*�*�+�w�6�6���Mrc���tjdd���}|�dd���|�ddd	d
d���|���}|j|_|S)
N�romanz)convert between roman and arabic numerals)�prog�description�numberzthe value to convert)�helpz-rz	--reverse�
store_trueFz<convert roman to numeral (case insensitive) [default: False])�action�defaultrB)�argparse�ArgumentParser�add_argument�
parse_argsrA)�parser�argss  rrIrIqs���
�
$�
�?����F�����'=��>�>�>�
����k���
K�	�M�M�M������D��+�D�K��Krc��t��}|jr8|j���}t	|��}t|��n2t
|j��}t|��}t|��tj	S)N)
rI�reverserA�upperr<�printr/r5�os�EX_OK)rK�u�r�ir1s     r�mainrU�sl���<�<�D��|���K�������a�L�L��
�a������������A�J�J��
�a����
�8�Or�__main__)�
__future__r�
__author__�__version__�__date__�
__copyright__rFrP�re�sys�	Exceptionrrrrr0r5�compile�VERBOSEr7r<rIrUr�exitr
rr�<module>rbs���%�%�%�%�%�%�)�
5�
�����	�
�����	�	�	�	�	�	�	�	�
�
�
�
�	�	�	�	�	��	�	�	�	�	�	�	�	�j�	�	�	�	�	�	�	�	�j�	�	�	�	�	�	�	�	�z�	�	�	�
�����(!�b�j�
"�
��
�
�����*���"����z����C�H�T�T�V�V�������r

Youez - 2016 - github.com/yon3zu
LinuXploit