def _get_units(args, kwargs):
 if (u'unit' not in kwargs):
  units = [None, None, None]
 else:
  units = kwargs.pop(u'unit')
  if isinstance(units, six.string_types):
   units = [x.strip() for x in units.split(u',')]
   if (len(units) == 1):
    units = [units[0], units[0], units[0]]
  elif isinstance(units, (Unit, IrreducibleUnit)):
   units = [units, units, units]
  try:
   units = [(Unit(x) if x else None) for x in units]
   units.extend((None for x in range((3 - len(units)))))
   if (len(units) > 3):
    raise ValueError()
  except Exception:
   raise ValueError(u'Unit keyword must have one to three unit values as tuple or comma-separated string')
 return units

def _get_units ( args , kwargs ) : if ( u'unit' not in kwargs ) : units = [ None , None , None ] else : units = kwargs . pop ( u'unit' ) if isinstance ( units , six . string_types ) : units = [ x . strip ( ) for x in units . split ( u',' ) ] if ( len ( units ) == 1 ) : units = [ units [ 0 ] , units [ 0 ] , units [ 0 ] ] elif isinstance ( units , ( Unit , IrreducibleUnit ) ) : units = [ units , units , units ] try : units = [ ( Unit ( x ) if x else None ) for x in units ] units . extend ( ( None for x in range ( ( 3 - len ( units ) ) ) ) ) if ( len ( units ) > 3 ) : raise ValueError ( ) except Exception : raise ValueError ( u'Unit keyword must have one to three unit values as tuple or comma-separated string' ) return units
get the longitude unit and latitude unit from kwargs .