diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2019-03-02 12:54:30 -0500 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2019-03-02 12:54:30 -0500 |
commit | 46df1c127e11ac59706e6656543d06621fd7bc1e (patch) | |
tree | ba8e057450e426db76b1398bb288ba0c2cc7c23c /cmd2/utils.py | |
parent | fe4b3fd6718963ce9fa2352b013d7f9c912059c3 (diff) | |
parent | de701086ff832bad0f0d97ffb10c2159d56ede7d (diff) | |
download | cmd2-git-46df1c127e11ac59706e6656543d06621fd7bc1e.tar.gz |
Merged from master and resolved conflicts in cmd2.py
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 |