def _sws(s):
 if isinstance(s, str):
  return ''.join(s.split())
 else:
  return b('').join(s.split())

def _sws ( s ) : if isinstance ( s , str ) : return '' . join ( s . split ( ) ) else : return b ( '' ) . join ( s . split ( ) )
remove whitespace from a text or byte string .