diff --git a/changelog.d/7319.misc b/changelog.d/7319.misc
new file mode 100644
index 0000000000000000000000000000000000000000..62ea6b6df96630484cd49a57dd61808e5dd7dcfc
--- /dev/null
+++ b/changelog.d/7319.misc
@@ -0,0 +1 @@
+Fix an incorrect import in IdentityHandler.
\ No newline at end of file
diff --git a/synapse/handlers/identity.py b/synapse/handlers/identity.py
index 23f07832e74705e53b0be89a1f38de0765ef9d07..0f0e632b626c8385fda3ba6243f9aa101ce527ba 100644
--- a/synapse/handlers/identity.py
+++ b/synapse/handlers/identity.py
@@ -18,7 +18,7 @@
 """Utilities for interacting with Identity Servers"""
 
 import logging
-import urllib
+import urllib.parse
 
 from canonicaljson import json
 from signedjson.key import decode_verify_key_bytes