summaryrefslogtreecommitdiff
path: root/example/example.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2016-12-09 23:00:45 -0500
committerTodd Leonhardt <todd.leonhardt@gmail.com>2016-12-09 23:00:45 -0500
commita877819f54a95ba6add0c9cf10d94dd127b0b627 (patch)
tree72fb676a8268631821148ac2ca77df6c2079b3d8 /example/example.py
parenta0cdb91e54a5ebe790191d180a9091d367175d52 (diff)
downloadcmd2-git-a877819f54a95ba6add0c9cf10d94dd127b0b627.tar.gz
Whitespace change to be mostly PEP8 compliant
Diffstat (limited to 'example/example.py')
-rwxr-xr-xexample/example.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/example/example.py b/example/example.py
index 081bdb6f..863084cd 100755
--- a/example/example.py
+++ b/example/example.py
@@ -15,7 +15,7 @@ class CmdLineApp(Cmd):
@options([make_option('-p', '--piglatin', action="store_true", help="atinLay"),
make_option('-s', '--shout', action="store_true", help="N00B EMULATION MODE"),
make_option('-r', '--repeat', type="int", help="output [n] times")
- ], arg_desc = '(text to say)')
+ ], arg_desc='(text to say)')
def do_speak(self, arg, opts=None):
"""Repeats what you tell me to."""
arg = ''.join(arg)
@@ -30,8 +30,9 @@ class CmdLineApp(Cmd):
# self.stdout.write is better than "print", because Cmd can be
# initialized with a non-standard output destination
- do_say = do_speak # now "say" is a synonym for "speak"
- do_orate = do_speak # another synonym, but this one takes multi-line input
+ do_say = do_speak # now "say" is a synonym for "speak"
+ do_orate = do_speak # another synonym, but this one takes multi-line input
+
c = CmdLineApp()
c.cmdloop()