endswith_lf
Return True if line (a text or bytestring) ends with '\n'.
def endswith_lf(
line: Union[str, bytes]
) - > boolean
Return True if line (a text or bytestring) ends with '\n'.
Parameters
| Name | Type | Description |
|---|---|---|
| line | Union[str, bytes] | The text or bytestring to check for a trailing line feed |
Returns
| Type | Description |
|---|---|
boolean | True if the input ends with a line feed character, False otherwise |