alexander wrote: > The function _locale._getdefaultlocale seems to only be defined if > python is compiled for windows, but an attempt is made to call it > regardless of the OS in locale.getdefaultlocale. This is causing > 'import site' to fail when I start python. I am not sure what ought = to > be called instead; in my version, for now, I am going to amend the = try: > except: block that this code is wrapped in so that it catches > AttributeError's, as well. >=20 > The code I'm referring to is around line 262 in Lib/locale.py, and = line > 343 in Modules/_localemodule.c I'll fix this in the repository. the except clause should catch AttributeError, not NameError. sorry /F
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