ok
Direktori : /proc/thread-self/root/opt/alt/python37/lib64/python3.7/idlelib/__pycache__/ |
Current File : //proc/thread-self/root/opt/alt/python37/lib64/python3.7/idlelib/__pycache__/format.cpython-37.pyc |
B � f�= � @ 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"