def _chk_asarray(a, axis):
 if (axis is None):
  a = ravel(a)
  outaxis = 0
 else:
  a = asarray(a)
  outaxis = axis
 return (a, outaxis)

def _chk_asarray ( a , axis ) : if ( axis is None ) : a = ravel ( a ) outaxis = 0 else : a = asarray ( a ) outaxis = axis return ( a , outaxis )
converts a list into an numpy array .