def instrument_num(instrument):
	"""Given a GUS patch name, get the MIDI instrument number.

	   For percussion instruments, the instrument number is offset
	   by 128.
	"""
	for key, name in GUS_INSTR_PATCHES.items():
		if name == instrument:
			return key
	raise Exception(instrument % 'Unknown instrument %s')
dataset/ETHPy150Open freedoom/freedoom/lumps/dmxgus/comparison.py/instrument_num/swapped operands of `%`