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 once Python 2.7 is required. | |
peria
2013/07/16 10:30:11
Remove this *file*?
Dai Mikurube (NOT FULLTIME)
2013/07/16 10:42:39
Done.
| |
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 |