|
|
|
@ -1,5 +1,5 @@
|
|
|
|
#!/usr/bin/python
|
|
|
|
#!/usr/bin/env python
|
|
|
|
# Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
|
|
|
# Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
|
|
|
|
|
|
|
@ -38,13 +38,8 @@ try:
|
|
|
|
import simplejson as json # pylint: disable=F0401
|
|
|
|
import simplejson as json # pylint: disable=F0401
|
|
|
|
except ImportError:
|
|
|
|
except ImportError:
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
import json
|
|
|
|
import json # pylint: disable=F0401
|
|
|
|
# Some versions of python2.5 have an incomplete json module. Check to make
|
|
|
|
except ImportError:
|
|
|
|
# sure loads exists.
|
|
|
|
|
|
|
|
# Statement seems to have no effect
|
|
|
|
|
|
|
|
# pylint: disable=W0104
|
|
|
|
|
|
|
|
json.loads
|
|
|
|
|
|
|
|
except (ImportError, AttributeError):
|
|
|
|
|
|
|
|
# Import the one included in depot_tools.
|
|
|
|
# Import the one included in depot_tools.
|
|
|
|
sys.path.append(os.path.join(os.path.dirname(__file__), 'third_party'))
|
|
|
|
sys.path.append(os.path.join(os.path.dirname(__file__), 'third_party'))
|
|
|
|
import simplejson as json # pylint: disable=F0401
|
|
|
|
import simplejson as json # pylint: disable=F0401
|
|
|
|
|