def flatten(inlist, type=type, ltype=(list,tuple), maxint= sys.maxint):
	try:
		# for every possible index
		for ind in xrange( maxint):
			# while that index currently holds a list
			while isinstance( inlist[ind], ltype):
				# expand that list into the index (and subsequent indicies)
				inlist[ind:ind+1] = list(inlist[ind])
			#ind = ind+1
	except IndexError:
		pass
	return inlist
Redirects the user to obtain OAuth authorization for this service.
dataset/ETHPy150Open correl/Transmission-XBMC/resources/lib/basictypes/latebind.py/flatten--crossover with--dataset/ETHPy150Open moraes/tipfy/tipfy/auth/oauth.py/OAuthMixin.authorize_redirect