Re: [PATCH] Support upgrading when the language isn't in lang-table (#528317).

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>> @@ -211,11 +212,36 @@ class Language(object):
>>      def getCurrentLangSearchList(self):
>>          return expandLangs(self.systemLang) + ['C']
>>  -    def getDefaultKeyboard(self):
>> -        return self.localeInfo[self.systemLang][3]
>> +    def getDefaultKeyboard(self, instPath):
>> +        try:
>> +            return self.localeInfo[self.systemLang][3]
>> +        except KeyError:
>> +            try:
>> +                kbd = keyboard.Keyboard()
>> +                kbd.read(instPath)
>> +                return kbd.get()
>> +            except:
>> +                return self.localeInfo[self._default][3]
>> +        else:
>> +            return self.localeInfo[self._default][3]
>>    
>
> What is the point of this else clause?
>

Copied from the getDefaultTimeZone block below to match the "if
os.path.exists".  It doesn't need to be here.

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux