diff options
author | kmvanbrunt <kmvanbrunt@gmail.com> | 2019-03-01 18:20:43 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-01 18:20:43 -0500 |
commit | de701086ff832bad0f0d97ffb10c2159d56ede7d (patch) | |
tree | a9c5dc40d5afc41f7ebec564816f0330e896b74e /cmd2/utils.py | |
parent | d3208c84c72bc1f3280c80b9d9854f33631c6b61 (diff) | |
parent | daf5e2ba47d8b12b9e371d843ac5942cf7eb6c9d (diff) | |
download | cmd2-git-de701086ff832bad0f0d97ffb10c2159d56ede7d.tar.gz |
Merge pull request #630 from python-cmd2/pyscript_overhaul
Pyscript overhaul
Diffstat (limited to 'cmd2/utils.py')
-rw-r--r-- | cmd2/utils.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd2/utils.py b/cmd2/utils.py index ae172fa4..098ed41d 100644 --- a/cmd2/utils.py +++ b/cmd2/utils.py @@ -68,7 +68,7 @@ def strip_quotes(arg: str) -> str: def namedtuple_with_defaults(typename: str, field_names: Union[str, List[str]], - default_values: collections.Iterable=()): + default_values: collections.Iterable = ()): """ Convenience function for defining a namedtuple with default values @@ -268,7 +268,7 @@ class StdSim(object): class ByteBuf(object): """Inner class which stores an actual bytes buffer and does the actual output if echo is enabled.""" def __init__(self, inner_stream, echo: bool = False, - encoding: str='utf-8', errors: str='replace') -> None: + encoding: str = 'utf-8', errors: str = 'replace') -> None: self.byte_buf = b'' self.inner_stream = inner_stream self.echo = echo @@ -284,7 +284,7 @@ class StdSim(object): self.inner_stream.buffer.write(b) def __init__(self, inner_stream, echo: bool = False, - encoding: str='utf-8', errors: str='replace') -> None: + encoding: str = 'utf-8', errors: str = 'replace') -> None: """ Initializer :param inner_stream: the emulated stream |