Skip to content
Snippets Groups Projects
Commit ed215649 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

fix some dict.keys()

parent 3fdefe20
No related branches found
No related tags found
No related merge requests found
......@@ -635,7 +635,7 @@ class Config:
def get(self, optname=None):
if not optname:
return self.__options[1].keys()
return list(self.__options[1].keys())
if optname not in self.__options[1]:
return None
return self.__options[1][optname]
......@@ -710,7 +710,7 @@ class Config:
return None
dict_ = self.__options_per_key[optname][1]
if not key:
return dict_.keys()
return list(dict_.keys())
if key not in dict_:
if subname in self.__options_per_key[optname][0]:
return self.__options_per_key[optname][0][subname][1]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment