Switch to unified view

a/Ming/ming/utils.py b/Ming/ming/utils.py
...
...
2
import urllib
2
import urllib
3
3
4
def parse_uri(uri, **kwargs):
4
def parse_uri(uri, **kwargs):
5
    scheme, rest = urllib.splittype(uri)
5
    scheme, rest = urllib.splittype(uri)
6
    host, rest = urllib.splithost(rest)
6
    host, rest = urllib.splithost(rest)
7
    user, rest = urllib.splituser(rest)
7
    user, host = urllib.splituser(host)
8
    if user:
8
    if user:
9
        username, password = urllib.splitpasswd(user)
9
        username, password = urllib.splitpasswd(user)
10
    else:
10
    else:
11
        username = password = None
11
        username = password = None
12
    host, port = urllib.splitnport(host)
12
    host, port = urllib.splitnport(host)