[r21858]GrampsLocale: Fix MSWin Syntax error

Can't do everything the C way :-(

svn: r21859
This commit is contained in:
John Ralls 2013-04-03 03:57:50 +00:00
parent 8fe756f5e4
commit b204a48b42

View File

@ -189,10 +189,12 @@ class GrampsLocale(object):
self.lang = loc[0] self.lang = loc[0]
self.languages = [loc[0]] self.languages = [loc[0]]
self.encoding = loc[1] self.encoding = loc[1]
elif ((lang, loc) = _check_mswin_locale(lang)): else:
self.lang = lang (lang, loc) = _check_mswin_locale(lang)
self.language = [self.lang] if lang:
self.encoding = loc[1] self.lang = lang
self.language = [self.lang]
self.encoding = loc[1]
if not self.lang: if not self.lang:
self.lang = 'C' self.lang = 'C'