| 15 | |
| 16 | |
| 17 | class Path: |
| 18 | def __init__(self): |
| 19 | self.stack = [] |
| 20 | |
| 21 | def Create(token): |
| 22 | try: |
| 23 | path = Path() |
| 24 | ss = token["stack"] |
| 25 | |
| 26 | if ss == None: |
| 27 | return None |
| 28 | |
| 29 | for hct in ss: |
| 30 | path.stack.append(PathNode.Create(hct)) |
| 31 | |
| 32 | return path |
| 33 | except: |
| 34 | print("Failed to create Path from jsonfile") |
| 35 | return None |
no outgoing calls
no test coverage detected