equal
deleted
inserted
replaced
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 |