(p)
return p[:0], p
Deprecated since Python 3.1.  Please use splitdrive() instead;
    it now handles UNC paths.

    Split a pathname into UNC mount point and relative path specifiers.

    Return a 2-tuple (unc, rest); either part may be empty.
    If unc is not empty, it has the form '//host/mount' (or similar
    using backslashes).  unc+rest is always the input path.
    Paths containing drive letters never have an UNC part.
Deprecated since Python 3.1.  Please use splitdrive() instead;
    it now handles UNC paths.
Deprecated since Python 3 . 1 . Please use splitdrive () instead ; it now handles UNC paths .
def splitunc(p):
    """Deprecated since Python 3.1.  Please use splitdrive() instead;
    it now handles UNC paths.

    Split a pathname into UNC mount point and relative path specifiers.

    Return a 2-tuple (unc, rest); either part may be empty.
    If unc is not empty, it has the form '//host/mount' (or similar
    using backslashes).  unc+rest is always the input path.
    Paths containing drive letters never have an UNC part.
    """
    import warnings
    warnings.warn("ntpath.splitunc is deprecated, use ntpath.splitdrive instead",
                  DeprecationWarning)
    sep = _get_sep(p)
    if not p[1:2]:
        return p[:0], p # Drive letter present
    firstTwo = p[0:2]
    if normcase(firstTwo) == sep + sep:
        # is a UNC path:
        # vvvvvvvvvvvvvvvvvvvv equivalent to drive letter
        # \\machine\mountpoint\directories...
        #           directory ^^^^^^^^^^^^^^^
        normp = normcase(p)
        index = normp.find(sep, 2)
        if index == -1:
            ##raise RuntimeError, 'illegal UNC path: "' + p + '"'
            return (p[:0], p)
        index = normp.find(sep, index + 1)
        if index == -1:
            index = len(p)
        return p[:index], p[index:]
    return p[:0], p
def splitunc ( p ) : import warnings warnings . warn ( "ntpath.splitunc is deprecated, use ntpath.splitdrive instead" , DeprecationWarning ) sep = _get_sep ( p ) if not p [ 1 : 2 ] : return p [ : 0 ] , p # Drive letter present firstTwo = p [ 0 : 2 ] if normcase ( firstTwo ) == sep + sep : # is a UNC path: # vvvvvvvvvvvvvvvvvvvv equivalent to drive letter # \\machine\mountpoint\directories... #           directory ^^^^^^^^^^^^^^^ normp = normcase ( p ) index = normp . find ( sep , 2 ) if index == - 1 : ##raise RuntimeError, 'illegal UNC path: "' + p + '"' return ( p [ : 0 ] , p ) index = normp . find ( sep , index + 1 ) if index == - 1 : index = len ( p ) return p [ : index ] , p [ index : ] return p [ : 0 ] , p