From fbe69049cf4293fd1a2f9ee04faea0662a165d5a Mon Sep 17 00:00:00 2001 From: Gilles Duboscq Date: Wed, 4 May 2016 16:42:33 +0200 Subject: [PATCH] Fix python 2.6 compatibility issue --- pyhocon/config_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyhocon/config_parser.py b/pyhocon/config_parser.py index 1e8d7985..e21b6275 100644 --- a/pyhocon/config_parser.py +++ b/pyhocon/config_parser.py @@ -306,7 +306,7 @@ def _fixup_self_references(config): continue # If value is present in latest version, don't do anything if prop_path[0] == key: if isinstance(previous_item, ConfigValues): # We hit a dead end, we cannot evaluate - raise ConfigSubstitutionException("Property {} cannot be substituted. Check for cycles.".format(substitution.variable)) + raise ConfigSubstitutionException("Property {variable} cannot be substituted. Check for cycles.".format(variable=substitution.variable)) value = previous_item if len(prop_path) == 1 else previous_item.get(".".join(prop_path[1:])) (_, _, current_item) = ConfigParser._do_substitute(substitution, value) previous_item = current_item