From 984702b3b2d789510b8f6c83e2313fe8929e505b Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Sat, 29 Sep 2018 15:06:57 -0700 Subject: [PATCH] Fix various warnings. --- borgmatic/borg/check.py | 4 ++-- borgmatic/tests/integration/config/test_legacy.py | 2 +- setup.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/borgmatic/borg/check.py b/borgmatic/borg/check.py index 04d1519..04e5939 100644 --- a/borgmatic/borg/check.py +++ b/borgmatic/borg/check.py @@ -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 diff --git a/borgmatic/tests/integration/config/test_legacy.py b/borgmatic/tests/integration/config/test_legacy.py index 13ee654..0f920fe 100644 --- a/borgmatic/tests/integration/config/test_legacy.py +++ b/borgmatic/tests/integration/config/test_legacy.py @@ -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', diff --git a/setup.py b/setup.py index dfaa982..355f762 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ from setuptools import setup, find_packages -VERSION = '1.2.4' +VERSION = '1.2.5' setup(