migration.py
changeset 7109 611663348158
parent 7083 b8e35cde46e9
child 7537 1af162bd78b8
equal deleted inserted replaced
7077:784d6f300070 7109:611663348158
   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