diff options
author | Cyril Roelandt <cyril.roelandt@enovance.com> | 2014-02-12 02:32:18 +0100 |
---|---|---|
committer | Cyril Roelandt <cyril.roelandt@enovance.com> | 2014-02-12 02:32:18 +0100 |
commit | c7c96995e6d6621b0e0f08c74fa426349275c127 (patch) | |
tree | 0158516993f4ee2762cdf8fb3737a8f165a877e6 /heatclient | |
parent | 448d303790167abc7239db60408888f3d209ac6c (diff) | |
download | python-heatclient-c7c96995e6d6621b0e0f08c74fa426349275c127.tar.gz |
get_file_contents: use six.itervalues() instead of dict.itervalues()
This is compatible with both Python 2 and 3.
Change-Id: I7429efe3ee5fd1dabf9bb607dcd3860057a8569f
Diffstat (limited to 'heatclient')
-rw-r--r-- | heatclient/common/template_utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/heatclient/common/template_utils.py b/heatclient/common/template_utils.py index ccf5c37..3debf28 100644 --- a/heatclient/common/template_utils.py +++ b/heatclient/common/template_utils.py @@ -78,7 +78,7 @@ def get_file_contents(from_data, files, base_url=None, if recurse_if and recurse_if(from_data): if isinstance(from_data, dict): - recurse_data = from_data.itervalues() + recurse_data = six.itervalues(from_data) else: recurse_data = from_data for value in recurse_data: |