Scope pyspec packages, make pyspec more readable, fix imports

This commit is contained in:
protolambda
2019-03-28 01:21:07 +08:00
parent 883ea93545
commit a106edacad
16 changed files with 1728 additions and 20 deletions

View File

@@ -27,6 +27,10 @@ def get_lines(file_name):
code_lines.append('%s = SSZType({' % current_name)
processing_typedef = True
elif pulling_from is not None:
# Add some whitespace between functions
if line[:3] == 'def':
code_lines.append("")
code_lines.append("")
code_lines.append(line)
elif pulling_from is None and len(line) > 0 and line[0] == '|':
row = line[1:].split('|')