MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / _re_compile

Function _re_compile

lib/sqlalchemy/dialects/mysql/reflection.py:683–686  ·  view source on GitHub ↗

Compile a string to regex, I and UNICODE.

(regex: str)

Source from the content-addressed store, hash-verified

681
682
683def _re_compile(regex: str) -> re.Pattern[Any]:
684 """Compile a string to regex, I and UNICODE."""
685
686 return re.compile(regex, re.I | re.UNICODE)
687
688
689def _strip_values(values: Sequence[str]) -> list[str]:

Callers 2

_prep_regexesMethod · 0.85
_pr_compileFunction · 0.85

Calls 1

compileMethod · 0.45

Tested by

no test coverage detected