From a51f169ae9dff24c7df817547168f008644dd440 Mon Sep 17 00:00:00 2001
From: Per Cederqvist <ceder@lysator.liu.se>
Date: Sun, 26 Oct 2003 22:57:53 +0000
Subject: [PATCH] Copyright header added.

---
 demo/df.py                     | 17 +++++++++++++++++
 demo/dualftp.py                | 17 +++++++++++++++++
 demo/ftp.py                    | 17 ++++++++++++++++-
 demo/ftp_interact.py           | 17 +++++++++++++++++
 demo/ftptrad.py                | 17 +++++++++++++++++
 demo/komtime.py                | 17 +++++++++++++++++
 demo/microcom.py               | 17 +++++++++++++++++
 demo/read-serial.py            | 17 +++++++++++++++++
 demo/stderr.py                 | 17 +++++++++++++++++
 demo/stdout.py                 | 17 +++++++++++++++++
 demo/telnet.py                 | 23 ++++++++++++++++++++---
 pcl_expect/__init__.py         | 17 +++++++++++++++++
 pcl_expect/popen.py            | 17 +++++++++++++++++
 pcl_expect/pyserial.py         | 17 +++++++++++++++++
 pcl_expect/remote_exception.py | 17 +++++++++++++++++
 pcl_expect/spawn.py            | 17 +++++++++++++++++
 pcl_expect/tcp.py              | 17 +++++++++++++++++
 pcl_expect/telnet.py           | 17 +++++++++++++++++
 pcl_expect/user.py             | 17 +++++++++++++++++
 19 files changed, 325 insertions(+), 4 deletions(-)

diff --git a/demo/df.py b/demo/df.py
index f803554..f95e1c2 100644
--- a/demo/df.py
+++ b/demo/df.py
@@ -1,3 +1,20 @@
+# pcl-expect: expect for Python.  Simple df parsing demo.
+# Copyright (C) 2003  Per Cederqvist <ceder@lysator.liu.se>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
 from pcl_expect import Controller
 from pcl_expect.popen import Popen
 
diff --git a/demo/dualftp.py b/demo/dualftp.py
index 059684f..be1cf0c 100644
--- a/demo/dualftp.py
+++ b/demo/dualftp.py
@@ -1,3 +1,20 @@
+# pcl-expect: expect for Python.  Demo that benchmarks two ftp servers.
+# Copyright (C) 2003  Per Cederqvist <ceder@lysator.liu.se>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
 # A more complex ftp example.  This one connects to two ftp servers,
 # does a "cd pub" on both, and prints a directory listing.  This is
 # done in parallell, so the output from the fastest server will be
diff --git a/demo/ftp.py b/demo/ftp.py
index 6fddca2..e26286b 100644
--- a/demo/ftp.py
+++ b/demo/ftp.py
@@ -1,4 +1,19 @@
-# The mandatory ftp example...
+# pcl-expect: expect for Python.  The mandatory ftp example...
+# Copyright (C) 2003  Per Cederqvist <ceder@lysator.liu.se>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
 import pcl_expect.spawn
 import pcl_expect
diff --git a/demo/ftp_interact.py b/demo/ftp_interact.py
index bee8780..8869b14 100644
--- a/demo/ftp_interact.py
+++ b/demo/ftp_interact.py
@@ -1,3 +1,20 @@
+# pcl-expect: expect for Python.  Demo interactive ftp program.
+# Copyright (C) 2003  Per Cederqvist <ceder@lysator.liu.se>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
 # An interactive ftp example.
 # This will connect to ftp.funet.fi.  The command "home" will cd
 # to one of the most useful areas: /pub/gnu/ftp.gnu.org/pub/gnu
diff --git a/demo/ftptrad.py b/demo/ftptrad.py
index a718b4b..a8fed7d 100644
--- a/demo/ftptrad.py
+++ b/demo/ftptrad.py
@@ -1,3 +1,20 @@
+# pcl-expect: expect for Python.  Demo ftp program of the expect function.
+# Copyright (C) 2003  Per Cederqvist <ceder@lysator.liu.se>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
 # The mandatory ftp example, in traditional style.
 
 import pcl_expect
diff --git a/demo/komtime.py b/demo/komtime.py
index 72df613..f4949e5 100644
--- a/demo/komtime.py
+++ b/demo/komtime.py
@@ -1,3 +1,20 @@
+# pcl-expect: expect for Python.  LysKOM Protocol A get-time demo.
+# Copyright (C) 2003  Per Cederqvist <ceder@lysator.liu.se>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
 # Connect to the LysKOM server at kom.lysator.liu.se, query it for the
 # current time, and print the result in ISO 8601 format.
 
diff --git a/demo/microcom.py b/demo/microcom.py
index 11aea6d..623f5e8 100644
--- a/demo/microcom.py
+++ b/demo/microcom.py
@@ -1,3 +1,20 @@
+# pcl-expect: expect for Python.  Minimal terminal emulator.
+# Copyright (C) 2003  Per Cederqvist <ceder@lysator.liu.se>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
 # This example opens the first serial port in 9600 bits per second and
 # connects the keyboard to it.  It terminates when the user presses Ctrl-].
 
diff --git a/demo/read-serial.py b/demo/read-serial.py
index 96110d2..bc24d48 100644
--- a/demo/read-serial.py
+++ b/demo/read-serial.py
@@ -1,3 +1,20 @@
+# pcl-expect: expect for Python.  Demo serial code.
+# Copyright (C) 2003  Per Cederqvist <ceder@lysator.liu.se>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
 # This example opens the first serial port in 4800 bits per second and
 # reads input from it.  It terminates after 10 consecutive seconds
 # with no input.
diff --git a/demo/stderr.py b/demo/stderr.py
index 7241e11..07c6e60 100644
--- a/demo/stderr.py
+++ b/demo/stderr.py
@@ -1,3 +1,20 @@
+# pcl-expect: expect for Python.  spawn2() demo program.
+# Copyright (C) 2003  Per Cederqvist <ceder@lysator.liu.se>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
 import os
 
 import pcl_expect.spawn
diff --git a/demo/stdout.py b/demo/stdout.py
index 7d48d61..3a31f48 100644
--- a/demo/stdout.py
+++ b/demo/stdout.py
@@ -1,3 +1,20 @@
+# pcl-expect: expect for Python.  Spawn demo program.
+# Copyright (C) 2003  Per Cederqvist <ceder@lysator.liu.se>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
 import os
 
 import pcl_expect.spawn
diff --git a/demo/telnet.py b/demo/telnet.py
index d58d409..f83c7bb 100644
--- a/demo/telnet.py
+++ b/demo/telnet.py
@@ -1,6 +1,23 @@
-# Simple telnet demo.  Expects a host and user name on the command line,
-# reads a password from stdin, logs in on that host, runs "uname -a",
-# and prints the result.
+# pcl-expect: expect for Python.  Simple telnet demo.
+# Copyright (C) 2003  Per Cederqvist <ceder@lysator.liu.se>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
+# Expects a host and user name on the command line, reads a password
+# from stdin, logs in on that host, runs "uname -a", and prints the
+# result.
 
 import os
 import sys
diff --git a/pcl_expect/__init__.py b/pcl_expect/__init__.py
index 4e42165..30459a4 100644
--- a/pcl_expect/__init__.py
+++ b/pcl_expect/__init__.py
@@ -1,3 +1,20 @@
+# pcl-expect: expect for Python.  Main module and base clases.
+# Copyright (C) 2003  Per Cederqvist <ceder@lysator.liu.se>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
 """An extensible expect module with more expect-like feeling.
 
 FIXME: more doc needed.
diff --git a/pcl_expect/popen.py b/pcl_expect/popen.py
index 1e9a1c5..72f9ebf 100644
--- a/pcl_expect/popen.py
+++ b/pcl_expect/popen.py
@@ -1,3 +1,20 @@
+# pcl-expect: expect for Python.  Interface to os.popen.
+# Copyright (C) 2003  Per Cederqvist <ceder@lysator.liu.se>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
 """Start a process using os.popen, and read input from it.
 """
 
diff --git a/pcl_expect/pyserial.py b/pcl_expect/pyserial.py
index fea60a8..26be380 100644
--- a/pcl_expect/pyserial.py
+++ b/pcl_expect/pyserial.py
@@ -1,3 +1,20 @@
+# pcl-expect: expect for Python.  Serial port interface.
+# Copyright (C) 2003  Per Cederqvist <ceder@lysator.liu.se>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
 """Read input from a serial port using the pySerial module.
 
    pySerial is available from http://pyserial.sourceforge.net/
diff --git a/pcl_expect/remote_exception.py b/pcl_expect/remote_exception.py
index 1282fa5..44a82d9 100644
--- a/pcl_expect/remote_exception.py
+++ b/pcl_expect/remote_exception.py
@@ -1,3 +1,20 @@
+# pcl-expect: expect for Python.  Remote exception handling.
+# Copyright (C) 2003  Per Cederqvist <ceder@lysator.liu.se>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
 """Exception handling for remote processes.
 
    If you have a controller process that spawns a child process, and
diff --git a/pcl_expect/spawn.py b/pcl_expect/spawn.py
index 0694402..6fb2701 100644
--- a/pcl_expect/spawn.py
+++ b/pcl_expect/spawn.py
@@ -1,3 +1,20 @@
+# pcl-expect: expect for Python.  Pty interface.
+# Copyright (C) 2003  Per Cederqvist <ceder@lysator.liu.se>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
 """Spawn subprocesses via a pty.
 
    The normal way to use this is by creating an instance of the Spawn
diff --git a/pcl_expect/tcp.py b/pcl_expect/tcp.py
index 23d824c..b128f24 100644
--- a/pcl_expect/tcp.py
+++ b/pcl_expect/tcp.py
@@ -1,3 +1,20 @@
+# pcl-expect: expect for Python.  TCP interface.
+# Copyright (C) 2003  Per Cederqvist <ceder@lysator.liu.se>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
 """Connect to a TCP socket.
 
    This module provides the TcpClient class.  It inherits Expectable
diff --git a/pcl_expect/telnet.py b/pcl_expect/telnet.py
index 0c128d4..b75747d 100644
--- a/pcl_expect/telnet.py
+++ b/pcl_expect/telnet.py
@@ -1,3 +1,20 @@
+# pcl-expect: expect for Python.  Telnet interface.
+# Copyright (C) 2003  Per Cederqvist <ceder@lysator.liu.se>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
 """Connect to a telnet server via the telnetlib.Telnet class.
 """
 
diff --git a/pcl_expect/user.py b/pcl_expect/user.py
index 10db92c..81fcb5f 100644
--- a/pcl_expect/user.py
+++ b/pcl_expect/user.py
@@ -1,3 +1,20 @@
+# pcl-expect: expect for Python.  User interface.
+# Copyright (C) 2003  Per Cederqvist <ceder@lysator.liu.se>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
 import atexit
 import sys
 import tty
-- 
GitLab