author
Parses a string to extract an author name and an email address by splitting the line and removing angle brackets from the email portion.
def author(
line: string
) - > tuple
Parses a string containing an author's name and an optional email address, typically formatted as "Name < email >".
Parameters
| Name | Type | Description |
|---|---|---|
| line | string | The raw input string containing the author's name and potentially an email address to be parsed. |
Returns
| Type | Description |
|---|---|
tuple | A tuple containing the lowercase name string and the lowercase email string (or None if the email is missing). |