migration.py
brancholdstable
changeset 7083 b8e35cde46e9
parent 6732 f63cef610b97
child 7537 1af162bd78b8
equal deleted inserted replaced
7074:e4580e5f0703 7083:b8e35cde46e9
   432         show_diffs(configfile, newconfig, askconfirm=self.confirm is not yes)
   432         show_diffs(configfile, newconfig, askconfirm=self.confirm is not yes)
   433         os.close(fd)
   433         os.close(fd)
   434         if exists(newconfig):
   434         if exists(newconfig):
   435             os.unlink(newconfig)
   435             os.unlink(newconfig)
   436 
   436 
       
   437     # these are overridden by set_log_methods below
       
   438     # only defining here to prevent pylint from complaining
       
   439     info = warning = error = critical = exception = debug = lambda msg,*a,**kw: None
   437 
   440 
   438 from logging import getLogger
   441 from logging import getLogger
   439 from cubicweb import set_log_methods
   442 from cubicweb import set_log_methods
   440 set_log_methods(MigrationHelper, getLogger('cubicweb.migration'))
   443 set_log_methods(MigrationHelper, getLogger('cubicweb.migration'))
   441 
   444