Revision 9eeb0aa5 autotools/convert-constants
b/autotools/convert-constants | ||
---|---|---|
29 | 29 |
from ganeti import constants |
30 | 30 |
from ganeti import luxi |
31 | 31 |
from ganeti import qlang |
32 |
from ganeti import _autoconf |
|
33 |
|
|
32 | 34 |
|
33 | 35 |
#: Constant name regex |
34 | 36 |
CONSTANT_RE = re.compile("^[A-Z][A-Z0-9_-]+$") |
... | ... | |
46 | 48 |
# have strings instead of easily looked-up names. |
47 | 49 |
IGNORED_DECL_NAMES = ["DEFAULT_ENABLED_HYPERVISOR"] |
48 | 50 |
|
51 |
|
|
49 | 52 |
def NameRules(name): |
50 | 53 |
"""Converts the upper-cased Python name to Haskell camelCase. |
51 | 54 |
|
... | ... | |
289 | 292 |
print Convert(constants, "") |
290 | 293 |
print Convert(luxi, "luxi") |
291 | 294 |
print Convert(qlang, "qlang") |
295 |
print Convert(_autoconf, "autoconf") |
|
292 | 296 |
|
293 | 297 |
|
294 | 298 |
if __name__ == "__main__": |
Also available in: Unified diff