chiark
/
gitweb
/
~mdw
/
hippotat
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
move cfg_get_raw into hippotatlib
[hippotat]
/
hippotatlib
/
__init__.py
diff --git
a/hippotatlib/__init__.py
b/hippotatlib/__init__.py
index a4e7b693404f8f58e4365b1fa63cc670320191d3..7781c1f54c30b241a5afbec67f063ce2a68dd73c 100644
(file)
--- a/
hippotatlib/__init__.py
+++ b/
hippotatlib/__init__.py
@@
-484,6
+484,10
@@
def cfg_search_section(key,sections):
return section
raise NoOptionError(key, repr(sections))
return section
raise NoOptionError(key, repr(sections))
+def cfg_get_raw(*args, **kwargs):
+ # for passing to cfg_search
+ return cfg.get(*args, raw=True, **kwargs)
+
def cfg_search(getter,key,sections):
section = cfg_search_section(key,sections)
return getter(section, key)
def cfg_search(getter,key,sections):
section = cfg_search_section(key,sections)
return getter(section, key)