def parse_amount(amount):
	to_find = []
	try:
		if ',' in amount:
			# if a comma seperation (e.g. 10,11,12) is specified
			temp = amount.split(',')
			for i in temp:
				to_find.append(int(i))
			return to_find
		elif '-' in amount:
			# if a range (e.g. 10-20) is specified
			temp = amount.split('-')
			for i in range(int(temp[0]),int(temp[1]) + 1):
				to_find.append(i)
			return to_find
		else:
			# if a single number (e.g. 123) is specified
			to_find.append(int(amount))
			return to_find
	except __HOLE__:
		print("  ERROR: incorrect value given for update range.")
		exit()
dataset/ETHPy150Open AdamGreenhill/VirusShare-Search/VirusShare-Search.py/parse_amount