Add a warning if the current version of python is not 2.5
R=dpranke@chromium.org
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/git_cl.py b/git_cl.py
index e22ea6a..1887cbb 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -1,7 +1,12 @@
-#!/usr/bin/python
-# git-cl -- a git-command for integrating reviews on Rietveld
+#!/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.
+
# Copyright (C) 2008 Evan Martin <martine@danga.com>
+"""A git-command for integrating reviews on Rietveld."""
+
import errno
import logging
import optparse
@@ -23,7 +28,7 @@
import simplejson as json # pylint: disable=F0401
except ImportError:
try:
- import json
+ import json # pylint: disable=F0401
except ImportError:
# Fall back to the packaged version.
sys.path.append(os.path.join(os.path.dirname(__file__), 'third_party'))