def _check_numpy_unicode_bug(labels):
 if ((np_version[:3] < (1, 7, 0)) and (labels.dtype.kind == 'U')):
  raise RuntimeError('NumPy < 1.7.0 does not implement searchsorted on unicode data correctly. Please upgrade NumPy to use LabelEncoder with unicode inputs.')

def _check_numpy_unicode_bug ( labels ) : if ( ( np_version [ : 3 ] < ( 1 , 7 , 0 ) ) and ( labels . dtype . kind == 'U' ) ) : raise RuntimeError ( 'NumPy < 1.7.0 does not implement searchsorted on unicode data correctly. Please upgrade NumPy to use LabelEncoder with unicode inputs.' )
check that user is not subject to an old numpy bug fixed in master before 1 .