parameters: (text, preserve_lines=False)
return_statement: return ''.join(map(lambda m: evaluate(m, preserve_lines), CSS_PATTERN.finditer(text.replace('\r', ''))))
docstring: Clean css.
docstring_summary: Clean css.
docstring_tokens: Clean css .
function: def clean_css(text, preserve_lines=False):
      """Clean css."""
  
      def remove_comments(group, preserve_lines=False):
          """Remove comments."""
  
          return ''.join([x[0] for x in LINE_PRESERVE.findall(group)]) if preserve_lines else ''
  
      def evaluate(m, preserve_lines):
          """Search for comments."""
  
          g = m.groupdict()
          return g["code"] if g["code"] is not None else remove_comments(g["comments"], preserve_lines)
  
      return ''.join(map(lambda m: evaluate(m, preserve_lines), CSS_PATTERN.finditer(text.replace('\r', ''))))
function_tokens: def clean_css ( text , preserve_lines = False ) : def remove_comments ( group , preserve_lines = False ) : """Remove comments.""" return '' . join ( [ x [ 0 ] for x in LINE_PRESERVE . findall ( group ) ] ) if preserve_lines else '' def evaluate ( m , preserve_lines ) : """Search for comments.""" g = m . groupdict ( ) return g [ "code" ] if g [ "code" ] is not None else remove_comments ( g [ "comments" ] , preserve_lines ) return '' . join ( map ( lambda m : evaluate ( m , preserve_lines ) , CSS_PATTERN . finditer ( text . replace ( '\r' , '' ) ) ) )