SASLprep dummy
(
data: Any,
prohibit_unassigned_code_points: Optional[bool] = True, # noqa: ARG001
)
| 23 | HAVE_STRINGPREP = False |
| 24 | |
| 25 | def saslprep( |
| 26 | data: Any, |
| 27 | prohibit_unassigned_code_points: Optional[bool] = True, # noqa: ARG001 |
| 28 | ) -> Any: |
| 29 | """SASLprep dummy""" |
| 30 | if isinstance(data, str): |
| 31 | raise TypeError( |
| 32 | "The stringprep module is not available. Usernames and " |
| 33 | "passwords must be instances of bytes." |
| 34 | ) |
| 35 | return data |
| 36 | |
| 37 | else: |
| 38 | HAVE_STRINGPREP = True |