From 1dcb086f33d93e0393901f8fe5b642e41e8292e1 Mon Sep 17 00:00:00 2001
From: Amber Brown <hawkowl@atleastfornow.net>
Date: Tue, 8 Jan 2019 10:03:09 +1100
Subject: [PATCH] Fix synapse.config.__main__ on python 3 (#4356)

---
 changelog.d/4356.bugfix    | 1 +
 synapse/config/__main__.py | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
 create mode 100644 changelog.d/4356.bugfix

diff --git a/changelog.d/4356.bugfix b/changelog.d/4356.bugfix
new file mode 100644
index 0000000000..321eb05652
--- /dev/null
+++ b/changelog.d/4356.bugfix
@@ -0,0 +1 @@
+Fix `python -m synapse.config` on Python 3.
diff --git a/synapse/config/__main__.py b/synapse/config/__main__.py
index 79fe9c3dac..fca35b008c 100644
--- a/synapse/config/__main__.py
+++ b/synapse/config/__main__.py
@@ -16,7 +16,7 @@ from synapse.config._base import ConfigError
 
 if __name__ == "__main__":
     import sys
-    from homeserver import HomeServerConfig
+    from synapse.config.homeserver import HomeServerConfig
 
     action = sys.argv[1]
 
-- 
GitLab