logilab-common #24450 optik_ext import breaks optparse [resolved]
after optik_ext is imported, some stuff is overridden in the optparse module and this breaks help generation of "normal" optparse scripts: File "/usr/lib/python2.5/optparse.py", line 1617, in format_option_help result.append(OptionContainer.format_option_help(self, formatter)) File "/home/alf/cubicweb/logilab/common/optik_ext.py", line 277, in format_option_help if option.level <= outputlevel and not option.help is SUPPRESS_HELP: AttributeError: Option instance has no attribute 'level' | |
priority | important |
---|---|
type | bug |
done in | 0.50.2 |
load | 0.200 |
load left | 0.000 |
closed by | <not specified> |
Comments
-
2010/05/18 02:19, written by anon
-
2010/05/18 02:38, written by anon
-
2010/05/18 02:42, written by anon
add commentSame issue with paver and logilab_common-0.50.1:
Basic NOP
... in ./eggs/logilab_common-0.50.1-py2.6.egg/logilab/common/optik_ext.py
Changed line 264 from:
To:
Turns out afayolle already fixed this in http://www.logilab.org/cgi-bin/hgwebdir.cgi/logilab/common/rev/d706bd7eabcf .
Any ETA on 0.50.2?