(name, port)
| 44 | |
| 45 | |
| 46 | def init_port(name, port): |
| 47 | ports.append(port) |
| 48 | port.is_contrib = name.startswith('contrib.') |
| 49 | port.is_external = hasattr(port, 'EXTERNAL_PORT') |
| 50 | port.name = name |
| 51 | ports_by_name[port.name] = port |
| 52 | if port.is_external: |
| 53 | init_external_port(name, port) |
| 54 | else: |
| 55 | init_local_port(name, port) |
| 56 | |
| 57 | |
| 58 | def init_local_port(name, port): |
no test coverage detected