(filepath)
return retVal
Returns normalized string representation of a given filepath

    >>> normalizePath('//var///log/apache.log')
    '//var/log/apache.log'
Returns normalized string representation of a given filepath
Returns normalized string representation of a given filepath
def normalizePath(filepath):
    """
    Returns normalized string representation of a given filepath

    >>> normalizePath('//var///log/apache.log')
    '//var/log/apache.log'
    """

    retVal = filepath

    if retVal:
        retVal = retVal.strip("\r\n")
        retVal = ntpath.normpath(retVal) if isWindowsDriveLetterPath(retVal) else posixpath.normpath(retVal)

    return retVal
def normalizePath ( filepath ) : retVal = filepath if retVal : retVal = retVal . strip ( "\r\n" ) retVal = ntpath . normpath ( retVal ) if isWindowsDriveLetterPath ( retVal ) else posixpath . normpath ( retVal ) return retVal