comment tweaks

This commit is contained in:
Robin Dunn
2019-10-15 16:12:06 -07:00
parent 6d77fcf15a
commit 224d62104a

View File

@@ -514,11 +514,11 @@ def run():
self._initial_locale = None
loc, enc = locale.getlocale()
# Try to set it to the same language as what is already set in the C locale
info = wx.Locale.FindLanguageInfo(loc) if loc is not None else None
info = wx.Locale.FindLanguageInfo(loc) if loc else None
if info:
self._initial_locale = wx.Locale(info.Language)
else:
# fallback to the system default
# otherwise fall back to the system default
self._initial_locale = wx.Locale(wx.LANGUAGE_DEFAULT)
"""),