constance

Scripts for generating (an earlier obsolete version of) my personal web site
git clone https://code.djc.id.au/git/constance/
commit f37659cbda2e4586716f12dadf21f634ebd28605
parent 521f83dcbd52729eaa30bdff4b8c08e8cd25f265
Author: Sam Kingston <sam@sjkwi.com.au>
Date:   Sun, 10 Oct 2010 20:41:29 +1000

allow_no_value breaks compat with python 2.6, so remove it

Diffstat:
Mconstance.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/constance.py b/constance.py
@@ -60,7 +60,7 @@ def main():
 
     # populate config from default location (which would have been
     # overidden by --config above, if given)
-    config = SafeConfigParser(allow_no_value=True)
+    config = SafeConfigParser()
     with open(options.config, 'r') as fp:
         config.readfp(fp)
     template_config = dict(config.items('template'))
@@ -76,7 +76,7 @@ def main():
             template_config=template_config)
 
     rl_path = config.get('paths', 'reading_log')
-    if rl_path is not None and rl_path != '': # XXX allow_no_value is broken?
+    if rl_path is not None and rl_path != '':
         reading_entries = reading.generate(rl_path, xslt, 
                 template_config=template_config)
     else: