Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(9)  |  Call(5)  |  Derive(0)  |  Import(4)

src/z/o/zombie-HEAD/zombie/modules/docx.py   zombie(Download)
def block_compact(element):
	import intermediate
	from modules import compact 
 
	test = lambda x,y: isinstance(x, intermediate.Text) and isinstance(y, intermediate.Text)
	element.children = compact(element.children, test)
		return True
 
	element.children = compact(element.children, test)
	return element
 
def get_zombie_specialrun(element, files):
	""" Special runs are set apart in some way from	neighboring runs. """
	import intermediate
	from modules import compact
 
		special.append(child)
 
	special.children = compact(special.children, lambda x,y: isinstance(x, intermediate.Text) and isinstance(y, intermediate.Text))
	return special
 

src/z/o/zombie-HEAD/zombie/intermediate.py   zombie(Download)
	def __add__(self, x):		
		if not isinstance(x, Special): raise TypeError('Expected argument of type Special')
		from modules import compact
		self.children  = self.children + x.children
		self.children  = compact(self.children, lambda x,y: isinstance(x, Text) and isinstance(y, Text))