Use six for pulling in unquote.
This change updates the TFS implementation to get `urllib2.unquote` from
`six.moves`, for compatibility with Python 3.
Testing Done:
Loaded the module in a Python 3 environment.
Reviewed at
@@ -5,9 +5,10 @@ import os
import re
import sys
import tempfile
-import urllib2
import xml.etree.ElementTree as ET
+from six.moves.urllib.parse import unquote
+
from rbtools.clients import RepositoryInfo, SCMClient
from rbtools.clients.errors import (InvalidRevisionSpecError,
SCMError,
@@ -83,7 +84,7 @@ class TEEWrapper(object):
# and error out if we don't.
check_gnu_diff()
- path = urllib2.unquote(m.group(1))
+ path = unquote(m.group(1))
return RepositoryInfo(path)
