(m)
| 197 | # Single-pass substitution: re.sub never re-scans replacement text, so |
| 198 | # a field value containing ${…} cannot trigger a second expansion round. |
| 199 | def _replace(m): |
| 200 | pv = BaseConnectCommand.get_parameter_value(params, record, m.group(1), temp_files, **kwargs) |
| 201 | return pv or '' |
| 202 | return endpoint_parameter_pattern.sub(_replace, template) |
| 203 | |
| 204 |
no test coverage detected