parameters: (txt)
return_statement: return tbl
docstring: Parse a string with key = value pairs into a dictionary::
  
  		from waflib import Utils
  		x = Utils.str_to_dict('''
  			a = 1
  			b = test
  		''')
  
  	:type  s: string
  	:param s: String to parse
  	:rtype: dict
  	:return: Dictionary containing parsed key-value pairs
docstring_summary: Parse a string with key = value pairs into a dictionary::
docstring_tokens: Parse a string with key = value pairs into a dictionary ::
function: def str_to_dict(txt):
  	"""
  	Parse a string with key = value pairs into a dictionary::
  
  		from waflib import Utils
  		x = Utils.str_to_dict('''
  			a = 1
  			b = test
  		''')
  
  	:type  s: string
  	:param s: String to parse
  	:rtype: dict
  	:return: Dictionary containing parsed key-value pairs
  	"""
  	tbl = {}
  
  	lines = re_nl.split(txt)
  	for x in lines:
  		x = x.strip()
  		if not x or x.startswith('#') or x.find('=') < 0:
  			continue
  		tmp = x.split('=')
  		tbl[tmp[0].strip()] = '='.join(tmp[1:]).strip()
  	return tbl
function_tokens: def str_to_dict ( txt ) : tbl = { } lines = re_nl . split ( txt ) for x in lines : x = x . strip ( ) if not x or x . startswith ( '#' ) or x . find ( '=' ) < 0 : continue tmp = x . split ( '=' ) tbl [ tmp [ 0 ] . strip ( ) ] = '=' . join ( tmp [ 1 : ] ) . strip ( ) return tbl