From 4f2b92ad653f79b3fa912a2594291ed428453834 Mon Sep 17 00:00:00 2001 From: adam j hartz Date: Tue, 24 Mar 2015 22:46:11 -0400 Subject: [PATCH] revert formatting changes --- xonsh/tools.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/xonsh/tools.py b/xonsh/tools.py index 1a94d2f25..4473a0e62 100644 --- a/xonsh/tools.py +++ b/xonsh/tools.py @@ -35,8 +35,6 @@ def subproc_toks(line, mincol=-1, maxcol=None, lexer=None, returnline=False): subprocess $[] starting at a minimum column. If there are no tokens (ie in a comment line) this returns None. """ - #if not line.endswith('\n'): - # line = line + '\n' if lexer is None: lexer = builtins.__xonsh_execer__.parser.lexer if maxcol is None: @@ -54,7 +52,7 @@ def subproc_toks(line, mincol=-1, maxcol=None, lexer=None, returnline=False): if pos < mincol: continue toks.append(tok) - if tok.type =='NEWLINE': + if tok.type == 'NEWLINE': break else: if len(toks) == 0: