diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-03-20 10:33:10 -0400 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-03-20 10:33:10 -0400 |
commit | bc637ec80926e854fd9c6cfb31e74aa84772a977 (patch) | |
tree | d92bf9b226ae921f53582ad8366781e36db1eefd /barbicanclient/base.py | |
parent | cc78b2a2a8c08322a64fa56ce17d06628b18485a (diff) | |
download | python-barbicanclient-bc637ec80926e854fd9c6cfb31e74aa84772a977.tar.gz |
python 3 support
Change-Id: If4bc02d103ed0daa54ba411199cdb0bac6ba3712
Diffstat (limited to 'barbicanclient/base.py')
-rw-r--r-- | barbicanclient/base.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/barbicanclient/base.py b/barbicanclient/base.py index 5e63f88..802a878 100644 --- a/barbicanclient/base.py +++ b/barbicanclient/base.py @@ -23,7 +23,8 @@ class BaseEntityManager(object): self.entity = entity def _remove_empty_keys(self, dictionary): - for k in dictionary.keys(): + copied_dict = dictionary.copy() + for k in copied_dict.keys(): if dictionary[k] is None: dictionary.pop(k) |