mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-06 09:20:57 +01:00
fix missing self in SubprocSpec repr
This commit is contained in:
parent
9d0fd25b40
commit
f6b14ae090
1 changed files with 2 additions and 2 deletions
|
@ -426,13 +426,13 @@ class SubprocSpec:
|
|||
self.captured_stderr = None
|
||||
|
||||
def __str__(self):
|
||||
s = self.cls.__name__ + '(' + str(cmd) + ', '
|
||||
s = self.cls.__name__ + '(' + str(self.cmd) + ', '
|
||||
kws = [n + '=' + str(getattr(self, n)) for n in self.kwnames]
|
||||
s += ', '.join(kws) + ')'
|
||||
return s
|
||||
|
||||
def __repr__(self):
|
||||
s = self.__class__.__name__ + '(' + repr(cmd) + ', '
|
||||
s = self.__class__.__name__ + '(' + repr(self.cmd) + ', '
|
||||
s += self.cls.__name__ + ', '
|
||||
kws = [n + '=' + repr(getattr(self, n)) for n in self.kwnames]
|
||||
s += ', '.join(kws) + ')'
|
||||
|
|
Loading…
Add table
Reference in a new issue