• Facebook
  • Twitter
  • Reddit
  • StumbleUpon
  • Digg
  • email

All Samples(306)  |  Call(259)  |  Derive(0)  |  Import(47)
splituser('user[:passwd]@host[:port]') --> 'user[:passwd]', 'host[:port]'.

        def splituser(host):
    """splituser('user[:passwd]@host[:port]') --> 'user[:passwd]', 'host[:port]'."""
    global _userprog
    if _userprog is None:
        import re
        _userprog = re.compile('^(.*)@(.*)$')

    match = _userprog.match(host)
    if match: return map(unquote, match.group(1, 2))
    return None, host
        


src/p/o/pony-build-HEAD/examples/push-cgi-notifier/feedparser.py   pony-build(Download)
            urltype, rest = urllib.splittype(url_file_stream_or_string)
            realhost, rest = urllib.splithost(rest)
            if realhost:
                user_passwd, realhost = urllib.splituser(realhost)
                if user_passwd:
                    url_file_stream_or_string = '%s://%s%s' % (urltype, realhost, rest)
                    auth = base64.encodestring(user_passwd).strip()

src/j/y/jython-HEAD/sandbox/tobias/jython/CPythonLib/urllib2.py   jython(Download)
except ImportError:
    from StringIO import StringIO
 
from urllib import (unwrap, unquote, splittype, splithost, quote,
     addinfourl, splitport, splitgophertype, splitquery,
     splitattr, ftpwrapper, noheaders, splituser, splitpasswd, splitvalue)
 
        if end == -1:
            end = None
        authority = r_scheme[2:end]
    userinfo, hostport = splituser(authority)
    if userinfo is not None:
        user, password = splitpasswd(userinfo)
    else:
            port = int(port)
 
        # username/password handling
        user, host = splituser(host)
        if user:
            user, passwd = splitpasswd(user)
        else:

src/j/y/jython-HEAD/jython/CPythonLib/urllib2.py   jython(Download)
except ImportError:
    from StringIO import StringIO
 
from urllib import (unwrap, unquote, splittype, splithost, quote,
     addinfourl, splitport, splitgophertype, splitquery,
     splitattr, ftpwrapper, noheaders, splituser, splitpasswd, splitvalue)
 
        if end == -1:
            end = None
        authority = r_scheme[2:end]
    userinfo, hostport = splituser(authority)
    if userinfo is not None:
        user, password = splitpasswd(userinfo)
    else:
            port = int(port)
 
        # username/password handling
        user, host = splituser(host)
        if user:
            user, passwd = splitpasswd(user)
        else:

src/i/r/ironruby-HEAD/External.LCA_RESTRICTED/Languages/IronPython/27/Lib/urllib2.py   ironruby(Download)
except ImportError:
    from StringIO import StringIO
 
from urllib import (unwrap, unquote, splittype, splithost, quote,
     addinfourl, splitport,
     splitattr, ftpwrapper, splituser, splitpasswd, splitvalue)
 
        if end == -1:
            end = None
        authority = r_scheme[2:end]
    userinfo, hostport = splituser(authority)
    if userinfo is not None:
        user, password = splitpasswd(userinfo)
    else:
            port = int(port)
 
        # username/password handling
        user, host = splituser(host)
        if user:
            user, passwd = splitpasswd(user)
        else:

src/i/r/ironruby-HEAD/External.LCA_RESTRICTED/Languages/CPython/27/Lib/urllib2.py   ironruby(Download)
except ImportError:
    from StringIO import StringIO
 
from urllib import (unwrap, unquote, splittype, splithost, quote,
     addinfourl, splitport,
     splitattr, ftpwrapper, splituser, splitpasswd, splitvalue)
 
        if end == -1:
            end = None
        authority = r_scheme[2:end]
    userinfo, hostport = splituser(authority)
    if userinfo is not None:
        user, password = splitpasswd(userinfo)
    else:
            port = int(port)
 
        # username/password handling
        user, host = splituser(host)
        if user:
            user, passwd = splitpasswd(user)
        else:

src/s/p/spike-HEAD/vendor/stackless/v2.5.1/Lib/urllib2.py   spike(Download)
except ImportError:
    from StringIO import StringIO
 
from urllib import (unwrap, unquote, splittype, splithost, quote,
     addinfourl, splitport, splitgophertype, splitquery,
     splitattr, ftpwrapper, noheaders, splituser, splitpasswd, splitvalue)
 
        if end == -1:
            end = None
        authority = r_scheme[2:end]
    userinfo, hostport = splituser(authority)
    if userinfo is not None:
        user, password = splitpasswd(userinfo)
    else:
            port = int(port)
 
        # username/password handling
        user, host = splituser(host)
        if user:
            user, passwd = splitpasswd(user)
        else:

src/s/p/spike-HEAD/vendor/stackless/current/Lib/urllib2.py   spike(Download)
except ImportError:
    from StringIO import StringIO
 
from urllib import (unwrap, unquote, splittype, splithost, quote,
     addinfourl, splitport, splitgophertype, splitquery,
     splitattr, ftpwrapper, noheaders, splituser, splitpasswd, splitvalue)
 
        if end == -1:
            end = None
        authority = r_scheme[2:end]
    userinfo, hostport = splituser(authority)
    if userinfo is not None:
        user, password = splitpasswd(userinfo)
    else:
            port = int(port)
 
        # username/password handling
        user, host = splituser(host)
        if user:
            user, passwd = splitpasswd(user)
        else:

src/s/p/spike-HEAD/vendor/Python/v2.5.1/Lib/urllib2.py   spike(Download)
except ImportError:
    from StringIO import StringIO
 
from urllib import (unwrap, unquote, splittype, splithost, quote,
     addinfourl, splitport, splitgophertype, splitquery,
     splitattr, ftpwrapper, noheaders, splituser, splitpasswd, splitvalue)
 
        if end == -1:
            end = None
        authority = r_scheme[2:end]
    userinfo, hostport = splituser(authority)
    if userinfo is not None:
        user, password = splitpasswd(userinfo)
    else:
            port = int(port)
 
        # username/password handling
        user, host = splituser(host)
        if user:
            user, passwd = splitpasswd(user)
        else:

src/s/p/spike-HEAD/vendor/Python/current/Lib/urllib2.py   spike(Download)
except ImportError:
    from StringIO import StringIO
 
from urllib import (unwrap, unquote, splittype, splithost, quote,
     addinfourl, splitport, splitgophertype, splitquery,
     splitattr, ftpwrapper, noheaders, splituser, splitpasswd, splitvalue)
 
        if end == -1:
            end = None
        authority = r_scheme[2:end]
    userinfo, hostport = splituser(authority)
    if userinfo is not None:
        user, password = splitpasswd(userinfo)
    else:
            port = int(port)
 
        # username/password handling
        user, host = splituser(host)
        if user:
            user, passwd = splitpasswd(user)
        else:

src/p/y/pypy3-HEAD/lib-python/2.5.2/urllib2.py   pypy3(Download)
except ImportError:
    from StringIO import StringIO
 
from urllib import (unwrap, unquote, splittype, splithost, quote,
     addinfourl, splitport, splitgophertype, splitquery,
     splitattr, ftpwrapper, noheaders, splituser, splitpasswd, splitvalue)
 
        if end == -1:
            end = None
        authority = r_scheme[2:end]
    userinfo, hostport = splituser(authority)
    if userinfo is not None:
        user, password = splitpasswd(userinfo)
    else:
            port = int(port)
 
        # username/password handling
        user, host = splituser(host)
        if user:
            user, passwd = splitpasswd(user)
        else:

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next