def _escapecss(e):
 s = e.object[e.start:e.end]
 return (u''.join([(u'\\%s ' % str(hex(ord(x)))[2:].upper()) for x in s]), e.end)

def _escapecss ( e ) : s = e . object [ e . start : e . end ] return ( u'' . join ( [ ( u'\\%s ' % str ( hex ( ord ( x ) ) ) [ 2 : ] . upper ( ) ) for x in s ] ) , e . end )
escapes characters not allowed in the current encoding the css way with a backslash followed by a uppercase hex code point e .