Commit d725f1c2 authored by Devaev Maxim's avatar Devaev Maxim

None value in PlainEditor.setValue() works same as []

parent f114c6db
......@@ -95,7 +95,9 @@ class PlainEditor(object) :
if self.__config_file_path == None :
raise NotAssociated("This parser is not associated with config")
if not type(values_list).__name__ in ("list", "tuple") :
if values_list == None :
values_list = []
elif not type(values_list).__name__ in ("list", "tuple") :
values_list = [values_list]
last_variable_index = len(self.__config_file_data_list) - 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment