From: <lu...@us...> - 2009-02-16 04:59:20
|
Revision: 375 http://s3tools.svn.sourceforge.net/s3tools/?rev=375&view=rev Author: ludvigm Date: 2009-02-16 04:59:15 +0000 (Mon, 16 Feb 2009) Log Message: ----------- * s3cmd: Check Python version >= 2.4 as soon as possible. Modified Paths: -------------- s3cmd/trunk/ChangeLog s3cmd/trunk/s3cmd Modified: s3cmd/trunk/ChangeLog =================================================================== --- s3cmd/trunk/ChangeLog 2009-02-14 07:01:41 UTC (rev 374) +++ s3cmd/trunk/ChangeLog 2009-02-16 04:59:15 UTC (rev 375) @@ -1,3 +1,7 @@ +2009-02-16 Michal Ludvig <mi...@lo...> + + * s3cmd: Check Python version >= 2.4 as soon as possible. + 2009-02-14 Michal Ludvig <mi...@lo...> * s3cmd, S3/Config.py, S3/S3.py: Added --add-header option. Modified: s3cmd/trunk/s3cmd =================================================================== --- s3cmd/trunk/s3cmd 2009-02-14 07:01:41 UTC (rev 374) +++ s3cmd/trunk/s3cmd 2009-02-16 04:59:15 UTC (rev 375) @@ -6,6 +6,11 @@ ## License: GPL Version 2 import sys + +if float("%d.%d" %(sys.version_info[0], sys.version_info[1])) < 2.4: + sys.stderr.write("ERROR: Python 2.4 or higher required, sorry.\n") + sys.exit(1) + import logging import time import os @@ -1316,9 +1321,6 @@ def main(): global cfg - if float("%d.%d" %(sys.version_info[0], sys.version_info[1])) < 2.4: - sys.stderr.write("ERROR: Python 2.4 or higher required, sorry.\n") - sys.exit(1) commands_list = get_commands_list() commands = {} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |