Skip to content

Commit

Permalink
:fix: UTs
Browse files Browse the repository at this point in the history
  • Loading branch information
b3j0f committed Oct 30, 2015
1 parent 3775f33 commit 8fe24b3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions b3j0f/conf/configurable/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@

__all__ = ['Configurable', 'conf_paths', 'add_category']

from b3j0f.conf.configurable.core import Configurable
from b3j0f.conf.configurable.decorator import conf_paths, add_category
from .core import Configurable
from .decorator import conf_paths, add_category
2 changes: 2 additions & 0 deletions b3j0f/conf/model/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ def unify(self, copy=False):

for param in category:

pvalue = None

try: # get value
pvalue = param.value

Expand Down
4 changes: 1 addition & 3 deletions b3j0f/conf/model/parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@

from re import compile as re_compile

from parser import ParserError


class Parameter(object):
"""Parameter identified among a category by its name.
Expand Down Expand Up @@ -214,7 +212,7 @@ def value(self):
except Exception as ex:

self._error = ex
raise ParserError(
raise Parameter.Error(
'Impossible to parse value "{0}"" with {1}.'.format(
self._svalue, self.parser
)
Expand Down

0 comments on commit 8fe24b3

Please sign in to comment.