From 12493d962738b79cee4d7bfe46937b0b3e1b9f3e Mon Sep 17 00:00:00 2001 From: boyned Date: Wed, 4 Jan 2017 19:10:59 -0800 Subject: [PATCH] Made inspect_module.py compatible with PEP 8 --- examples/inspect_module.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/examples/inspect_module.py b/examples/inspect_module.py index 7873ff4..7e359b9 100755 --- a/examples/inspect_module.py +++ b/examples/inspect_module.py @@ -10,7 +10,7 @@ mod.add_keyword(word) dcfile.parse_dcfile(mod, 'simple_example.dc') -print() # Newline after prompt +print() # Newline after prompt # Inspect python imports print('Imports') @@ -26,16 +26,18 @@ for suffix in suffixes: print(' ' + base_class + suffix) -print() # Newline after imports +print() # Newline after imports # Inspect module keywords print('Keywords') for keyword_num in range(0, mod.num_keywords()): print(' ' + mod.get_keyword(keyword_num)) -print() # Newline after keywords +print() # Newline after keywords # Helper functions for printing complex types + + def print_type(typ, indent): tab = ' ' * indent subtype = typ.subtype() @@ -69,10 +71,10 @@ def print_type(typ, indent): print(' ' + field.name() + ' : ' + field.type().to_string()) print_type(field.type(), 3) -print() # Newline after classes +print() # Newline after classes print('Fields-By-Id') for i in range(0, 6): print(' %s - %s' % (i, mod.field_by_id(i).name())) -print() # Newline before prompt +print() # Newline before prompt