diff options
| author | Eric Lin <anselor@gmail.com> | 2021-04-05 14:35:02 -0400 |
|---|---|---|
| committer | anselor <anselor@gmail.com> | 2021-04-06 14:54:28 -0400 |
| commit | e8b6456fc73a6f7bdb176251a1539a1886659f32 (patch) | |
| tree | 440c6c6c1865a5e5bd61a187ff4768cbcc7156a7 /cmd2 | |
| parent | 50d302913328931ecc9f61293892ac8f9aa61890 (diff) | |
| download | cmd2-git-e8b6456fc73a6f7bdb176251a1539a1886659f32.tar.gz | |
Add mypy validation action
Diffstat (limited to 'cmd2')
| -rw-r--r-- | cmd2/cmd2.py | 2 | ||||
| -rw-r--r-- | cmd2/table_creator.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index 7e437270..ef288120 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -399,7 +399,7 @@ class Cmd(cmd.Cmd): if os.path.exists(startup_script): script_cmd = "run_script {}".format(utils.quote_string(startup_script)) if silent_startup_script: - script_cmd += "> {}".format(os.devnull) + script_cmd += " > {}".format(os.devnull) self._startup_commands.append(script_cmd) # Transcript files to run instead of interactive command loop diff --git a/cmd2/table_creator.py b/cmd2/table_creator.py index 80874086..ade40ae3 100644 --- a/cmd2/table_creator.py +++ b/cmd2/table_creator.py @@ -138,7 +138,7 @@ class TableCreator: # For headers with the width not yet set, use the width of the # widest line in the header or 1 if the header has no width - if col.width < 0: + if col.width <= 0: col.width = max(1, ansi.widest_line(col.header)) @staticmethod |
