worked through a couple todos, removed usage of eval within parsing xml files
This commit is contained in:
parent
e4b280196b
commit
8612c73d49
8 changed files with 76 additions and 58 deletions
|
@ -49,6 +49,8 @@ class Conf(object):
|
|||
Provides a configuration object.
|
||||
"""
|
||||
|
||||
template = Template("")
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
"""
|
||||
Create a Conf instance.
|
||||
|
@ -64,7 +66,6 @@ class Conf(object):
|
|||
:return: string representation
|
||||
:rtype: str
|
||||
"""
|
||||
# TODO: seems like an error here
|
||||
tmp = self.template.substitute(**self.kwargs)
|
||||
if tmp[-1] == "\n":
|
||||
tmp = tmp[:-1]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue