remove_repeating
Remove repeating module names from string.
def remove_repeating(
substr: str,
s: str
) - > str
Remove repeating module names from string.
Parameters
| Name | Type | Description |
|---|---|---|
| substr | str | The module name or substring to be used as the basis for removal. |
| s | str | The target string containing potential duplicate module name references to be cleaned. |
Returns
| Type | Description |
|---|---|
str | The string with all occurrences of the module name removed except for the first one. |