diff --git a/synapse/app/homeserver.py b/synapse/app/homeserver.py index 01eb901e8b2d..5285981157e8 100644 --- a/synapse/app/homeserver.py +++ b/synapse/app/homeserver.py @@ -211,7 +211,7 @@ def _configure_named_resource(self, name, compress=False): resources["/_matrix/saml2"] = SAML2Resource(self) if self.get_config().threepid_behaviour_email == ThreepidBehaviour.LOCAL: - from synapse.rest.synapse.client import PasswordResetRestResource + from synapse.rest.internal.client import PasswordResetRestResource password_reset = PasswordResetRestResource(self) resources["/_synapse/client/password_reset"] = password_reset diff --git a/synapse/rest/synapse/__init__.py b/synapse/rest/internal/__init__.py similarity index 100% rename from synapse/rest/synapse/__init__.py rename to synapse/rest/internal/__init__.py diff --git a/synapse/rest/synapse/client/__init__.py b/synapse/rest/internal/client/__init__.py similarity index 95% rename from synapse/rest/synapse/client/__init__.py rename to synapse/rest/internal/client/__init__.py index b4f030eac0b2..be8118628a1d 100644 --- a/synapse/rest/synapse/client/__init__.py +++ b/synapse/rest/internal/client/__init__.py @@ -16,7 +16,7 @@ from typing import TYPE_CHECKING from synapse.http.server import JsonResource -from synapse.rest.synapse.client import password_reset +from synapse.rest.internal.client import password_reset if TYPE_CHECKING: from synapse.server import HomeServer diff --git a/synapse/rest/synapse/client/_base.py b/synapse/rest/internal/client/_base.py similarity index 100% rename from synapse/rest/synapse/client/_base.py rename to synapse/rest/internal/client/_base.py diff --git a/synapse/rest/synapse/client/password_reset.py b/synapse/rest/internal/client/password_reset.py similarity index 100% rename from synapse/rest/synapse/client/password_reset.py rename to synapse/rest/internal/client/password_reset.py diff --git a/tests/rest/client/v2_alpha/test_account.py b/tests/rest/client/v2_alpha/test_account.py index 9c9fe3611f2c..bf72e6424334 100644 --- a/tests/rest/client/v2_alpha/test_account.py +++ b/tests/rest/client/v2_alpha/test_account.py @@ -27,7 +27,7 @@ from synapse.api.errors import Codes from synapse.rest.client.v1 import login, room from synapse.rest.client.v2_alpha import account, register -from synapse.rest.synapse.client import password_reset +from synapse.rest.internal.client import password_reset from tests import unittest