Fix compatibility issue between pykwalify and ruamel.yaml 0.15.52 (#85).

This commit is contained in:
Dan Helfman 2018-08-11 13:59:27 -07:00
parent ece5608677
commit 7b77fd2510
3 changed files with 7 additions and 3 deletions

4
NEWS
View File

@ -1,3 +1,7 @@
1.2.2
* #85: Fix compatibility issue between pykwalify and ruamel.yaml 0.15.52, which manifested in
borgmatic as a pykwalify RuleError.
1.2.1
* Skip before/after backup hooks when only doing --prune, --check, --list, and/or --info.
* #71: Support for XDG_CONFIG_HOME environment variable for specifying alternate user ~/.config/

View File

@ -74,8 +74,8 @@ def parse_configuration(config_filename, schema_filename):
logging.getLogger('pykwalify').setLevel(logging.ERROR)
try:
config = yaml.round_trip_load(open(config_filename))
schema = yaml.round_trip_load(open(schema_filename))
config = yaml.safe_load(open(config_filename))
schema = yaml.safe_load(open(schema_filename))
except yaml.error.YAMLError as error:
raise Validation_error(config_filename, (str(error),))

View File

@ -1,7 +1,7 @@
from setuptools import setup, find_packages
VERSION = '1.2.1'
VERSION = '1.2.2'
setup(