gnunetbib

Bibliography (BibTeX, based on AnonBib)
Log | Files | Refs | README | LICENSE

commit 543bde4eb9a7367e01b72ebd83b8cc289d152a04
parent 5eda5b72122e27a9f342d5d7154c81bbefea4666
Author: Nils Gillmann <ng0@n0.is>
Date:   Mon,  8 Oct 2018 13:23:52 +0000

config.py: style.

Signed-off-by: Nils Gillmann <ng0@n0.is>

Diffstat:
Mconfig.py | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/config.py b/config.py @@ -1,4 +1,5 @@ # Copyright 2003-2006, Nick Mathewson. See LICENSE for licensing info. +# Copyright 2018 Nils Gillmann. import re @@ -17,13 +18,16 @@ for _k in _KEYS: del _k def load(cfgFile): + """ + Load config FILE + """ mod = {} execfile(cfgFile, mod) for _k in _KEYS: try: globals()[_k] = mod[_k] except KeyError: - raise KeyError("Configuration option %s is missing"%_k) + raise KeyError("Configuration option %s is missing" % _k) INITIAL_STRINGS.update(_EXTRA_INITIAL_STRINGS) AUTHOR_RE_LIST[:] = [ @@ -39,7 +43,7 @@ def load(cfgFile): ] _EXTRA_INITIAL_STRINGS = { - # MONTHS + # Months 'jan' : 'January', 'feb' : 'February', 'mar' : 'March', 'apr' : 'April', 'may' : 'May', 'jun' : 'June',