def __arrayPlugGetItem( self, key ) :

	if getattr( self, "enableInputGeneratorCompatibility", False ) :
		try :
			return Gaffer.ArrayPlug.__originalGetItem( self, key )
		except __HOLE__ :
			if key == self.getName() :
				# Some nodes (I'm looking at you UnionFilter) used to
				# name their first child without a numeric suffix.
				return Gaffer.ArrayPlug.__originalGetItem( self, 0 )
			else :
				# Simulate access to the child of the first plug in an
				# old InputGenerator.
				return Gaffer.ArrayPlug.__originalGetItem( self, 0 )[key]

	return Gaffer.ArrayPlug.__originalGetItem( self, key )
dataset/ETHPy150Open ImageEngine/gaffer/startup/Gaffer/inputGeneratorCompatibility.py/__arrayPlugGetItem