eric6/Preferences/__init__.py

changeset 8259
2bbec88047dd
parent 8243
cc717c2ae956
child 8265
0090cfa83159
--- a/eric6/Preferences/__init__.py	Wed Apr 21 17:56:12 2021 +0200
+++ b/eric6/Preferences/__init__.py	Wed Apr 21 19:40:50 2021 +0200
@@ -2318,10 +2318,7 @@
             editorLexerAssoc[key] = editorLexerAssocDefaults[key]
     else:
         for key in keyList:
-            if key in editorLexerAssocDefaults:
-                defaultValue = editorLexerAssocDefaults[key]
-            else:
-                defaultValue = ""
+            defaultValue = editorLexerAssocDefaults.get(key, "")
             editorLexerAssoc[key] = prefClass.settings.value(
                 "Editor/LexerAssociations/" + key, defaultValue)
         

eric ide

mercurial