b4c3
b4c3

Reputation: 43

Why does this line of python break emacs python-mode indentation?

For some reason, in the below code:

for statement in statements:
    speakerAndSpeech = findSpeaker(statement)
    speaker = speakerAndSpeech[0]
    speech = speakerAndSepech[1]
    ## Everything above the below line indents correctly, like this
    self.statements.append(createStatement(statements.index(statement), speech, speaker, self.meeting["id"])
    ## Everything below the above line indents out here

if __name__ == '__main__':

I'm using python-mode.el

Upvotes: 1

Views: 102

Answers (1)

Andreas Röhler
Andreas Röhler

Reputation: 4804

As already commented: caused by a missing parenthesis at last code-line in block:

...self.meeting["id"])

Maybe you want:

   ...self.meeting["id"]))

Upvotes: 1

Related Questions