add license to every source file and replaced codeauthor with Intra2net
authorChristian Herdtweck <christian.herdtweck@intra2net.com>
Thu, 14 Jan 2016 14:32:44 +0000 (15:32 +0100)
committerChristian Herdtweck <christian.herdtweck@intra2net.com>
Thu, 14 Jan 2016 14:32:44 +0000 (15:32 +0100)
21 files changed:
arnied.py
buffers.py
call_helpers.py
check.sh
file_helpers.py
follow.py
follow_unittest.py
iter_helpers.py
log_helpers.py
log_read.py
log_read_unittest.py
template.py
test/buffer_unittest.py
test/call_helper_unittest.py
test/disc_filler_test.py
test/file_helper_unittest.py
test/template.py
test/test_helper_unittest.py
test/type_helper_unittest.py
test_helpers.py
type_helpers.py

index 7bd6d34..38132f0 100644 (file)
--- a/arnied.py
+++ b/arnied.py
@@ -1,6 +1,26 @@
+# The software in this package is distributed under the GNU General
+# Public License version 2 (with a special exception described below).
+#
+# A copy of GNU General Public License (GPL) is included in this distribution,
+# in the file COPYING.GPL.
+#
+# As a special exception, if other files instantiate templates or use macros
+# or inline functions from this file, or you compile this file and link it
+# with other works to produce a work based on this file, this file
+# does not by itself cause the resulting work to be covered
+# by the GNU General Public License.
+#
+# However the source code for this file must still be made available
+# in accordance with section (3) of the GNU General Public License.
+#
+# This exception does not invalidate any other reasons why a work based
+# on this file might be covered by the GNU General Public License.
+
 """ Interface to arnied
 
 only a stub; should at least contain a set_cnf and get_cnf
+
+.. codeauthor:: Intra2net
 """
 
 def set_cnf(var_name, value):
index d801555..8e461ca 100644 (file)
@@ -25,7 +25,7 @@ Featuring::
 * LogarithmicBuffer: saves only last N items, and after that less and less so
 *                    very few old items are kept
 
-.. codeauthor:: Christian Herdtweck, christian.herdtweck@intra2net.com
+.. codeauthor:: Intra2net
 """
 
 class CircularBuffer:
index 6356d4e..1739d5f 100644 (file)
@@ -1,10 +1,28 @@
+# The software in this package is distributed under the GNU General
+# Public License version 2 (with a special exception described below).
+#
+# A copy of GNU General Public License (GPL) is included in this distribution,
+# in the file COPYING.GPL.
+#
+# As a special exception, if other files instantiate templates or use macros
+# or inline functions from this file, or you compile this file and link it
+# with other works to produce a work based on this file, this file
+# does not by itself cause the resulting work to be covered
+# by the GNU General Public License.
+#
+# However the source code for this file must still be made available
+# in accordance with section (3) of the GNU General Public License.
+#
+# This exception does not invalidate any other reasons why a work based
+# on this file might be covered by the GNU General Public License.
+
 """ Helpers for calling commands, capture their output, return result code
 
 Subprocess library just does not provide all the simplicity we would like
 
 Stay python2 compatible --> no timeouts
 
-.. codeauthor:: Christian Herdtweck, christian.herdtweck@intra2net.com
+.. codeauthor:: Intra2net
 """
 
 from subprocess import Popen, PIPE
index 4bd7204..b3fe595 100755 (executable)
--- a/check.sh
+++ b/check.sh
@@ -1,5 +1,23 @@
 #!/bin/bash
 
+# The software in this package is distributed under the GNU General
+# Public License version 2 (with a special exception described below).
+#
+# A copy of GNU General Public License (GPL) is included in this distribution,
+# in the file COPYING.GPL.
+#
+# As a special exception, if other files instantiate templates or use macros
+# or inline functions from this file, or you compile this file and link it
+# with other works to produce a work based on this file, this file
+# does not by itself cause the resulting work to be covered
+# by the GNU General Public License.
+#
+# However the source code for this file must still be made available
+# in accordance with section (3) of the GNU General Public License.
+#
+# This exception does not invalidate any other reasons why a work based
+# on this file might be covered by the GNU General Public License.
+
 # check.sh
 # check a python file using pylint and pep8
 
index 11974f4..2035a77 100644 (file)
@@ -1,3 +1,21 @@
+# The software in this package is distributed under the GNU General
+# Public License version 2 (with a special exception described below).
+#
+# A copy of GNU General Public License (GPL) is included in this distribution,
+# in the file COPYING.GPL.
+#
+# As a special exception, if other files instantiate templates or use macros
+# or inline functions from this file, or you compile this file and link it
+# with other works to produce a work based on this file, this file
+# does not by itself cause the resulting work to be covered
+# by the GNU General Public License.
+#
+# However the source code for this file must still be made available
+# in accordance with section (3) of the GNU General Public License.
+#
+# This exception does not invalidate any other reasons why a work based
+# on this file might be covered by the GNU General Public License.
+
 """ Helper functions and classes to deal with files and dirs and stuff
 
 Featuring::
@@ -8,7 +26,7 @@ Featuring::
 
 .. todo:: change get_filesystem_fill_states to not fork
 
-.. codeauthor:: Christian Herdtweck, christian.herdtweck@intra2net.com
+.. codeauthor:: Intra2net
 """
 
 from __future__ import print_function
index 3b8e7ce..3cf8bcb 100644 (file)
--- a/follow.py
+++ b/follow.py
@@ -92,7 +92,7 @@ NOT possible::
   len(my_follower)
   Follower(my_file, my_file) #  (twice the same)
 
-.. codeauthor:: Christian Herdtweck, christian.herdtweck@intra2net.com
+.. codeauthor:: Intra2net
 """
 
 from __future__ import print_function
index 9a0921a..0febfce 100644 (file)
@@ -1,3 +1,21 @@
+# The software in this package is distributed under the GNU General
+# Public License version 2 (with a special exception described below).
+#
+# A copy of GNU General Public License (GPL) is included in this distribution,
+# in the file COPYING.GPL.
+#
+# As a special exception, if other files instantiate templates or use macros
+# or inline functions from this file, or you compile this file and link it
+# with other works to produce a work based on this file, this file
+# does not by itself cause the resulting work to be covered
+# by the GNU General Public License.
+#
+# However the source code for this file must still be made available
+# in accordance with section (3) of the GNU General Public License.
+#
+# This exception does not invalidate any other reasons why a work based
+# on this file might be covered by the GNU General Public License.
+
 """ Unittest for follow.py
 
 This is a little more involved since in order to test properly, need a second
@@ -8,7 +26,7 @@ thread that writes to file/socket/stdout
 DEPRECATED
 (at least for files see log_read; may still be usefull for pipes/sockets)
 
-.. codeauthor:: Christian Herdtweck, christian.herdtweck@intra2net.com
+.. codeauthor:: Intra2net
 """
 
 
index a5aaab3..624ede5 100644 (file)
@@ -1,9 +1,27 @@
+# The software in this package is distributed under the GNU General
+# Public License version 2 (with a special exception described below).
+#
+# A copy of GNU General Public License (GPL) is included in this distribution,
+# in the file COPYING.GPL.
+#
+# As a special exception, if other files instantiate templates or use macros
+# or inline functions from this file, or you compile this file and link it
+# with other works to produce a work based on this file, this file
+# does not by itself cause the resulting work to be covered
+# by the GNU General Public License.
+#
+# However the source code for this file must still be made available
+# in accordance with section (3) of the GNU General Public License.
+#
+# This exception does not invalidate any other reasons why a work based
+# on this file might be covered by the GNU General Public License.
+
 """ Helper functions with iterators -- functional program is great!
 
 Currently, recipes from python itertools docu (:py:mod:`itertools`) that have
 been deemed useful
 
-.. codeauthor:: Christian Herdtweck, christian.herdtweck@intra2net.com
+.. codeauthor:: Intra2net
 """
 
 from itertools import *
index a2830f6..d51e641 100644 (file)
@@ -38,7 +38,7 @@ Further ideas: ::
 ..todo:: do not limit logs by line numbers but by disc size? Warn when at 50%,
          75%, 90%, 99% of limit?
 
-.. codeauthor:: Christian Herdtweck, christian.herdtweck@intra2net.com
+.. codeauthor:: Intra2net
 """
 
 import logging
index 13c944f..0c30e88 100644 (file)
@@ -1,3 +1,21 @@
+# The software in this package is distributed under the GNU General
+# Public License version 2 (with a special exception described below).
+#
+# A copy of GNU General Public License (GPL) is included in this distribution,
+# in the file COPYING.GPL.
+#
+# As a special exception, if other files instantiate templates or use macros
+# or inline functions from this file, or you compile this file and link it
+# with other works to produce a work based on this file, this file
+# does not by itself cause the resulting work to be covered
+# by the GNU General Public License.
+#
+# However the source code for this file must still be made available
+# in accordance with section (3) of the GNU General Public License.
+#
+# This exception does not invalidate any other reasons why a work based
+# on this file might be covered by the GNU General Public License.
+
 """ Iterative reading of log files
 
 Basic Functionality (class :py:class:`IterativeReader`:)
@@ -15,7 +33,7 @@ like date, time, module name, urgency and message.
 
 ..todo:: auto-detect log line layout
 
-.. codeauthor:: Christian Herdtweck, christian.herdtweck@intra2net.com
+.. codeauthor:: Intra2net
 """
 
 import os
index ca86951..7505ad8 100644 (file)
@@ -1,8 +1,26 @@
+# The software in this package is distributed under the GNU General
+# Public License version 2 (with a special exception described below).
+#
+# A copy of GNU General Public License (GPL) is included in this distribution,
+# in the file COPYING.GPL.
+#
+# As a special exception, if other files instantiate templates or use macros
+# or inline functions from this file, or you compile this file and link it
+# with other works to produce a work based on this file, this file
+# does not by itself cause the resulting work to be covered
+# by the GNU General Public License.
+#
+# However the source code for this file must still be made available
+# in accordance with section (3) of the GNU General Public License.
+#
+# This exception does not invalidate any other reasons why a work based
+# on this file might be covered by the GNU General Public License.
+
 """ Unittests for log_read
 
 Creates own thread to write data to a log file
 
-.. codeauthor:: Christian Herdtweck, christian.herdtweck@intra2net.com
+.. codeauthor:: Intra2net
 """
 
 import unittest
index c89af30..0e01357 100644 (file)
@@ -1,5 +1,3 @@
-#!/usr/bin/env python
-
 # The software in this package is distributed under the GNU General
 # Public License version 2 (with a special exception described below).
 #
@@ -31,7 +29,7 @@ in this docstring, but please keep it brief!
 .. note:: You should note this
 .. warning:: This is a warning
 
-.. codeauthor:: John Doe, john.doe@intra2net.com
+.. codeauthor:: Intra2net
 """
 
 from __future__ import print_function
@@ -100,16 +98,3 @@ def send_message(sender, recipient, message_body, priority=1):
     """
 
     raise NotImplementedError()
-
-
-def main():
-    """ Main function, called when running file as script
-
-    currently raises a NotImplementedError
-    """
-    raise NotImplementedError
-# end: function main
-
-
-if __name__ == '__main__':
-    main()
index 3c16ed0..96d02c7 100644 (file)
@@ -1,3 +1,21 @@
+# The software in this package is distributed under the GNU General
+# Public License version 2 (with a special exception described below).
+#
+# A copy of GNU General Public License (GPL) is included in this distribution,
+# in the file COPYING.GPL.
+#
+# As a special exception, if other files instantiate templates or use macros
+# or inline functions from this file, or you compile this file and link it
+# with other works to produce a work based on this file, this file
+# does not by itself cause the resulting work to be covered
+# by the GNU General Public License.
+#
+# However the source code for this file must still be made available
+# in accordance with section (3) of the GNU General Public License.
+#
+# This exception does not invalidate any other reasons why a work based
+# on this file might be covered by the GNU General Public License.
+
 """ buffer_unittest.py: unit tests for buffers.py
 
 Tests classes and functions in buffers.py
@@ -6,7 +24,7 @@ Should be able run from python2 and python3!
 
 For help see :py:mod:`unittest`
 
-.. codeauthor:: Christian Herdtweck, christian.herdtweck@intra2net.com
+.. codeauthor:: Intra2net
 """
 
 import unittest
index c9057fd..e21b011 100644 (file)
@@ -1,8 +1,26 @@
+# The software in this package is distributed under the GNU General
+# Public License version 2 (with a special exception described below).
+#
+# A copy of GNU General Public License (GPL) is included in this distribution,
+# in the file COPYING.GPL.
+#
+# As a special exception, if other files instantiate templates or use macros
+# or inline functions from this file, or you compile this file and link it
+# with other works to produce a work based on this file, this file
+# does not by itself cause the resulting work to be covered
+# by the GNU General Public License.
+#
+# However the source code for this file must still be made available
+# in accordance with section (3) of the GNU General Public License.
+#
+# This exception does not invalidate any other reasons why a work based
+# on this file might be covered by the GNU General Public License.
+
 """ call_helper_unittest.py: unit tests for call_helpers
 
 Should be run from python2 and python3!
 
-.. codeauthor:: Christian Herdtweck, christian.herdtweck@intra2net.com
+.. codeauthor:: Intra2net
 """
 
 import unittest
index 4db468d..a0bb4c5 100755 (executable)
@@ -1,10 +1,28 @@
 #!/usr/bin/env python3
 
+# The software in this package is distributed under the GNU General
+# Public License version 2 (with a special exception described below).
+#
+# A copy of GNU General Public License (GPL) is included in this distribution,
+# in the file COPYING.GPL.
+#
+# As a special exception, if other files instantiate templates or use macros
+# or inline functions from this file, or you compile this file and link it
+# with other works to produce a work based on this file, this file
+# does not by itself cause the resulting work to be covered
+# by the GNU General Public License.
+#
+# However the source code for this file must still be made available
+# in accordance with section (3) of the GNU General Public License.
+#
+# This exception does not invalidate any other reasons why a work based
+# on this file might be covered by the GNU General Public License.
+
 """ Test test_helpers.DiscFillChecker by actually writing lots of data to disc
 
 Indulge in the luxury of assuming we have python3 here ;-)
 
-.. codeauthor:: Christian Herdtweck, christian.herdtweck@intra2net.com
+.. codeauthor:: Intra2net
 """
 
 from sys import stderr, argv as cmd_line_args
index 804d829..7277db4 100644 (file)
@@ -1,3 +1,21 @@
+# The software in this package is distributed under the GNU General
+# Public License version 2 (with a special exception described below).
+#
+# A copy of GNU General Public License (GPL) is included in this distribution,
+# in the file COPYING.GPL.
+#
+# As a special exception, if other files instantiate templates or use macros
+# or inline functions from this file, or you compile this file and link it
+# with other works to produce a work based on this file, this file
+# does not by itself cause the resulting work to be covered
+# by the GNU General Public License.
+#
+# However the source code for this file must still be made available
+# in accordance with section (3) of the GNU General Public License.
+#
+# This exception does not invalidate any other reasons why a work based
+# on this file might be covered by the GNU General Public License.
+
 """ file_helper_unittest.py: unit tests for file_helpers
 
 Tests classes and functions in file_helpers
@@ -6,7 +24,7 @@ Should be able to run from python2 and python3!
 
 For help see :py:mod:`unittest`
 
-.. codeauthor:: Christian Herdtweck, christian.herdtweck@intra2net.com
+.. codeauthor:: Intra2net
 """
 
 import unittest
index 3d80afa..408557f 100644 (file)
@@ -1,3 +1,21 @@
+# The software in this package is distributed under the GNU General
+# Public License version 2 (with a special exception described below).
+#
+# A copy of GNU General Public License (GPL) is included in this distribution,
+# in the file COPYING.GPL.
+#
+# As a special exception, if other files instantiate templates or use macros
+# or inline functions from this file, or you compile this file and link it
+# with other works to produce a work based on this file, this file
+# does not by itself cause the resulting work to be covered
+# by the GNU General Public License.
+#
+# However the source code for this file must still be made available
+# in accordance with section (3) of the GNU General Public License.
+#
+# This exception does not invalidate any other reasons why a work based
+# on this file might be covered by the GNU General Public License.
+
 """ module_name_unittest.py: unit tests for module_name
 
 Tests classes and functions in module_name
@@ -6,7 +24,7 @@ Should be able run from python2 and python3!
 
 For help see :py:mod:`unittest`
 
-.. codeauthor:: your name, your.name@intra2net.com
+.. codeauthor:: Intra2net
 """
 
 from __future__ import print_function
index 6c0eb65..3f37d92 100644 (file)
@@ -1,3 +1,21 @@
+# The software in this package is distributed under the GNU General
+# Public License version 2 (with a special exception described below).
+#
+# A copy of GNU General Public License (GPL) is included in this distribution,
+# in the file COPYING.GPL.
+#
+# As a special exception, if other files instantiate templates or use macros
+# or inline functions from this file, or you compile this file and link it
+# with other works to produce a work based on this file, this file
+# does not by itself cause the resulting work to be covered
+# by the GNU General Public License.
+#
+# However the source code for this file must still be made available
+# in accordance with section (3) of the GNU General Public License.
+#
+# This exception does not invalidate any other reasons why a work based
+# on this file might be covered by the GNU General Public License.
+
 """ test_helper_unittest.py: unit tests for test_helpers
 
 Tests classes and functions in test_helpers
@@ -6,7 +24,7 @@ Should be able run from python2 and python3!
 
 For help see :py:mod:`unittest`
 
-.. codeauthor:: Christian Herdtweck, christian.herdtweck@intra2net.com
+.. codeauthor:: Intra2net
 """
 
 from __future__ import print_function
index af89fdf..82ccfed 100644 (file)
@@ -1,3 +1,21 @@
+# The software in this package is distributed under the GNU General
+# Public License version 2 (with a special exception described below).
+#
+# A copy of GNU General Public License (GPL) is included in this distribution,
+# in the file COPYING.GPL.
+#
+# As a special exception, if other files instantiate templates or use macros
+# or inline functions from this file, or you compile this file and link it
+# with other works to produce a work based on this file, this file
+# does not by itself cause the resulting work to be covered
+# by the GNU General Public License.
+#
+# However the source code for this file must still be made available
+# in accordance with section (3) of the GNU General Public License.
+#
+# This exception does not invalidate any other reasons why a work based
+# on this file might be covered by the GNU General Public License.
+
 """ type_helper_unittest.py: unit tests for type_helpers
 
 Tests classes and functions in type_helpers
@@ -6,7 +24,7 @@ Should be run from python2 and python3!
 
 For help see :py:mod:`unittest`
 
-.. codeauthor:: Christian Herdtweck, christian.herdtweck@intra2net.com
+.. codeauthor:: Intra2net
 """
 
 import unittest
index 69a0982..eebebc6 100644 (file)
@@ -1,9 +1,27 @@
+# The software in this package is distributed under the GNU General
+# Public License version 2 (with a special exception described below).
+#
+# A copy of GNU General Public License (GPL) is included in this distribution,
+# in the file COPYING.GPL.
+#
+# As a special exception, if other files instantiate templates or use macros
+# or inline functions from this file, or you compile this file and link it
+# with other works to produce a work based on this file, this file
+# does not by itself cause the resulting work to be covered
+# by the GNU General Public License.
+#
+# However the source code for this file must still be made available
+# in accordance with section (3) of the GNU General Public License.
+#
+# This exception does not invalidate any other reasons why a work based
+# on this file might be covered by the GNU General Public License.
+
 """ Helpers for developping quick test scripts
 
 Creation motivated by fear of filling disc space during long-running stress
 tests
 
-.. codeauthor:: Christian Herdtweck, christian.herdtweck@intra2net.com
+.. codeauthor:: Intra2net
 """
 
 from __future__ import print_function
index 18fbec9..2972536 100644 (file)
@@ -21,7 +21,7 @@ Helpers for type checking and conversion, like isstr(x), is_file_obj(x)
 
 Provides abstraction from difference between PY2 and PY3
 
-.. codeauthor:: Christian Herdtweck, christian.herdtweck@intra2net.com
+.. codeauthor:: Intra2net
 """
 
 from __future__ import print_function