diff -r 92da3e6cb104 -r c16c1805e973 cubicweb/utils.py --- a/cubicweb/utils.py Fri Mar 10 14:07:15 2017 +0100 +++ b/cubicweb/utils.py Fri Mar 10 16:14:05 2017 +0100 @@ -37,7 +37,6 @@ from logging import getLogger from six import text_type -from six.moves.urllib.parse import urlparse from logilab.mtconverter import xml_escape from logilab.common.deprecation import deprecated @@ -585,21 +584,6 @@ return 'javascript: ' + PERCENT_IN_URLQUOTE_RE.sub(r'%25', javascript_code) -def parse_repo_uri(uri): - """ transform a command line uri into a (protocol, hostport, appid), e.g: - -> 'inmemory', None, '' - inmemory:// -> 'inmemory', None, '' - """ - parseduri = urlparse(uri) - scheme = parseduri.scheme - if scheme == '': - return ('inmemory', None, parseduri.path) - if scheme == 'inmemory': - return (scheme, None, parseduri.netloc) - raise NotImplementedError('URI protocol not implemented for `%s`' % uri) - - - logger = getLogger('cubicweb.utils') class QueryCache(object):