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

Commit 72e7f1c

Browse files
authored
Remove workaround introduced in Synapse v1.50.0rc1 for Mjolnir compatibility. Breaks compatibility with Mjolnir v1.3.1 and earlier. (#11700)
1 parent ea27528 commit 72e7f1c

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

changelog.d/11700.removal

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove workaround introduced in Synapse 1.50.0 for Mjolnir compatibility. Breaks compatibility with Mjolnir 1.3.1 and earlier.

docs/upgrade.md

+8
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,14 @@ You will need to ensure `synctl` is on your `PATH`.
106106
automatically, though you might need to activate a virtual environment
107107
depending on how you installed Synapse.
108108

109+
110+
## Compatibility dropped for Mjolnir 1.3.1 and earlier
111+
112+
Synapse v1.55.0 drops support for Mjolnir 1.3.1 and earlier.
113+
If you use the Mjolnir module to moderate your homeserver,
114+
please upgrade Mjolnir to version 1.3.2 or later before upgrading Synapse.
115+
116+
109117
# Upgrading to v1.54.0
110118

111119
## Legacy structured logging configuration removal

synapse/util/__init__.py

-7
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,6 @@
3131
if typing.TYPE_CHECKING:
3232
pass
3333

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-
4134
logger = logging.getLogger(__name__)
4235

4336

0 commit comments

Comments
 (0)