aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/buildgen/build-cleaner.py
diff options
context:
space:
mode:
authorGravatar zeliard <spacesun@naver.com>2015-04-23 16:31:22 +0900
committerGravatar zeliard <spacesun@naver.com>2015-04-23 16:31:22 +0900
commit2cade59b9d6c0bd83aee8d94b45301bdea2481b9 (patch)
treee355c74a72bb949d994708577c37fe17d2d08efe /tools/buildgen/build-cleaner.py
parent201d30326331460ac5825bf926ffdc1080c86fab (diff)
parente7bd03cdec8f4b9e878e5206c98f5e6fb5bc43f5 (diff)
Merge branch 'master' of https://github.com/grpc/grpc
Diffstat (limited to 'tools/buildgen/build-cleaner.py')
-rwxr-xr-xtools/buildgen/build-cleaner.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/buildgen/build-cleaner.py b/tools/buildgen/build-cleaner.py
index 6c5355bce3..fba103723c 100755
--- a/tools/buildgen/build-cleaner.py
+++ b/tools/buildgen/build-cleaner.py
@@ -52,11 +52,15 @@ _ELEM_KEYS = [
def rebuild_as_ordered_dict(indict, special_keys):
outdict = collections.OrderedDict()
+ for key in sorted(indict.keys()):
+ if '#' in key:
+ outdict[key] = indict[key]
for key in special_keys:
if key in indict:
outdict[key] = indict[key]
for key in sorted(indict.keys()):
if key in special_keys: continue
+ if '#' in key: continue
outdict[key] = indict[key]
return outdict