From 2bac6bcda3b7c5b2ba7093955acf232dd89f9f0f Mon Sep 17 00:00:00 2001 From: Kevin Van Brunt Date: Sat, 11 Apr 2020 13:04:52 -0400 Subject: Made some optional arguments with defaults keyword-only. Added unit test for echo argument to pyscript app() command. Removed _relative_load from hidden commands since that command was renamed. --- cmd2/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd2/utils.py') diff --git a/cmd2/utils.py b/cmd2/utils.py index 8b5e9cc8..03ede2a3 100644 --- a/cmd2/utils.py +++ b/cmd2/utils.py @@ -434,7 +434,7 @@ class StdSim: Class to simulate behavior of sys.stdout or sys.stderr. Stores contents in internal buffer and optionally echos to the inner stream it is simulating. """ - def __init__(self, inner_stream, echo: bool = False, + def __init__(self, inner_stream, *, echo: bool = False, encoding: str = 'utf-8', errors: str = 'replace') -> None: """ StdSim Initializer -- cgit v1.2.1