def get_unicode_modules():
 modules = []
 try:
  import codecs
  modules.append('codecs')
 except ImportError:
  logger.error("Cannot detect modules 'codecs'.")
 return modules

def get_unicode_modules ( ) : modules = [ ] try : import codecs modules . append ( 'codecs' ) except ImportError : logger . error ( "Cannot detect modules 'codecs'." ) return modules
try importing codecs and encodings to include unicode support in created binary .