summaryrefslogtreecommitdiff
path: root/pexpect/FSM.py
diff options
context:
space:
mode:
Diffstat (limited to 'pexpect/FSM.py')
-rw-r--r--pexpect/FSM.py22
1 files changed, 20 insertions, 2 deletions
diff --git a/pexpect/FSM.py b/pexpect/FSM.py
index 97954ee..529f8d3 100644
--- a/pexpect/FSM.py
+++ b/pexpect/FSM.py
@@ -64,6 +64,24 @@ current_state then the FSM will raise an exception. This may be desirable, but
you can always prevent this just by defining a default transition.
Noah Spurrier 20020822
+
+PEXPECT LICENSE
+
+ This license is approved by the OSI and FSF as GPL-compatible.
+ http://opensource.org/licenses/isc-license.txt
+
+ Copyright (c) 2012, Noah Spurrier <noah@noah.org>
+ PERMISSION TO USE, COPY, MODIFY, AND/OR DISTRIBUTE THIS SOFTWARE FOR ANY
+ PURPOSE WITH OR WITHOUT FEE IS HEREBY GRANTED, PROVIDED THAT THE ABOVE
+ COPYRIGHT NOTICE AND THIS PERMISSION NOTICE APPEAR IN ALL COPIES.
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
"""
class ExceptionFSM(Exception):
@@ -237,7 +255,7 @@ class FSM:
# process an RPN expression. Run this module from the command line. You will
# get a prompt > for input. Enter an RPN Expression. Numbers may be integers.
# Operators are * / + - Use the = sign to evaluate and print the expression.
-# For example:
+# For example:
#
# 167 3 2 2 * * * 1 - =
#
@@ -249,7 +267,7 @@ class FSM:
import sys, os, traceback, optparse, time, string
#
-# These define the actions.
+# These define the actions.
# Note that "memory" is a list being used as a stack.
#