Ticket #779 (new defect)

Opened 2 years ago

Python reindent fails with specific example

Reported by: https://me.yahoo.com/postrockrob#52e3a Owned by: rob
Priority: major Milestone: 0.15
Component: action Keywords:
Cc:

Description

The following code fails to reindent properly on the line after the if True:

# test testing
"""
class with dependencies
"""

class test:
    def stuff(self):
        if True:

Doing any number of things will cause it to work properly:

  • remove the #Author line
  • remove the comment or one of the words in the comment line
  • remove the line end before comment (i.e. put the opening """ on the same line as the comment
  • change the word "testing" to "test"

Attachments

Add/Change #779 (Python reindent fails with specific example)

Author


E-mail address and user name can be saved in the Preferences.


Action
as new
 
Note: See TracTickets for help on using tickets.