def enable_dbc(*args):
 if (not ENABLE_DBC):
  return False
 try:
  from logilab.aspects.weaver import weaver
  from logilab.aspects.lib.contracts import ContractAspect
 except ImportError:
  sys.stderr.write('Warning: logilab.aspects is not available. Contracts disabled.')
  return False
 for arg in args:
  weaver.weave_module(arg, ContractAspect)
 return True

def enable_dbc ( * args ) : if ( not ENABLE_DBC ) : return False try : from logilab . aspects . weaver import weaver from logilab . aspects . lib . contracts import ContractAspect except ImportError : sys . stderr . write ( 'Warning: logilab.aspects is not available. Contracts disabled.' ) return False for arg in args : weaver . weave_module ( arg , ContractAspect ) return True
without arguments .