mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-05 17:00:58 +01:00
tools.py: don't need trailing whitespace on subproc commands?
This commit is contained in:
parent
3e3d7c3c04
commit
5cad88e0f0
1 changed files with 2 additions and 2 deletions
|
@ -35,8 +35,8 @@ 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'):
|
#if not line.endswith('\n'):
|
||||||
line = line + '\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:
|
||||||
|
|
Loading…
Add table
Reference in a new issue