def aliasmbcs():
 if (sys.platform == 'win32'):
  import locale, codecs
  enc = locale.getdefaultlocale()[1]
  if enc.startswith('cp'):
   try:
    codecs.lookup(enc)
   except LookupError:
    import encodings
    encodings._cache[enc] = encodings._unknown
    encodings.aliases.aliases[enc] = 'mbcs'

def aliasmbcs ( ) : if ( sys . platform == 'win32' ) : import locale , codecs enc = locale . getdefaultlocale ( ) [ 1 ] if enc . startswith ( 'cp' ) : try : codecs . lookup ( enc ) except LookupError : import encodings encodings . _cache [ enc ] = encodings . _unknown encodings . aliases . aliases [ enc ] = 'mbcs'
on windows .