Source

CherryPy / cherrypy / test / test_encoding.py

Diff from to

File cherrypy/test/test_encoding.py

 from cherrypy._cpcompat import BytesIO, IncompleteRead, ntob, ntou
 
 europoundUnicode = ntou('\x80\xa3')
-sing = u"\u6bdb\u6cfd\u4e1c: Sing, Little Birdie?"
+sing = ntou("\u6bdb\u6cfd\u4e1c: Sing, Little Birdie?", 'escape')
 sing8 = sing.encode('utf-8')
 sing16 = sing.encode('utf-16')