def _add_slash(self, string=None):
        """ if a string doesn't end in a '/' add one """
        if(not str.endswith(string, '/')):
            return str.join('', [string, '/'])
        return str(string)
def _add_slash ( self , string = None ) : if ( not str . endswith ( string , '/' ) ) : return str . join ( '' , [ string , '/' ] ) return str ( string )
if a string doesn't end in a '/' add one