Fix various warnings.
This commit is contained in:
parent
1bc71e1c5d
commit
984702b3b2
|
@ -60,9 +60,9 @@ def _make_check_flags(checks, check_last=None, prefix=None):
|
|||
last_flags = ()
|
||||
prefix_flags = ()
|
||||
if check_last:
|
||||
logger.warn('Ignoring check_last option, as "archives" is not in consistency checks.')
|
||||
logger.warning('Ignoring check_last option, as "archives" is not in consistency checks.')
|
||||
if prefix:
|
||||
logger.warn('Ignoring consistency prefix option, as "archives" is not in consistency checks.')
|
||||
logger.warning('Ignoring consistency prefix option, as "archives" is not in consistency checks.')
|
||||
|
||||
if set(DEFAULT_CHECKS).issubset(set(checks)):
|
||||
return last_flags + prefix_flags
|
||||
|
|
|
@ -8,7 +8,7 @@ from borgmatic.config import legacy as module
|
|||
|
||||
def test_parse_section_options_with_punctuation_should_return_section_options():
|
||||
parser = module.RawConfigParser()
|
||||
parser.readfp(StringIO('[section]\nfoo: {}\n'.format(string.punctuation)))
|
||||
parser.read_file(StringIO('[section]\nfoo: {}\n'.format(string.punctuation)))
|
||||
|
||||
section_format = module.Section_format(
|
||||
'section',
|
||||
|
|
Loading…
Reference in a new issue