move version check into library

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2155 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2005-01-18 17:03:17 +00:00
parent b51dffce7d
commit 194b1f4466
2 changed files with 5 additions and 5 deletions

View file

@ -16,6 +16,11 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
# imports and checks
import sys
if not hasattr(sys, 'version_info') or \
sys.version_info < (2, 3, 0, 'final', 0):
raise SystemExit, "This program requires Python 2.3 or later."
import os
import re

View file

@ -17,12 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
# imports and checks
import sys
if not hasattr(sys, 'version_info') or \
sys.version_info < (2, 3, 0, 'final', 0):
raise SystemExit, "This program requires Python 2.3 or later."
import getopt
import codecs
import re