Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Commit

Permalink
[All] Python 3 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Rey committed Oct 17, 2018
1 parent d435e4c commit d01c57a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]
### Fixed
- Python 3 compatibility

## [1.0.2] - 2018-06-05
### Added
Expand Down
4 changes: 2 additions & 2 deletions templates/config/_macros.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{%- if parameter is string or parameter is number -%}
{{ parameter }}{{ '\n' }}
{%- elif parameter is mapping -%}
{%- for parameter_key, parameter_value in parameter.iteritems() -%}
{%- for parameter_key, parameter_value in parameter.items() -%}
{%- if parameter_key not in exclusions -%}
{{ _config_parameter(parameter_key, parameter_value, indent) }}{% if not outer_loop.last %} {% endif %}
{%- endif -%}
Expand All @@ -17,7 +17,7 @@
{%- set vars = {'values': []} -%}
{%- for parameter in parameters -%}
{%- if parameter is mapping -%}
{%- for parameter_key, parameter_value in parameter.iteritems() -%}
{%- for parameter_key, parameter_value in parameter.items() -%}
{%- if parameter_key == key -%}
{%- if vars.update({'values': vars['values'] + [parameter_value]}) -%}{%- endif -%}
{%- endif -%}
Expand Down

0 comments on commit d01c57a

Please sign in to comment.