summaryrefslogtreecommitdiff
path: root/optparser.py
diff options
context:
space:
mode:
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>2006-08-09 11:43:27 +0200
committerAdrien Di Mascio <Adrien.DiMascio@logilab.fr>2006-08-09 11:43:27 +0200
commitd98e6479c71548cec1f3101f7b7b287914b5a6b1 (patch)
tree079b0969c03ac57482e7971cfa17bb8320bd64d8 /optparser.py
parent9c9acca225efc02ed2dab4d93ab8b9c031a8e806 (diff)
downloadlogilab-common-d98e6479c71548cec1f3101f7b7b287914b5a6b1.tar.gz
avoid infinite recursion in XXXMixIn.load_defaults() by renaming OptionsMananerMixIn.load_defaults into OptionsManagerMixIn.load_provider_defaults
Diffstat (limited to 'optparser.py')
-rw-r--r--optparser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/optparser.py b/optparser.py
index 7184993..f589ead 100644
--- a/optparser.py
+++ b/optparser.py
@@ -69,7 +69,7 @@ class OptionParser(optparse.OptionParser):
# optparse inserts self.description between usage and options help
self.description = help
if isinstance(mod_or_f, str):
- exec('from %s import run, add_options'%module)
+ exec 'from %s import run, add_options' % mod_or_f
else:
run, add_options = mod_or_f
add_options(self)