summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2017-02-05 17:09:41 -0500
committerTodd Leonhardt <todd.leonhardt@gmail.com>2017-02-05 17:09:41 -0500
commit240ad16baef9bfa71ad004035f4054eff98db24e (patch)
tree44353643edac907a5a17adf20cd2451679803092 /cmd2.py
parent0b6cf473f2613aad057e0c451b954479c0f9bc78 (diff)
downloadcmd2-git-240ad16baef9bfa71ad004035f4054eff98db24e.tar.gz
Removed unused ljust() function wrapper for calling ljust on lists.
Diffstat (limited to 'cmd2.py')
-rwxr-xr-xcmd2.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/cmd2.py b/cmd2.py
index 265415d5..d0fbeac2 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -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