clean up formatting

This commit is contained in:
Gil Forsyth 2016-01-05 19:02:04 -05:00
parent dde63dde22
commit 3b72a03a72

View file

@ -30,7 +30,6 @@ def load_xonsh_bindings(key_bindings_manager):
DEDENT_TOKENS = frozenset(['raise', 'return', 'pass', 'break', 'continue'])
@handle(Keys.Tab, filter=TabShouldInsertIndentFilter())
def _(event):
"""
@ -80,8 +79,7 @@ def load_xonsh_bindings(key_bindings_manager):
# if there are stray parens hanging aroung inside quotes
elif (re.search(parens, b.document.text) is not None and
((b.document.text.count('(') -
re.search(parens, b.document.text).group().count('('))
>
re.search(parens, b.document.text).group().count('(')) >
(b.document.text.count(')') -
re.search(parens, b.document.text).group().count(')')))):
b.newline()