summaryrefslogtreecommitdiff
path: root/grpc/tools/codegen/core/gen_settings_ids.py
diff options
context:
space:
mode:
Diffstat (limited to 'grpc/tools/codegen/core/gen_settings_ids.py')
-rwxr-xr-xgrpc/tools/codegen/core/gen_settings_ids.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/grpc/tools/codegen/core/gen_settings_ids.py b/grpc/tools/codegen/core/gen_settings_ids.py
index 644e80cf..fb035add 100755
--- a/grpc/tools/codegen/core/gen_settings_ids.py
+++ b/grpc/tools/codegen/core/gen_settings_ids.py
@@ -67,7 +67,8 @@ def put_banner(files, banner):
with open(sys.argv[0]) as my_source:
copyright = []
for line in my_source:
- if line[0] != '#': break
+ if line[0] != '#':
+ break
for line in my_source:
if line[0] == '#':
copyright.append(line)
@@ -141,9 +142,12 @@ bool grpc_wire_id_to_setting_id(uint32_t wire_id, grpc_chttp2_setting_id *out) {
switch (y) {
""" % cgargs
for i, r in enumerate(p.r):
- if not r: continue
- if r < 0: print >> C, 'case %d: h -= %d; break;' % (i, -r)
- else: print >> C, 'case %d: h += %d; break;' % (i, r)
+ if not r:
+ continue
+ if r < 0:
+ print >> C, 'case %d: h -= %d; break;' % (i, -r)
+ else:
+ print >> C, 'case %d: h += %d; break;' % (i, r)
print >> C, """
}
*out = (grpc_chttp2_setting_id)h;