Module Import alias ImportFrom alias identifier ImportFrom alias ImportFrom alias alias alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body ImportFrom alias Assign AttributeStore NameLoad attr Call NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad For NameStore Call NameLoad Num NameLoad body Assign NameStore Call NameLoad SubscriptLoad Call AttributeLoad Call AttributeLoad NameLoad attr BinOpMod Str NameLoad attr Str Index Num For NameStore TupleLoad Num BinOpFloorDiv NameLoad Num NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad Num TupleLoad Str Str Str SubscriptLoad NameLoad Slice Num Num Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad Num TupleLoad Str Str Str SubscriptLoad NameLoad Slice Num Num Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad Num TupleLoad Str Str Str SubscriptLoad NameLoad Slice Num Num Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad Num TupleLoad Str Str Str SubscriptLoad NameLoad Slice Num Num Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad Num TupleLoad Str Str Str SubscriptLoad NameLoad Slice Num Num Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad Num TupleLoad Str Str Str SubscriptLoad NameLoad Slice Num Num Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad Num TupleLoad Str Str Str SubscriptLoad NameLoad Slice Num Num Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad Num TupleLoad Str Str Str SubscriptLoad NameLoad Slice Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad Num TupleLoad Str Str Str SubscriptLoad NameLoad Slice Num Num Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad Num TupleLoad Str Str Str SubscriptLoad NameLoad Slice Num Num Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad Num TupleLoad Str Str Str SubscriptLoad NameLoad Slice Num Num Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad Num TupleLoad Str Str Str SubscriptLoad NameLoad Slice Num Num Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad Num TupleLoad Str Str Str SubscriptLoad NameLoad Slice Num Num decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Str Expr Call NameLoad Call NameLoad Str Num Str Expr Call NameLoad Call NameLoad Str Num Str Expr Call NameLoad Call NameLoad NameLoad Num Str Expr Call NameLoad Call NameLoad NameLoad Num Str Expr Call NameLoad Call NameLoad NameLoad Num Str Expr Call NameLoad Call NameLoad NameLoad Num Str Expr Call NameLoad Call NameLoad NameLoad Num Str Assign NameStore Str Expr Call NameLoad Call NameLoad NameLoad Num Str Expr Call NameLoad Call NameLoad NameLoad Num Str Expr Call NameLoad Call NameLoad NameLoad Num Str Expr Call NameLoad Call NameLoad NameLoad Num Str Expr Call NameLoad Call NameLoad NameLoad Num Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Str Assign NameStore Str Expr Call NameLoad NameLoad NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Str Assign NameStore Str Expr Call NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list decorator_list ClassDef bases body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad NameLoad decorator_list Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str Assign AttributeStore NameLoad attr Call NameLoad Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Delete AttributeDel NameLoad attr Delete AttributeDel NameLoad attr Delete AttributeDel NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str keyword Num Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Str Expr Call AttributeLoad NameLoad attr Str keyword Num Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Str Expr Call AttributeLoad NameLoad attr Str keyword Num Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str keyword Num Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Str Expr Call AttributeLoad NameLoad attr Str keyword Num Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Str decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr keyword Num keyword Num
N/A N/A unittest idlelib FormatParagraph fp idlelib.EditorWindow EditorWindow Tkinter Tk Text TclError test.test_support requires Is_Get_Test N/A N/A unittest TestCase N/A N/A Test the is_ and get_ functions N/A test_comment # This is a comment N/A test_nocomment This is not a comment N/A trailingws_comment # This is a comment    N/A leadingws_comment     # This is a comment N/A leadingws_nocomment     This is not a comment test_is_all_white N/A N/A self N/A N/A N/A N/A N/A self assertTrue N/A N/A fp is_all_white N/A N/A N/A self assertTrue N/A N/A fp is_all_white N/A N/A N/A self assertFalse N/A N/A fp is_all_white N/A self test_comment N/A test_get_indent N/A N/A self N/A N/A N/A Equal N/A self assertEqual N/A N/A Equal N/A N/A fp get_indent N/A self test_comment N/A N/A Equal N/A N/A fp get_indent N/A self trailingws_comment N/A N/A Equal N/A N/A fp get_indent N/A self leadingws_comment N/A N/A Equal N/A N/A fp get_indent N/A self leadingws_nocomment N/A test_get_comment_header N/A N/A self N/A N/A N/A Equal N/A self assertEqual N/A N/A Equal N/A N/A fp get_comment_header N/A self test_comment # N/A N/A Equal N/A N/A fp get_comment_header N/A self trailingws_comment # N/A N/A Equal N/A N/A fp get_comment_header N/A self leadingws_comment     # N/A N/A Equal N/A N/A fp get_comment_header N/A self leadingws_nocomment N/A N/A Equal N/A N/A fp get_comment_header N/A self test_nocomment N/A N/A FindTest N/A N/A unittest TestCase N/A N/A Test the find_paragraph function in FormatParagraph.

    Using the runcase() function, find_paragraph() is called with 'mark' set at
    multiple indexes before and inside the test paragraph.

    It appears that code with the same indentation as a quoted string is grouped
    as part of the same paragraph, which is probably incorrect behavior.
     setUpClass N/A N/A cls N/A N/A idlelib.idle_test.mock_tk Text N/A N/A cls text N/A Text N/A classmethod runcase N/A N/A self inserttext stopline expected N/A N/A N/A text N/A self text N/A N/A N/A text insert 1.0 inserttext N/A line N/A range 1 stopline N/A N/A linelength N/A int N/A N/A N/A N/A N/A text index N/A %d.end line split . N/A 1 N/A col N/A 0 N/A linelength 2 linelength N/A N/A tempindex N/A %d.%d N/A line col N/A N/A N/A self assertEqual N/A N/A fp find_paragraph text tempindex expected N/A N/A N/A text delete 1.0 end N/A test_find_comment N/A N/A self N/A N/A N/A comment # Comment block with no blank lines before
# Comment line

 N/A N/A N/A self runcase comment 3 N/A 1.0 3.0 # N/A comment N/A 0 58 N/A comment 
# Comment block with whitespace line before and after
# Comment line

 N/A N/A N/A self runcase comment 4 N/A 2.0 4.0 # N/A comment N/A 1 70 N/A comment 
    # Indented comment block with whitespace before and after
    # Comment line

 N/A N/A N/A self runcase comment 4 N/A 2.0 4.0     # N/A comment N/A 1 82 N/A comment 
# Single line comment

 N/A N/A N/A self runcase comment 3 N/A 2.0 3.0 # N/A comment N/A 1 23 N/A comment 
    # Single line comment with leading whitespace

 N/A N/A N/A self runcase comment 3 N/A 2.0 3.0     # N/A comment N/A 1 51 N/A comment 
# Comment immediately followed by code
x = 42

 N/A N/A N/A self runcase comment 3 N/A 2.0 3.0 # N/A comment N/A 1 40 N/A comment 
    # Indented comment immediately followed by code
x = 42

 N/A N/A N/A self runcase comment 3 N/A 2.0 3.0     # N/A comment N/A 1 53 N/A comment 
# Comment immediately followed by indented code
    x = 42

 N/A N/A N/A self runcase comment 3 N/A 2.0 3.0 # N/A comment N/A 1 49 N/A test_find_paragraph N/A N/A self N/A N/A N/A teststring """String with no blank lines before
String line
"""

 N/A N/A N/A self runcase teststring 4 N/A 1.0 4.0 N/A teststring N/A 0 53 N/A teststring 
"""String with whitespace line before and after
String line.
"""

 N/A N/A N/A self runcase teststring 5 N/A 2.0 5.0 N/A teststring N/A 1 66 N/A teststring 
    """Indented string with whitespace before and after
    Comment string.
    """

 N/A N/A N/A self runcase teststring 5 N/A 2.0 5.0 N/A teststring N/A 1 85 N/A teststring 
"""Single line string."""

 N/A N/A N/A self runcase teststring 3 N/A 2.0 3.0 N/A teststring N/A 1 27 N/A teststring 
    """Single line string with leading whitespace."""

 N/A N/A N/A self runcase teststring 3 N/A 2.0 3.0 N/A teststring N/A 1 55 N/A N/A ReformatFunctionTest N/A N/A unittest TestCase N/A N/A Test the reformat_paragraph function without the editor window. test_reformat_paragrah N/A N/A self N/A N/A N/A Equal N/A self assertEqual N/A reform N/A fp reformat_paragraph N/A hw O hello world N/A N/A Equal N/A reform 1 N/A N/A Equal N/A reform Hello    world 20 Hello  world N/A N/A Equal N/A reform hw 1 O
hello
world N/A N/A Equal N/A reform hw 6 O
hello
world N/A N/A Equal N/A reform hw 7 O hello
world N/A N/A Equal N/A reform hw 12 O hello
world N/A N/A Equal N/A reform hw 13 O hello world N/A hw 
O hello world N/A N/A Equal N/A reform hw 1 
O
hello
world N/A N/A Equal N/A reform hw 6 
O
hello
world N/A N/A Equal N/A reform hw 7 
O hello
world N/A N/A Equal N/A reform hw 12 
O hello
world N/A N/A Equal N/A reform hw 13 
O hello world N/A N/A ReformatCommentTest N/A N/A unittest TestCase N/A N/A Test the reformat_comment function without the editor window. test_reformat_comment N/A N/A self N/A N/A N/A Equal N/A self assertEqual N/A test_string     """this is a test of a reformat for a triple quoted string will it reformat to less than 70 characters for me?""" N/A result N/A N/A fp reformat_comment test_string 70 N/A expected     """this is a test of a reformat for a triple quoted string will it
    reformat to less than 70 characters for me?""" N/A N/A Equal result expected N/A test_comment # this is a test of a reformat for a triple quoted string will it reformat to less than 70 characters for me? N/A result N/A N/A fp reformat_comment test_comment 70 # N/A expected # this is a test of a reformat for a triple quoted string will it
# reformat to less than 70 characters for me? N/A N/A Equal result expected N/A N/A FormatClassTest N/A N/A unittest TestCase N/A test_init_close N/A N/A self N/A N/A N/A instance N/A N/A fp FormatParagraph editor N/A N/A N/A self assertEqual N/A instance editwin editor N/A N/A N/A instance close N/A N/A N/A self assertEqual N/A instance editwin None N/A N/A TextWrapper N/A N/A __init__ N/A N/A self master N/A N/A N/A N/A self text N/A Text master master N/A __getattr__ N/A N/A self name N/A N/A N/A N/A getattr N/A self text name N/A undo_block_start N/A N/A self N/A N/A N/A N/A undo_block_stop N/A N/A self N/A N/A N/A N/A N/A Editor N/A N/A __init__ N/A N/A self root N/A N/A N/A N/A self text N/A TextWrapper root N/A N/A get_selection_indices N/A N/A EditorWindow get_selection_indices im_func N/A FormatEventTest N/A N/A unittest TestCase N/A N/A Test the formatting of text inside a Text widget.

    This is done with FormatParagraph.format.paragraph_event,
    which calls functions in the module as appropriate.
     N/A test_string     '''this is a test of a reformat for a triple quoted string will it reformat to less than 70 characters for me?'''
 N/A multiline_test_string     '''The first line is under the max width.
    The second line's length is way over the max width. It goes on and on until it is over 100 characters long.
    Same thing with the third line. It is also way over the max width, but FormatParagraph will fix it.
    '''
 N/A multiline_test_comment # The first line is under the max width.
# The second line's length is way over the max width. It goes on and on until it is over 100 characters long.
# Same thing with the third line. It is also way over the max width, but FormatParagraph will fix it.
# The fourth line is short like the first line. setUpClass N/A N/A cls N/A N/A N/A N/A requires gui N/A N/A cls root N/A Tk N/A editor N/A Editor root N/A cls root N/A N/A cls text N/A N/A editor text text N/A N/A cls formatter N/A N/A N/A fp FormatParagraph editor format_paragraph_event N/A classmethod tearDownClass N/A N/A cls N/A N/A N/A N/A N/A N/A cls root destroy N/A N/A cls root N/A N/A cls text N/A N/A cls formatter N/A classmethod test_short_line N/A N/A self N/A N/A N/A N/A N/A N/A self text insert 1.0 Short line
 N/A N/A N/A self formatter Dummy N/A N/A N/A self assertEqual N/A N/A N/A self text get 1.0 insert Short line
 N/A N/A N/A N/A self text delete 1.0 end N/A test_long_line N/A N/A self N/A N/A N/A text N/A self text N/A N/A N/A text insert 1.0 N/A self test_string N/A N/A N/A text mark_set insert 1.0 N/A N/A N/A self formatter ParameterDoesNothing limit 70 N/A result N/A N/A text get 1.0 insert N/A expected     '''this is a test of a reformat for a triple quoted string will it
    reformat to less than 70 characters for me?'''
 N/A N/A N/A self assertEqual result expected N/A N/A N/A text delete 1.0 end N/A N/A N/A text insert 1.0 N/A self test_string N/A N/A N/A text tag_add sel 1.11 1.end N/A N/A N/A self formatter ParameterDoesNothing limit 70 N/A result N/A N/A text get 1.0 insert N/A expected     '''this is a test of a reformat for a triple quoted string will it reformat
 to less than 70 characters for me?''' N/A N/A N/A self assertEqual result expected N/A N/A N/A text delete 1.0 end N/A test_multiple_lines N/A N/A self N/A N/A N/A text N/A self text N/A N/A N/A text insert 1.0 N/A self multiline_test_string N/A N/A N/A text tag_add sel 2.0 4.0 N/A N/A N/A self formatter ParameterDoesNothing limit 70 N/A result N/A N/A text get 2.0 insert N/A expected     The second line's length is way over the max width. It goes on and
    on until it is over 100 characters long. Same thing with the third
    line. It is also way over the max width, but FormatParagraph will
    fix it.
 N/A N/A N/A self assertEqual result expected N/A N/A N/A text delete 1.0 end N/A test_comment_block N/A N/A self N/A N/A N/A text N/A self text N/A N/A N/A text insert 1.0 N/A self multiline_test_comment N/A N/A N/A self formatter ParameterDoesNothing limit 70 N/A result N/A N/A text get 1.0 insert N/A expected # The first line is under the max width. The second line's length is
# way over the max width. It goes on and on until it is over 100
# characters long. Same thing with the third line. It is also way over
# the max width, but FormatParagraph will fix it. The fourth line is
# short like the first line.
 N/A N/A N/A self assertEqual result expected N/A N/A N/A text delete 1.0 end N/A N/A N/A text insert 1.0 N/A self multiline_test_comment N/A N/A N/A text tag_add sel 2.0 3.0 N/A N/A N/A self formatter ParameterDoesNothing limit 70 N/A result N/A N/A text get 1.0 insert N/A expected # The first line is under the max width.
# The second line's length is way over the max width. It goes on and
# on until it is over 100 characters long.
 N/A N/A N/A self assertEqual result expected N/A N/A N/A text delete 1.0 end N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main verbosity 2 exit 2