prompt cleanup

This commit is contained in:
Gordon Shumway 2019-12-10 09:25:50 -05:00 committed by GitHub
parent 853a6709b6
commit bdd167ddfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,7 +62,7 @@ class TextAdventures(callbacks.Plugin):
def output(self, output):
response = []
prompts = ["\n> >", "\n>\r\n>", "\n>", "\n\)", pexpect.TIMEOUT]
prompts = ["\n> >", "\n>", "\n\)", pexpect.TIMEOUT]
output.expect(prompts, timeout=1)
response = output.before
response = response.decode().splitlines()