/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp
NameSizeModeActions
generator/-0755rm
__pycache__/-0755rm
common.py253130644editdlrm
common_test.py62520755editdlrm
easy_xml.py54870644editdlrm
easy_xml_test.py39410755editdlrm
flock_tool.py18860755editdlrm
input.py1264370644editdlrm
input_test.py34260755editdlrm
mac_tool.py304820755editdlrm
MSVSNew.py132020644editdlrm
MSVSProject.py69400644editdlrm
MSVSSettings.py457470644editdlrm
MSVSSettings_test.py744340755editdlrm
MSVSToolFile.py18300644editdlrm
MSVSUserFile.py53760644editdlrm
MSVSUtil.py103260644editdlrm
MSVSVersion.py204420644editdlrm
msvs_emulation.py540210644editdlrm
ninja_syntax.py56400644editdlrm
simple_copy.py12970644editdlrm
win_tool.py151780755editdlrm
xcodeproj_file.py1362740644editdlrm
xcode_emulation.py824540644editdlrm
xcode_emulation_test.py14890644editdlrm
xcode_ninja.py121320644editdlrm
xml_fix.py22440644editdlrm
__init__.py246530755editdlrm
Edit: /usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/simple_copy.py (1297B)
# 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