@apply_to_text_file
def cssminify(data):
 try:
  url = 'http://cssminifier.com/raw'
  _data = {'input': data}
  response = requests.post(url, data=_data)
  if (response.status_code != 200):
   LOGGER.error("can't use cssminifier.com: HTTP status {}", response.status_code)
   return data
  return response.text
 except Exception as exc:
  LOGGER.error("can't use cssminifier.com: {}", exc)
  return data

@ apply_to_text_file def cssminify ( data ) : try : url = 'http://cssminifier.com/raw' _data = { 'input' : data } response = requests . post ( url , data = _data ) if ( response . status_code != 200 ) : LOGGER . error ( "can't use cssminifier.com: HTTP status {}" , response . status_code ) return data return response . text except Exception as exc : LOGGER . error ( "can't use cssminifier.com: {}" , exc ) return data
minify css using URL .