Add a warning if the current version of python is not 2.5

[email protected]
BUG=
TEST=

Review URL: http://codereview.chromium.org/6791018

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@80212 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/gcl.py b/gcl.py
index 76a217c..6136d1c 100755
--- a/gcl.py
+++ b/gcl.py
@@ -1,5 +1,5 @@
-#!/usr/bin/python
-# Copyright (c) 2010 The Chromium Authors. All rights reserved.
+#!/usr/bin/env python
+# Copyright (c) 2011 The Chromium Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
 
@@ -25,12 +25,8 @@
   import simplejson as json  # pylint: disable=F0401
 except ImportError:
   try:
-    import json
-    # Some versions of python2.5 have an incomplete json module.  Check to make
-    # sure loads exists.
-    # pylint: disable=W0104
-    json.loads
-  except (ImportError, AttributeError):
+    import json  # pylint: disable=F0401
+  except ImportError:
     # Import the one included in depot_tools.
     sys.path.append(os.path.join(os.path.dirname(__file__), 'third_party'))
     import simplejson as json  # pylint: disable=F0401