Revision 73b63a40 autotools/convert-constants

b/autotools/convert-constants
26 26
import types
27 27

  
28 28
from ganeti import _autoconf
29
from ganeti import _constants
29 30
from ganeti import compat
30 31
from ganeti import constants
31 32
from ganeti import errors
......
287 288
  """
288 289
  lines = [""]
289 290

  
290
  all_items = dict((name, getattr(module, name)) for name in dir(module))
291
  all_items = dict((name, getattr(module, name))
292
                   for name in dir(module)
293
                   if name not in dir(_constants))
291 294

  
292 295
  for name in sorted(all_items.keys()):
293 296
    value = all_items[name]

Also available in: Unified diff