We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
glob_to_regex
synapse.util
1 parent daea7bc commit eec34b1Copy full SHA for eec34b1
changelog.d/11696.misc
@@ -0,0 +1 @@
1
+Work around Mjolnir compatibility issue by adding an import for `glob_to_regex` in `synapse.util`, where it moved from.
synapse/util/__init__.py
@@ -31,6 +31,13 @@
31
if typing.TYPE_CHECKING:
32
pass
33
34
+# FIXME Mjolnir imports glob_to_regex from this file, but it was moved to
35
+# matrix_common.
36
+# As a temporary workaround, we import glob_to_regex here for
37
+# compatibility with current versions of Mjolnir.
38
+# See https://github.com/matrix-org/mjolnir/pull/174
39
+from matrix_common.regex import glob_to_regex # noqa
40
+
41
logger = logging.getLogger(__name__)
42
43
0 commit comments