eric7/Preferences/ConfigurationPages/InterfacePage.py

branch
eric7
changeset 8761
f05818ae6431
parent 8727
e2f8a0fbf738
child 8864
4a0f7105dbd8
--- a/eric7/Preferences/ConfigurationPages/InterfacePage.py	Wed Nov 03 19:45:20 2021 +0100
+++ b/eric7/Preferences/ConfigurationPages/InterfacePage.py	Wed Nov 03 20:02:41 2021 +0100
@@ -224,7 +224,7 @@
         Private method to populate the style combo box.
         """
         curStyle = Preferences.getUI("Style")
-        styles = sorted(list(QStyleFactory.keys()))
+        styles = sorted(QStyleFactory.keys())
         self.styleComboBox.addItem(self.tr('System'), "System")
         for style in styles:
             self.styleComboBox.addItem(style, style)
@@ -257,7 +257,7 @@
                         "Translate this with your language") +
                     " ({0})".format(locale)
                 )
-        localeList = sorted(list(locales.keys()))
+        localeList = sorted(locales.keys())
         try:
             uiLanguage = Preferences.getUILanguage()
             if uiLanguage == "None" or uiLanguage is None:

eric ide

mercurial