No ned to explicitly declare sets

This commit is contained in:
Veronica K. B. Olsen
2020-06-12 17:07:55 +02:00
parent 2c48e02558
commit 8e38637250
2 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -41,7 +41,7 @@ logger = logging.getLogger(__name__)
class NWIndex():
VALID_KEYS = set([
VALID_KEYS = {
nwKeyWords.TAG_KEY,
nwKeyWords.PLOT_KEY,
nwKeyWords.POV_KEY,
@@ -51,7 +51,7 @@ class NWIndex():
nwKeyWords.OBJECT_KEY,
nwKeyWords.ENTITY_KEY,
nwKeyWords.CUSTOM_KEY
])
}
TAG_CLASS = {
nwKeyWords.CHAR_KEY : nwItemClass.CHARACTER,
nwKeyWords.POV_KEY : nwItemClass.CHARACTER,
+8 -8
View File
@@ -45,7 +45,7 @@ class OptionState():
self.theState = {}
self.validMap = {
"GuiSession": set([
"GuiSession": {
"widthCol0",
"widthCol1",
"widthCol2",
@@ -53,11 +53,11 @@ class OptionState():
"sortOrder",
"hideZeros",
"hideNegative",
]),
"GuiDocSplit": set([
},
"GuiDocSplit": {
"spLevel",
]),
"GuiBuildNovel": set([
},
"GuiBuildNovel": {
"winWidth",
"winHeight",
"addNovel",
@@ -72,12 +72,12 @@ class OptionState():
"incComments",
"incKeywords",
"incBodyText",
]),
"GuiOutline": set([
},
"GuiOutline": {
"headerOrder",
"columnWidth",
"columnHidden",
]),
},
}
return