| 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
�9j�! � @ s� d Z ddlZddlZddlZddlmZ ddlmZ ddlm Z m
Z
mZ ddlm
Z
ddlmZ dadZd d
� Zddd�ZG d
d� d�ZG dd� de
�ZG dd� de
�Zdd� Zedkr|eej�dkrpddlmZ edddd� ddlmZ ee� dS dS )z�Module browser.
XXX TO DO:
- reparse when source changed (maybe just a button would be OK?)
(or recheck on window popup)
- add popup menu with more options (e.g. doc strings, base classes, imports)
- add base classes to class browser tree
� N)�idleConf)�pyshell)�TreeNode�TreeItem�ScrolledCanvas)�
py_extensions)�ListedToplevel)z.pyic C s, t j�| �\}}t j�|�}|tv o|tvS �N)�os�path�splitext�normcaser �browseable_extension_blocklist)r �_�ext� r �&/usr/lib/python3.10/idlelib/browser.py�is_browseable_extension s r c C s� g }| � � D ]R\}}|du s|j|krXt|d�rS|jrS|j|krSg }|jD ] }t|t�r/|}n|j}|j|jkr@|j� d|� �}|�|� q%| jd�d� |��7 _|�|� q|S )a Transform a child dictionary to an ordered sequence of objects.
The dictionary maps names to pyclbr information objects.
Filter out imported objects.
Augment class names with bases.
The insertion order of the dictionary is assumed to have been in line
number order, so sorting is not necessary.
The current tree only calls this once per child_dict as it saves
TreeItems once created. A future tree and tests might violate this,
so a check prevents multiple in-place augmentations.
N�super�.z({})z, )
�items�module�hasattrr �name�
isinstance�str�append�format�join)�
child_dict�modname�obs�key�obj�supers�sup�snamer r r �transform_children# s
�r'