diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-02-05 17:09:41 -0500 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-02-05 17:09:41 -0500 |
commit | 240ad16baef9bfa71ad004035f4054eff98db24e (patch) | |
tree | 44353643edac907a5a17adf20cd2451679803092 | |
parent | 0b6cf473f2613aad057e0c451b954479c0f9bc78 (diff) | |
download | cmd2-git-240ad16baef9bfa71ad004035f4054eff98db24e.tar.gz |
Removed unused ljust() function wrapper for calling ljust on lists.
-rwxr-xr-x | cmd2.py | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -435,16 +435,6 @@ class EmptyStatement(Exception): pass -def ljust(x, width, fillchar=' '): - 'analogous to str.ljust, but works for lists' - if hasattr(x, 'ljust'): - return x.ljust(width, fillchar) - else: - if len(x) < width: - x = (x + [fillchar] * width)[:width] - return x - - class Cmd(cmd.Cmd): echo = False case_insensitive = True # Commands recognized regardless of case |