/usr/lib/node_modules/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp
NameSizeModeActions
generator/-0755rm
common.py245920644editdlrm
common_test.py57140644editdlrm
easy_xml.py54250644editdlrm
easy_xml_test.py39500644editdlrm
flock_tool.py18860644editdlrm
input.py1265040644editdlrm
input_test.py34250644editdlrm
mac_tool.py302600644editdlrm
MSVSNew.py130290644editdlrm
MSVSProject.py67390644editdlrm
MSVSSettings.py454520644editdlrm
MSVSSettings_test.py742970644editdlrm
MSVSToolFile.py17890644editdlrm
MSVSUserFile.py53330644editdlrm
MSVSUtil.py102310644editdlrm
MSVSVersion.py197440644editdlrm
msvs_emulation.py541020644editdlrm
ninja_syntax.py56400644editdlrm
simple_copy.py12930644editdlrm
win_tool.py151310644editdlrm
xcodeproj_file.py1356710644editdlrm
xcode_emulation.py820860644editdlrm
xcode_emulation_test.py14880644editdlrm
xcode_ninja.py121240644editdlrm
xml_fix.py22450644editdlrm
__init__.py246250644editdlrm
Edit: /usr/lib/node_modules/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/simple_copy.py (1293B)
# 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