Skip to content

Commit d51935d

Browse files
authored
Update callias.xsh
1 parent 6c90d16 commit d51935d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

callias.xsh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ def _print_to_tty(message):
1717

1818
def _printer(a,i,o,e):
1919
"""Print into all kinds of streams."""
20-
func_name = inspect.stack()[0][3]
21-
alias_name = XSH.env.get('__ALIAS_NAME', "NONAME")
20+
alias_name = XSH.env.get('__ALIAS_NAME', inspect.stack()[0][3])
2221
name = alias_name
2322
print(f"{name}: alias.stdout", file=o)
2423
print(f"{name}: alias.stderr", file=e)

0 commit comments

Comments
 (0)