Skip to content

Commit

Permalink
updated CHANGELOG and version
Browse files Browse the repository at this point in the history
  • Loading branch information
darthbear committed May 6, 2016
1 parent f311fba commit b4273f3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Changelog

# Version 0.3.xx (TBA)
# Version 0.3.26

* Implemented self-referential subsitutions
* Implemented self-referential substitutions and +=. PR [#81]

# Version 0.3.25

Expand Down
6 changes: 3 additions & 3 deletions pyhocon/config_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def _fixup_self_references(config):
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)
_, _, current_item = ConfigParser._do_substitute(substitution, value)
previous_item = current_item

if len(history) == 1: # special case, when self optional referencing without existing
Expand Down Expand Up @@ -408,8 +408,8 @@ def resolve_substitutions(config):
if not is_optional_resolved and substitution.optional:
resolved_value = None

unresolved, new_subsitutions, _ = ConfigParser._do_substitute(substitution, resolved_value, is_optional_resolved)
substitutions.extend(new_subsitutions)
unresolved, new_substitutions, _ = ConfigParser._do_substitute(substitution, resolved_value, is_optional_resolved)
substitutions.extend(new_substitutions)
substitutions.remove(substitution)

ConfigParser._final_fixup(config)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def run_tests(self):

setup(
name='pyhocon',
version='0.3.25',
version='0.3.26',
description='HOCON parser for Python',
long_description='pyhocon is a HOCON parser for Python. Additionally we provide a tool (pyhocon) to convert any HOCON '
'content into json, yaml and properties format.',
Expand Down

0 comments on commit b4273f3

Please sign in to comment.