| Server IP : 3.138.164.131 / Your IP : 216.73.216.136 Web Server : Apache System : Linux ns1.techtime.me 4.18.0-147.8.1.el8.lve.1.x86_64 #1 SMP Mon Jun 29 09:55:57 EDT 2020 x86_64 User : injazaat ( 1471) PHP Version : 8.1.20 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python37/lib64/python3.7/idlelib/__pycache__/ |
Upload File : |
B
r}�c�= � @ s� d Z ddlZddlmZ ddlmZ ddlmZ G dd� d�Ze� � dd � Z
d
d� Zdd
� Zdd� Z
dd� Zdd� Ze�d�Zdd� ZG dd� d�ZG dd� d�ZG dd� d�Zedkr�ddlmZ edd d!d"� dS )#z�Format all or a selected region (line slice) of text.
Region formatting options: paragraph, comment block, indent, deindent,
comment, uncomment, tabify, and untabify.
File renamed from paragraph.py with functions added from editor.py.
� N)�askyesno)�
askinteger)�idleConfc @ s6 e Zd ZdZdd� Zedd� �Zdd� Zdd d
�ZdS )�FormatParagrapha Format a paragraph, comment block, or selection to a max width.
Does basic, standard text formatting, and also understands Python
comment blocks. Thus, for editing Python source code, this
extension is really only suitable for reformatting these comment
blocks or triple-quoted strings.
Known problems with comment reformatting:
* If there is a selection marked, and the first line of the
selection is not complete, the block will probably not be detected
as comments, and will have the normal "text formatting" rules
applied.
* If a comment block has leading whitespace that mixes tabs and
spaces, they will not be considered part of the same block.
* Fancy comments, like this bulleted list, aren't handled :-)
c C s
|| _ d S )N)�editwin)�selfr � r �3/opt/alt/python37/lib64/python3.7/idlelib/format.py�__init__ s zFormatParagraph.__init__c C s t jdddddd�| _d S )N�
extensionsr z max-width�int�H )�type�default)r Z GetOption� max_width)�clsr r r �reload"