u2d: version=0.1 NAME: u2d.py SYNOPSIS: u2d.py myfile DESCRIPTION: Autodetect current format and convert dos-->unix and unix-->dos The algorithm is from u2d.c (GPL), by L. C. Drew, obtained from www.ibiblio.org OPTIONS: -h,--help this message -v,--version version -d,--debug turn on debug messages EXAMPLES: 1. As standalone u2d.py -d myfile 2. As library import u2d ... #Copyright (C) 2002 Harry George hgg9140@seanet.com #http://www.seanet.com/~hgg9140 # # 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., 675 Mass Ave, Cambridge, MA 02139, USA.