Set a default value for output in CalledProcessError.__init__ (#329)

This commit is contained in:
Eklavya Sharma authored and Guido van Rossum committed 2016-07-02 07:40:09 -07:00
1 parent c5dcfe96d2
commit 15714bb0e8
1 file changed
+1 -1
+1 -1
View File
@@ -29,7 +29,7 @@ class CalledProcessError(Exception):
cmd = ... # type: str
output = b'' # May be None
def __init__(self, returncode: int, cmd: str, output: Optional[str],
def __init__(self, returncode: int, cmd: str, output: Optional[str] = ...,
stderr: Optional[str] = ...) -> None: ...
class Popen: