#NEWLINE# def parse_http_list( u ) : #NEWLINE# #INDENT# 'A unicode-safe version of urllib2.parse_http_list' #NEWLINE# encoded_str = u . encode ( 'utf-8' ) #NEWLINE# encoded_list = urllib2 . parse_http_list ( u ) #NEWLINE# return [ s . decode ( 'utf-8' ) for s in encoded_list ]