def length_or_percentage_or_unitless(argument, default=''):
 try:
  return get_measure(argument, (length_units + ['%']))
 except ValueError:
  try:
   return (get_measure(argument, ['']) + default)
  except ValueError:
   return get_measure(argument, (length_units + ['%']))

def length_or_percentage_or_unitless ( argument , default = '' ) : try : return get_measure ( argument , ( length_units + [ '%' ] ) ) except ValueError : try : return ( get_measure ( argument , [ '' ] ) + default ) except ValueError : return get_measure ( argument , ( length_units + [ '%' ] ) )
return normalized string of a length or percentage unit .