Does this sub have any properties to print?
(sub)
| 218 | |
| 219 | |
| 220 | def has_members(sub): |
| 221 | """Does this sub have any properties to print?""" |
| 222 | if 'properties' not in sub: |
| 223 | return False |
| 224 | |
| 225 | for p in list(sub['properties'].keys()): |
| 226 | if len(sub['properties'][p]) == 0: |
| 227 | continue |
| 228 | if sub['properties'][p].get('deprecated') is True: |
| 229 | continue |
| 230 | return True |
| 231 | return False |
| 232 | |
| 233 | |
| 234 | def output_members(sub, indent=''): |