No ned to explicitly declare sets
This commit is contained in:
+2
-2
@@ -41,7 +41,7 @@ logger = logging.getLogger(__name__)
|
|||||||
|
|
||||||
class NWIndex():
|
class NWIndex():
|
||||||
|
|
||||||
VALID_KEYS = set([
|
VALID_KEYS = {
|
||||||
nwKeyWords.TAG_KEY,
|
nwKeyWords.TAG_KEY,
|
||||||
nwKeyWords.PLOT_KEY,
|
nwKeyWords.PLOT_KEY,
|
||||||
nwKeyWords.POV_KEY,
|
nwKeyWords.POV_KEY,
|
||||||
@@ -51,7 +51,7 @@ class NWIndex():
|
|||||||
nwKeyWords.OBJECT_KEY,
|
nwKeyWords.OBJECT_KEY,
|
||||||
nwKeyWords.ENTITY_KEY,
|
nwKeyWords.ENTITY_KEY,
|
||||||
nwKeyWords.CUSTOM_KEY
|
nwKeyWords.CUSTOM_KEY
|
||||||
])
|
}
|
||||||
TAG_CLASS = {
|
TAG_CLASS = {
|
||||||
nwKeyWords.CHAR_KEY : nwItemClass.CHARACTER,
|
nwKeyWords.CHAR_KEY : nwItemClass.CHARACTER,
|
||||||
nwKeyWords.POV_KEY : nwItemClass.CHARACTER,
|
nwKeyWords.POV_KEY : nwItemClass.CHARACTER,
|
||||||
|
|||||||
+8
-8
@@ -45,7 +45,7 @@ class OptionState():
|
|||||||
|
|
||||||
self.theState = {}
|
self.theState = {}
|
||||||
self.validMap = {
|
self.validMap = {
|
||||||
"GuiSession": set([
|
"GuiSession": {
|
||||||
"widthCol0",
|
"widthCol0",
|
||||||
"widthCol1",
|
"widthCol1",
|
||||||
"widthCol2",
|
"widthCol2",
|
||||||
@@ -53,11 +53,11 @@ class OptionState():
|
|||||||
"sortOrder",
|
"sortOrder",
|
||||||
"hideZeros",
|
"hideZeros",
|
||||||
"hideNegative",
|
"hideNegative",
|
||||||
]),
|
},
|
||||||
"GuiDocSplit": set([
|
"GuiDocSplit": {
|
||||||
"spLevel",
|
"spLevel",
|
||||||
]),
|
},
|
||||||
"GuiBuildNovel": set([
|
"GuiBuildNovel": {
|
||||||
"winWidth",
|
"winWidth",
|
||||||
"winHeight",
|
"winHeight",
|
||||||
"addNovel",
|
"addNovel",
|
||||||
@@ -72,12 +72,12 @@ class OptionState():
|
|||||||
"incComments",
|
"incComments",
|
||||||
"incKeywords",
|
"incKeywords",
|
||||||
"incBodyText",
|
"incBodyText",
|
||||||
]),
|
},
|
||||||
"GuiOutline": set([
|
"GuiOutline": {
|
||||||
"headerOrder",
|
"headerOrder",
|
||||||
"columnWidth",
|
"columnWidth",
|
||||||
"columnHidden",
|
"columnHidden",
|
||||||
]),
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user