summaryrefslogtreecommitdiffstats
path: root/Lib/locale.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/locale.py')
-rw-r--r--Lib/locale.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/locale.py b/Lib/locale.py
index 6e509a6..6c6eeea 100644
--- a/Lib/locale.py
+++ b/Lib/locale.py
@@ -337,7 +337,7 @@ def getdefaultlocale(envvars=('LANGUAGE', 'LC_ALL', 'LC_CTYPE', 'LANG')):
lookup = os.environ.get
for variable in envvars:
localename = lookup(variable,None)
- if localename is not None:
+ if localename:
break
else:
localename = 'C'