From a877819f54a95ba6add0c9cf10d94dd127b0b627 Mon Sep 17 00:00:00 2001 From: Todd Leonhardt Date: Fri, 9 Dec 2016 23:00:45 -0500 Subject: Whitespace change to be mostly PEP8 compliant --- example/example.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'example/example.py') 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() -- cgit v1.2.1