X-Git-Url: https://git.distorted.org.uk/~mdw/secnet/blobdiff_plain/6437945aefa308c06ab14da291c5d5489c25b393..86420bb75f19f628ffd2d8ff9964e59ed99e3187:/ipaddrset-test.py diff --git a/ipaddrset-test.py b/ipaddrset-test.py index 290144b..82059f0 100755 --- a/ipaddrset-test.py +++ b/ipaddrset-test.py @@ -1,18 +1,37 @@ #!/usr/bin/python -import sys -import copy -import os -saved_path=copy.copy(sys.path) -for p in ['','.',os.getcwd()]: - try: sys.path.remove(p) - except ValueError: pass +# This file is Free Software. It was originally written for secnet. +# +# Copyright 2014 Ian Jackson +# +# You may redistribute secnet as a whole and/or modify it under the +# terms of the GNU General Public License as published by the Free +# Software Foundation; either version 3, or (at your option) any +# later version. +# +# You may redistribute this fileand/or modify it under the terms of +# the GNU General Public License as published by the Free Software +# Foundation; either version 2, or (at your option) any later version. +# Note however that this version of ipaddrset.py uses the Python +# ipaddr library from Google, which is licenced only under the Apache +# Licence, version 2.0, which is only compatible with the GNU GPL v3 +# (or perhaps later versions), and not with the GNU GPL v2. +# +# This software 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 software; if not, see +# https://www.gnu.org/licenses/gpl.html. +# +# The corresponding test vector file ise ipaddrset-test.expected. I +# don't believe it is a creative work that attracts copyright. -iwj. import ipaddr from ipaddr import IPNetwork, IPAddress -sys.path=saved_path - import ipaddrset from ipaddrset import IPAddressSet