def integer(number, *args):
	"""In Python 3 int() is broken.
	>>> int(bytearray(b'1_0'))
	Traceback (most recent call last):
		...
	ValueError:
	"""
	num = int(number, *args)
	if isinstance(number, str) and '_' in number or isinstance(number, (bytes, bytearray)) and b' ' in number:
		raise ValueError()
	return num