Merge pull request #3114 from Ad115/master

Fixed problem with aliases composed of functions wrapped with functools.partial
This commit is contained in:
Anthony Scopatz 2019-05-08 17:20:00 -04:00 committed by GitHub
commit 0c59924524
Failed to generate hash of commit
2 changed files with 24 additions and 1 deletions

23
news/aliases_error.rst Normal file
View 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>

View file

@ -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: