def slashappend(s):
 if (s and (not s.endswith('/'))):
  return (s + '/')
 else:
  return s

def slashappend ( s ) : if ( s and ( not s . endswith ( '/' ) ) ) : return ( s + '/' ) else : return s
append "/" to s if it doesnt aleady end in "/" .