0

What is the issue? I tried looking for tabs, but I see none.


File "/home/pi/jasper/client/modules/Wikipedia.py", line 24
  mic.say("Okay, what would you like me to look up?")
                                                    ^
IndentationError: unindent does not match any outer indentation level

            """
            Responds to user-input, typically speech text, by relaying the
            entry from Wikipedia.

            Arguments:
            text -- user-input, typically transcribed speech
            mic -- used to interact with the user (for both input and output)
            profile -- contains information related to the user (e.g., phone
               number)
            """

    mic.say("Okay, what would you like me to look up?")

    def sayDefinition(text):
        mic.say(mic.say(wikipedia.summary(text, sentences=2)))

    sayDefinition(mic.activeListen())
1
  • 4
    indentation of the first docstring should be the same as the next lines. Commented Jan 6, 2016 at 1:36

1 Answer 1

1

Indentation of the doc-string should be the same as the next lines:

    """
    Responds to user-input, typically speech text, by relaying the
    entry from Wikipedia.

    ...
    """
    mic.say("Okay, what would you like me to look up?")

More about indenting code.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.