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

This commit is contained in:
Eklavya Sharma
2016-07-02 20:10:09 +05:30
committed by Guido van Rossum
parent c5dcfe96d2
commit 15714bb0e8

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: