[PATCH] setting raw in get_items
vijaykumar9597 at gmail.com
vijaykumar9597 at gmail.com
Tue Apr 10 21:04:02 UTC 2018
From: thelunatic <vijaykumar9597 at gmail.com>
---
rtemstoolkit/configuration.py | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/rtemstoolkit/configuration.py b/rtemstoolkit/configuration.py
index 10d97e5..53ad79b 100644
--- a/rtemstoolkit/configuration.py
+++ b/rtemstoolkit/configuration.py
@@ -98,7 +98,7 @@ class configuration:
def get_items(self, section, err = True, flatten = True):
try:
items = []
- for name, key in self.config.items(section):
+ for name, key in self.config.items(section,raw=True):
if flatten:
items += [(name, key.replace(os.linesep, ' '))]
else:
@@ -117,7 +117,7 @@ class configuration:
def get_item_names(self, section, err = True):
try:
- return [item[0] for item in self.config.items(section)]
+ return [item[0] for item in self.config.items(section,raw=True)]
except:
if err:
raise error.general('config: section "%s" not found' % (section))
--
2.14.3
More information about the devel
mailing list