<s> try : <EOL> import xbmc <EOL> except : <EOL> pass <EOL> class pLog : <EOL> def __call__ ( self , msg ) : <EOL> self . log ( msg ) <EOL> def log ( self , msg = '<STR_LIT>' , level = <NUM_LIT:2> ) : <EOL> plugin = "<STR_LIT>" <EOL> try : <EOL> msg = msg . encode ( '<STR_LIT:utf-8>' ) <EOL> except : <EOL> pass <EOL> try : <EOL> xbmc . log ( "<STR_LIT>" % ( plugin , msg . __str__ ( ) ) , level ) <EOL> except : <EOL> pass <EOL> def info ( self , msg ) : <EOL> self . log ( msg ) </s>
