diff --git a/synapse/events/__init__.py b/synapse/events/__init__.py
index 56c6ccc22c18449bbecd29d2c6893ac12eb194eb..c238376caf629ed0c64238ab1cd45e53294b53ed 100644
--- a/synapse/events/__init__.py
+++ b/synapse/events/__init__.py
@@ -14,7 +14,8 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-import abcimport os
+import abc
+import os
 from typing import (
     TYPE_CHECKING,
     Any,