| Index: pylib/gyp/generator/msvs.py
|
| diff --git a/pylib/gyp/generator/msvs.py b/pylib/gyp/generator/msvs.py
|
| index bc4dfc31247b735f853eed881c858913169a328e..0c4e9349494feec0acb595fd28af2f9da5ae2bfa 100644
|
| --- a/pylib/gyp/generator/msvs.py
|
| +++ b/pylib/gyp/generator/msvs.py
|
| @@ -2,6 +2,7 @@
|
| # Use of this source code is governed by a BSD-style license that can be
|
| # found in the LICENSE file.
|
|
|
| +import collections
|
| import copy
|
| import ntpath
|
| import os
|
| @@ -23,16 +24,6 @@ import gyp.MSVSVersion as MSVSVersion
|
| from gyp.common import GypError
|
| from gyp.common import OrderedSet
|
|
|
| -# TODO: Remove once bots are on 2.7, http://crbug.com/241769
|
| -def _import_OrderedDict():
|
| - import collections
|
| - try:
|
| - return collections.OrderedDict
|
| - except AttributeError:
|
| - import gyp.ordered_dict
|
| - return gyp.ordered_dict.OrderedDict
|
| -OrderedDict = _import_OrderedDict()
|
| -
|
|
|
| # Regular expression for validating Visual Studio GUIDs. If the GUID
|
| # contains lowercase hex letters, MSVS will be fine. However,
|
| @@ -200,7 +191,7 @@ def _ConvertSourcesToFilterHierarchy(sources, prefix=None, excluded=None,
|
| if not prefix: prefix = []
|
| result = []
|
| excluded_result = []
|
| - folders = OrderedDict()
|
| + folders = collections.OrderedDict()
|
| # Gather files into the final result, excluded, or folders.
|
| for s in sources:
|
| if len(s) == 1:
|
|
|