typo
This commit is contained in:
parent
d92d9e26e7
commit
eb8f585fe8
|
@ -355,7 +355,7 @@ class Config:
|
||||||
opt = self.__options_per_key[typename]
|
opt = self.__options_per_key[typename]
|
||||||
if opt[1].has_key(name):
|
if opt[1].has_key(name):
|
||||||
# we already have added group name before
|
# we already have added group name before
|
||||||
return 'you already have added %s before', % name
|
return 'you already have added %s before' % name
|
||||||
opt[1][name] = copy.deepcopy(opt[0])
|
opt[1][name] = copy.deepcopy(opt[0])
|
||||||
|
|
||||||
def del_per(self, typename, name): # per_group_of_option
|
def del_per(self, typename, name): # per_group_of_option
|
||||||
|
@ -377,7 +377,7 @@ class Config:
|
||||||
subobj = obj[subname]
|
subobj = obj[subname]
|
||||||
value = self.is_valid(subobj[OPT_TYPE], value)
|
value = self.is_valid(subobj[OPT_TYPE], value)
|
||||||
if value is None:
|
if value is None:
|
||||||
raise RuntimeError, '%s of %s cannot be none' % optname
|
raise RuntimeError, '%s of %s cannot be None' % optname
|
||||||
subobj[OPT_VAL] = value
|
subobj[OPT_VAL] = value
|
||||||
|
|
||||||
def get_per(self, optname, key = None, subname = None): # per_group_of_option
|
def get_per(self, optname, key = None, subname = None): # per_group_of_option
|
||||||
|
|
Loading…
Reference in New Issue