def cmp_debug_levels(level1, level2):
 level_ints = {False: 0, 'merge': 1, True: 2}
 try:
  cmp = (lambda a, b: ((a > b) - (a < b)))
  return cmp(level_ints[level1], level_ints[level2])
 except KeyError as e:
  raise BundleError(('Invalid debug value: %s' % e))

def cmp_debug_levels ( level1 , level2 ) : level_ints = { False : 0 , 'merge' : 1 , True : 2 } try : cmp = ( lambda a , b : ( ( a > b ) - ( a < b ) ) ) return cmp ( level_ints [ level1 ] , level_ints [ level2 ] ) except KeyError as e : raise BundleError ( ( 'Invalid debug value: %s' % e ) )
cmp() for debug levels .