OLD | NEW |
(Empty) | |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 # TODO(dmikurube): Remove this file once Python 2.7 is required. |
| 6 |
| 7 import os |
| 8 import sys |
| 9 |
| 10 try: |
| 11 from collections import OrderedDict # pylint: disable=E0611,W0611 |
| 12 except ImportError: |
| 13 _BASE_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) |
| 14 _SIMPLEJSON_PATH = os.path.join(_BASE_PATH, |
| 15 os.pardir, |
| 16 os.pardir, |
| 17 'third_party') |
| 18 sys.path.insert(0, _SIMPLEJSON_PATH) |
| 19 from simplejson import OrderedDict # pylint: disable=W0611 |
OLD | NEW |