diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2016-12-09 23:00:45 -0500 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2016-12-09 23:00:45 -0500 |
commit | a877819f54a95ba6add0c9cf10d94dd127b0b627 (patch) | |
tree | 72fb676a8268631821148ac2ca77df6c2079b3d8 /example/example.py | |
parent | a0cdb91e54a5ebe790191d180a9091d367175d52 (diff) | |
download | cmd2-git-a877819f54a95ba6add0c9cf10d94dd127b0b627.tar.gz |
Whitespace change to be mostly PEP8 compliant
Diffstat (limited to 'example/example.py')
-rwxr-xr-x | example/example.py | 7 |
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() |