mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 16:34:47 +01:00
Merge pull request #3114 from Ad115/master
Fixed problem with aliases composed of functions wrapped with functools.partial
This commit is contained in:
commit
0c59924524
2 changed files with 24 additions and 1 deletions
23
news/aliases_error.rst
Normal file
23
news/aliases_error.rst
Normal file
|
@ -0,0 +1,23 @@
|
|||
**Added:**
|
||||
|
||||
* <news item>
|
||||
|
||||
**Changed:**
|
||||
|
||||
* <news item>
|
||||
|
||||
**Deprecated:**
|
||||
|
||||
* <news item>
|
||||
|
||||
**Removed:**
|
||||
|
||||
* <news item>
|
||||
|
||||
**Fixed:**
|
||||
|
||||
* Fixed error with aliases composed of functions wrapped in functools.partial.
|
||||
|
||||
**Security:**
|
||||
|
||||
* <news item>
|
|
@ -609,7 +609,7 @@ class SubprocSpec:
|
|||
|
||||
def _cmd_event_name(self):
|
||||
if callable(self.alias):
|
||||
return self.alias.__name__
|
||||
return getattr(self.alias, "__name__", repr(self.alias))
|
||||
elif self.binary_loc is None:
|
||||
return "<not-found>"
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue