From d37d349a1a0319f9735af9ffdf6bd976f6f41ee9 Mon Sep 17 00:00:00 2001 From: Federico Ceratto Date: Tue, 23 Feb 2016 22:49:17 +0000 Subject: Minor cleanup --- example/example.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'example/example.py') diff --git a/example/example.py b/example/example.py index eabdd00f..9d17bbb7 100755 --- a/example/example.py +++ b/example/example.py @@ -1,7 +1,9 @@ -'''A sample application for cmd2.''' + +"""A sample application for cmd2. +""" from cmd2 import Cmd, make_option, options -import unittest, optparse, sys + class CmdLineApp(Cmd): multilineCommands = ['orate'] @@ -26,7 +28,7 @@ class CmdLineApp(Cmd): self.stdout.write(arg) self.stdout.write('\n') # self.stdout.write is better than "print", because Cmd can be - # initialized with a non-standard output destination + # 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 -- cgit v1.2.1