Avoid an empty line when there are no possibilities to print.

parent ffb9e906
......@@ -219,7 +219,8 @@ class Parser(BisonParser):
print pick_suggestion(self.last_possibilities)
def display_possibilities(self):
print '\n'.join(map(str, self.last_possibilities))
if self.last_possibilities:
print '\n'.join(map(str, self.last_possibilities))
def rewrite(self):
suggestion = pick_suggestion(self.last_possibilities)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment