mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-05 17:00:58 +01:00
revert formatting changes
This commit is contained in:
parent
61b944c353
commit
4f2b92ad65
1 changed files with 1 additions and 3 deletions
|
@ -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
|
subprocess $[] starting at a minimum column. If there are no tokens
|
||||||
(ie in a comment line) this returns None.
|
(ie in a comment line) this returns None.
|
||||||
"""
|
"""
|
||||||
#if not line.endswith('\n'):
|
|
||||||
# line = line + '\n'
|
|
||||||
if lexer is None:
|
if lexer is None:
|
||||||
lexer = builtins.__xonsh_execer__.parser.lexer
|
lexer = builtins.__xonsh_execer__.parser.lexer
|
||||||
if maxcol is None:
|
if maxcol is None:
|
||||||
|
@ -54,7 +52,7 @@ def subproc_toks(line, mincol=-1, maxcol=None, lexer=None, returnline=False):
|
||||||
if pos < mincol:
|
if pos < mincol:
|
||||||
continue
|
continue
|
||||||
toks.append(tok)
|
toks.append(tok)
|
||||||
if tok.type =='NEWLINE':
|
if tok.type == 'NEWLINE':
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
if len(toks) == 0:
|
if len(toks) == 0:
|
||||||
|
|
Loading…
Add table
Reference in a new issue