Revision 3a036be7 autotools/convert-constants
b/autotools/convert-constants | ||
---|---|---|
25 | 25 |
import re |
26 | 26 |
import types |
27 | 27 |
|
28 |
from ganeti import _constants |
|
29 | 28 |
from ganeti import compat |
30 |
from ganeti import constants |
|
31 | 29 |
from ganeti import errors |
32 | 30 |
from ganeti import luxi |
33 | 31 |
from ganeti import qlang |
... | ... | |
288 | 286 |
lines = [""] |
289 | 287 |
|
290 | 288 |
all_items = dict((name, getattr(module, name)) |
291 |
for name in dir(module) |
|
292 |
if name not in dir(_constants)) |
|
289 |
for name in dir(module)) |
|
293 | 290 |
|
294 | 291 |
for name in sorted(all_items.keys()): |
295 | 292 |
value = all_items[name] |
... | ... | |
302 | 299 |
|
303 | 300 |
|
304 | 301 |
def main(): |
305 |
print Convert(constants, "") |
|
306 | 302 |
print Convert(luxi, "luxi") |
307 | 303 |
print Convert(qlang, "qlang") |
308 | 304 |
print Convert(errors, "errors") |
Also available in: Unified diff