summaryrefslogtreecommitdiff
path: root/cmd2/utils.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2019-03-01 16:07:11 -0500
committerKevin Van Brunt <kmvanbrunt@gmail.com>2019-03-01 16:07:11 -0500
commitaccd9c71aef22d98707122369fb1ca66c279ecd8 (patch)
treeec92be29c72134710d9ec41a7b4b0bf3a2f9aae4 /cmd2/utils.py
parent1390b7889938588810e8a1d5c660ce354cfb7de0 (diff)
downloadcmd2-git-accd9c71aef22d98707122369fb1ca66c279ecd8.tar.gz
Fixed a lot of warnings
Diffstat (limited to 'cmd2/utils.py')
-rw-r--r--cmd2/utils.py6
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