/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp
# Copyright 2014 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """A clone of the default copy.deepcopy that doesn't handle cyclic structures or complex types except for dicts and lists. This is because gyp copies so large structure that small copy overhead ends up taking seconds in a project the size of Chromium.""" class Error(Exception): pass __all__ = ["Error", "deepcopy"] def deepcopy(x): """Deep copy operation on gyp objects such as strings, ints, dicts and lists. More than twice as fast as copy.deepcopy but much less generic.""" try: return _deepcopy_dispatch[type(x)](x) except KeyError: raise Error( "Unsupported type %s for deepcopy. Use copy.deepcopy " + "or expand simple_copy support." % type(x) ) _deepcopy_dispatch = d = {} def _deepcopy_atomic(x): return x types = bool, float, int, str, type, type(None) for x in types: d[x] = _deepcopy_atomic def _deepcopy_list(x): return [deepcopy(a) for a in x] d[list] = _deepcopy_list def _deepcopy_dict(x): y = {} for key, value in x.items(): y[deepcopy(key)] = deepcopy(value) return y d[dict] = _deepcopy_dict del d
.
Edit
..
Edit
MSVSNew.py
Edit
MSVSProject.py
Edit
MSVSSettings.py
Edit
MSVSSettings_test.py
Edit
MSVSToolFile.py
Edit
MSVSUserFile.py
Edit
MSVSUtil.py
Edit
MSVSVersion.py
Edit
__init__.py
Edit
common.py
Edit
common_test.py
Edit
easy_xml.py
Edit
easy_xml_test.py
Edit
flock_tool.py
Edit
generator
Edit
input.py
Edit
input_test.py
Edit
mac_tool.py
Edit
msvs_emulation.py
Edit
ninja_syntax.py
Edit
simple_copy.py
Edit
win_tool.py
Edit
xcode_emulation.py
Edit
xcode_ninja.py
Edit
xcodeproj_file.py
Edit
xml_fix.py
Edit