Skip to main content

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

NameTypeDescription
lineUnion[str, bytes]The text or bytestring to be checked for equality with a newline character

Returns

TypeDescription
booleanTrue if the input matches a single newline character of the same type, False otherwise