X-Git-Url: https://www.irasnyder.com/gitweb/?p=rarslave2.git;a=blobdiff_plain;f=rsutil%2Fpar2parser.py;h=572c7b15f6d56861336565c3301628ea3d36c182;hp=69401012ae83253da61a18528b2cb2324e3d0d51;hb=44cd23f16a5a184adb1d8890633a0e432a2e5636;hpb=24f030f703d80f8eedc85a4c4039e81006fd20a3 diff --git a/rsutil/par2parser.py b/rsutil/par2parser.py index 6940101..572c7b1 100644 --- a/rsutil/par2parser.py +++ b/rsutil/par2parser.py @@ -1,11 +1,35 @@ #!/usr/bin/env python # vim: set ts=4 sts=4 sw=4 textwidth=92: -################################################################################ -# The PAR2 Parser +""" +Module which holds PAR2 file parsing functions. + +Much of this code was borrowed from the excellent cfv project. +See http://cfv.sourceforge.net/ for a copy. +""" + +__author__ = "Ira W. Snyder (devel@irasnyder.com)" +__copyright__ = "Copyright (c) 2006,2007 Ira W. Snyder (devel@irasnyder.com)" +__license__ = "GNU GPL v2 (or, at your option, any later version)" + +# par2parser.py -- PAR2 file parsing utility +# +# Copyright (C) 2006,2007 Ira W. Snyder (devel@irasnyder.com) # -# This was stolen from cfv (see http://cfv.sourceforge.net/ for a copy) -################################################################################ +# 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 struct, errno, os, md5