| Server IP : 3.111.61.48 / Your IP : 216.73.216.67 Web Server : Apache System : Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.2.31 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3.10/idlelib/__pycache__/ |
Upload File : |
o
�9jM � @ s� d Z ddlZddlmZ ddlmZ g d�Zdadd� Zdd � Z G d
d� de�Z
G dd
� d
�ZedkrBddl
mZ edddd� dS dS )z0Editor window that can serve as an output file.
� N)�
messagebox)�EditorWindow)zfile "([^"]*)", line (\d+)z([^\s]+)\((\d+)\)z^(\s*\S.*?):\s*(\d+):z([^\s]+):\s*(\d+):z^\s*(\S.*?):\s*(\d+):c C s dd� t D �adS )z?Compile the patterns for matching to file name and line number.c S s g | ] }t �|t j��qS � )�re�compile�
IGNORECASE)�.0�patr r �%/usr/lib/python3.10/idlelib/outwin.py�
<listcomp> s �z!compile_progs.<locals>.<listcomp>N)�file_line_pats�file_line_progsr r r r
�
compile_progs s
�r c C s� t st� t D ]'}|�| �}|r.|�dd�\}}zt|d�}|�� W n ty- Y qw qdS z|t|�fW S tyB Y dS w )a- Extract file name and line number from line of text.
Check if line of text contains one of the file/line patterns.
If it does and if the file and line are valid, return
a tuple of the file name and line number. If it doesn't match
or if the file or line is invalid, return None.
� � �rN) r
r �search�group�open�close�OSError�int� TypeError)�line�prog�match�filename�lineno�fr r r
�file_line_helper s(
�� �r c @ sh e Zd ZdZg d�ZdZdd� Zdd� Zdd � Zd
d� Z ddd�Z
dd� Zdd� Zdd� Z
ddd�ZdS )�OutputWindowz�An editor window that can serve as an output file.
Also the future base class for the Python shell window.
This class has no input facilities.
Adds binding to open a file at a line to the text widget.
))�Cutz<<cut>>�rmenu_check_cut)�Copyz<<copy>>�rmenu_check_copy)�Pastez <<paste>>�rmenu_check_paste)NNN)zGo to file/line�<<goto-file-line>>NFc G s&