Fix various warnings.
This commit is contained in:
parent
1bc71e1c5d
commit
984702b3b2
3 changed files with 4 additions and 4 deletions
|
@ -60,9 +60,9 @@ def _make_check_flags(checks, check_last=None, prefix=None):
|
||||||
last_flags = ()
|
last_flags = ()
|
||||||
prefix_flags = ()
|
prefix_flags = ()
|
||||||
if check_last:
|
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:
|
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)):
|
if set(DEFAULT_CHECKS).issubset(set(checks)):
|
||||||
return last_flags + prefix_flags
|
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():
|
def test_parse_section_options_with_punctuation_should_return_section_options():
|
||||||
parser = module.RawConfigParser()
|
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_format = module.Section_format(
|
||||||
'section',
|
'section',
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -1,7 +1,7 @@
|
||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
|
|
||||||
|
|
||||||
VERSION = '1.2.4'
|
VERSION = '1.2.5'
|
||||||
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
|
|
Loading…
Reference in a new issue