mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 22:14:55 -04:00
Merge pull request #3108 from NotAFile/py3-six-urlparse
Use six.moves.urlparse
This commit is contained in:
commit
9e2601f830
8 changed files with 20 additions and 21 deletions
|
@ -15,8 +15,7 @@
|
|||
|
||||
import hashlib
|
||||
from inspect import getcallargs
|
||||
import urllib
|
||||
import urlparse
|
||||
from six.moves.urllib import parse as urlparse
|
||||
|
||||
from mock import Mock, patch
|
||||
from twisted.internet import defer, reactor
|
||||
|
@ -238,7 +237,7 @@ class MockHttpResource(HttpServer):
|
|||
if matcher:
|
||||
try:
|
||||
args = [
|
||||
urllib.unquote(u).decode("UTF-8")
|
||||
urlparse.unquote(u).decode("UTF-8")
|
||||
for u in matcher.groups()
|
||||
]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue