Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Work around Mjolnir compatibility issue by adding an import for `glob…
Browse files Browse the repository at this point in the history
…_to_regex` in `synapse.util`, where it moved from. (#11696)
  • Loading branch information
reivilibre authored Jan 6, 2022
1 parent daea7bc commit eec34b1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/11696.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Work around Mjolnir compatibility issue by adding an import for `glob_to_regex` in `synapse.util`, where it moved from.
7 changes: 7 additions & 0 deletions synapse/util/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@
if typing.TYPE_CHECKING:
pass

# FIXME Mjolnir imports glob_to_regex from this file, but it was moved to
# matrix_common.
# As a temporary workaround, we import glob_to_regex here for
# compatibility with current versions of Mjolnir.
# See https://github.com/matrix-org/mjolnir/pull/174
from matrix_common.regex import glob_to_regex # noqa

logger = logging.getLogger(__name__)


Expand Down

0 comments on commit eec34b1

Please sign in to comment.