def strip_trailing_slashes(self, path):
        """Return input path minus any trailing slashes."""
        m = re.match(r"(.*)/+$", path)
        if (m is None):
            return(path)
        return(m.group(1))
def strip_trailing_slashes ( self , path ) : m = re . match ( r"(.*)/+$" , path ) if ( m is None ) : return ( path ) return ( m . group ( 1 ) )
Return input path minus any trailing slashes.