| OLD | NEW |
| 1 | 1 |
| 2 # Copyright 2010 The Native Client Authors. All rights reserved. | 2 # Copyright 2010 The Native Client Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can | 3 # Use of this source code is governed by a BSD-style license that can |
| 4 # be found in the LICENSE file. | 4 # be found in the LICENSE file. |
| 5 | 5 |
| 6 import os | 6 import os |
| 7 import hashlib | 7 import hashlib |
| 8 import sys | 8 import sys |
| 9 import types | 9 import types |
| 10 | 10 |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 "native_client/tools/browser_tester", | 129 "native_client/tools/browser_tester", |
| 130 "native_client/tools/command_tester.py", | 130 "native_client/tools/command_tester.py", |
| 131 "native_client/tools/diff.py", | 131 "native_client/tools/diff.py", |
| 132 "native_client/tools/file_cmp_test.py", | 132 "native_client/tools/file_cmp_test.py", |
| 133 "native_client/tools/srpcgen.py", | 133 "native_client/tools/srpcgen.py", |
| 134 "native_client/tools/test_lib.py", | 134 "native_client/tools/test_lib.py", |
| 135 "native_client/tools/tests", | 135 "native_client/tools/tests", |
| 136 "third_party/gles2_book", | 136 "third_party/gles2_book", |
| 137 "third_party/npapi", | 137 "third_party/npapi", |
| 138 "third_party/pylib", | 138 "third_party/pylib", |
| 139 "third_party/scons-2.0.1", | 139 "third_party/scons", |
| 140 # Pulled in from SVN repos via DEPS | 140 # Pulled in from SVN repos via DEPS |
| 141 "base", | 141 "base", |
| 142 "build", | 142 "build", |
| 143 "gpu", | 143 "gpu", |
| 144 "ppapi", | 144 "ppapi", |
| 145 "testing/gtest", | 145 "testing/gtest", |
| 146 ] | 146 ] |
| 147 result = {} | 147 result = {} |
| 148 for filename in paths_to_copy: | 148 for filename in paths_to_copy: |
| 149 SetPath(result, filename, GetPath(input_tree, filename)) | 149 SetPath(result, filename, GetPath(input_tree, filename)) |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 filename = filename[:-1] | 332 filename = filename[:-1] |
| 333 fh = open(filename, "r") | 333 fh = open(filename, "r") |
| 334 module_identity = hashlib.sha1(fh.read()).hexdigest() | 334 module_identity = hashlib.sha1(fh.read()).hexdigest() |
| 335 fh.close() | 335 fh.close() |
| 336 for value in module.itervalues(): | 336 for value in module.itervalues(): |
| 337 if isinstance(value, types.FunctionType): | 337 if isinstance(value, types.FunctionType): |
| 338 value.function_identity = (module_identity, __name__) | 338 value.function_identity = (module_identity, __name__) |
| 339 | 339 |
| 340 | 340 |
| 341 MarkFunctionsWithIdentity(globals()) | 341 MarkFunctionsWithIdentity(globals()) |
| OLD | NEW |