summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
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