<s> from __future__ import absolute_import , unicode_literals <EOL> class UnicodeAdapter ( object ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , unicode_string ) : <EOL> self . _str = unicode_string <EOL> def getquoted ( self ) : <EOL> """<STR_LIT>""" <EOL> s = self . _str <EOL> s = s . replace ( "<STR_LIT:'>" , "<STR_LIT>" ) <EOL> s = s . replace ( '<STR_LIT:\\>' , '<STR_LIT>' ) <EOL> return ( "<STR_LIT>" % s ) . encode ( '<STR_LIT:utf8>' ) </s>
