(self)
return self
Normalize the path. Turn '//a/./b/../c//' into '/a/c/'.

        Returns: <self>.
Normalize the path. Turn '//a/./b/../c//' into '/a/c/'.
Normalize the path . Turn // a / . / b / .. / c // into / a / c / .
def normalize(self):
        """
        Normalize the path. Turn '//a/./b/../c//' into '/a/c/'.

        Returns: <self>.
        """
        if str(self):
            normalized = normpath(str(self)) + ('/' * self.isdir)
            if normalized.startswith('//'):  # http://bugs.python.org/636648
                normalized = '/' + normalized.lstrip('/')
            self.load(normalized)

        return self
def normalize ( self ) : if str ( self ) : normalized = normpath ( str ( self ) ) + ( '/' * self . isdir ) if normalized . startswith ( '//' ) : # http://bugs.python.org/636648 normalized = '/' + normalized . lstrip ( '/' ) self . load ( normalized ) return self