diff --git a/synapse/replication/http/_base.py b/synapse/replication/http/_base.py
index a7d1b2dabe5935e43215b32c6ca230f7b91b38ed..4de3825fdab58b6acc92229b4fdcaf1ca6126c2c 100644
--- a/synapse/replication/http/_base.py
+++ b/synapse/replication/http/_base.py
@@ -21,10 +21,7 @@ from six.moves import urllib
 
 from twisted.internet import defer
 
-from synapse.api.errors import (
-    CodeMessageException,
-    HttpResponseException,
-)
+from synapse.api.errors import CodeMessageException, HttpResponseException
 from synapse.util.caches.response_cache import ResponseCache
 from synapse.util.stringutils import random_string