A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-April/034529.html below:

[Python-Dev] Embedded python on Win2K, import failures

[Python-Dev] Embedded python on Win2K, import failures [Python-Dev] Embedded python on Win2K, import failuresMartin v. Löwis martin@v.loewis.de
12 Apr 2003 13:17:35 +0200
"M.-A. Lemburg" <mal@lemburg.com> writes:

> This looks like a modified site.py. Where did you get this from ?

Perhaps from the Python CVS?

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

Regards,
Martin



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4