summaryrefslogtreecommitdiff
path: root/pexpect/FSM.py
diff options
context:
space:
mode:
authornoah <noah@656d521f-e311-0410-88e0-e7920216d269>2012-10-20 02:19:33 +0000
committernoah <noah@656d521f-e311-0410-88e0-e7920216d269>2012-10-20 02:19:33 +0000
commit0b428eb5d5ceefdb178843db3e12072457fb7aec (patch)
treeaabe4b5fc998cabfbb0946b4d356f6265720ccdf /pexpect/FSM.py
parent74ace3303f22848674bd638d061a54c9dcc7d77d (diff)
downloadpexpect-0b428eb5d5ceefdb178843db3e12072457fb7aec.tar.gz
Mostly a massive license update. Added a license per file.HEADmaster
git-svn-id: http://pexpect.svn.sourceforge.net/svnroot/pexpect/trunk@533 656d521f-e311-0410-88e0-e7920216d269
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.
#