summaryrefslogtreecommitdiff
path: root/example/example.py
diff options
context:
space:
mode:
authorFederico Ceratto <federico.ceratto@gmail.com>2016-02-23 22:49:17 +0000
committerFederico Ceratto <federico.ceratto@gmail.com>2016-02-23 22:49:17 +0000
commitd37d349a1a0319f9735af9ffdf6bd976f6f41ee9 (patch)
tree94b2c83557714345b06dd850587048b116b0f916 /example/example.py
parent78b6dd61d4b863eaf4b2bf331119dfec9b6bfe76 (diff)
downloadcmd2-git-d37d349a1a0319f9735af9ffdf6bd976f6f41ee9.tar.gz
Minor cleanup
Diffstat (limited to 'example/example.py')
-rwxr-xr-xexample/example.py8
1 files changed, 5 insertions, 3 deletions
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