equals_lf
Return True if line (a text or bytestring) equals '\n'.
def equals_lf(
line: Union[str, bytes]
) - > boolean
Return True if line (a text or bytestring) equals '\n'.
Parameters
| Name | Type | Description |
|---|---|---|
| line | Union[str, bytes] | The text or bytestring to be checked for equality with a newline character |
Returns
| Type | Description |
|---|---|
boolean | True if the input matches a single newline character of the same type, False otherwise |