merge_machine/preprocess_fields_v3.py
def singleton_list(s, itemValidator, stripChars):
	''' Parameters:
		itemValidator takes an input string and returns a dictionary
			{field name -> field value if the item is validated or else None}.

		Returns a list (of length one) whose element is a (field name, field value) dictionary. '''
	if itemValidator is None: return [s]
	try:
		d = itemValidator(s)
		return [] if d is None else [d]
	except:
		return []
 Parameters:
		itemValidator takes an input string and returns a dictionary
			{field name -> field value if the item is validated or else None}.

		Returns a list (of length one) whose element is a (field name, field value) dictionary. 
itemValidator takes an input string and returns a dictionary
{field name -> field value if the item is validated or else None}.

Returns a list (of length one) whose element is a (field name, field value) dictionary.
itemValidator takes an input string and returns a dictionary { field name - > field value if the item is validated or else None } . Returns a list ( of length one ) whose element is a ( field name field value ) dictionary .
def singleton_list(s, itemValidator, stripChars):
	if itemValidator is None: return [s]
	try:
		d = itemValidator(s)
		return [] if d is None else [d]
	except:
		return []
def singleton_list ( s , itemValidator , stripChars ) : if itemValidator is None : return [ s ] try : d = itemValidator ( s ) return [ ] if d is None else [ d ] except : return [ ]
Parameters:
itemValidator takes an input string and returns a dictionary
{field name -> field value if the item is validated or else None}.
Parameters : itemValidator takes an input string and returns a dictionary { field name - > field value if the item is validated or else None } .
''' Parameters:
		itemValidator takes an input string and returns a dictionary
			{field name -> field value if the item is validated or else None}.

		Returns a list (of length one) whose element is a (field name, field value) dictionary. '''
s
itemValidator
stripChars