summaryrefslogtreecommitdiff
path: root/heatclient/common
diff options
context:
space:
mode:
authorjacky06 <zhang.min@99cloud.net>2019-06-19 01:04:10 +0800
committerjacky06 <zhang.min@99cloud.net>2019-12-05 11:05:53 +0800
commitfcc7befd0fed57165b9ce039f1c3c8fb6e39c0c2 (patch)
tree48584b0e94243f3aff26ec0c01fc37388322da94 /heatclient/common
parentee0e186e4cd482fa5d4d5ad1e145e95cfb12516f (diff)
downloadpython-heatclient-fcc7befd0fed57165b9ce039f1c3c8fb6e39c0c2.tar.gz
Cleanup of .keys() from dict_object.keys() *in* operator
Change-Id: I49bb58e5dc2618ee02424315e4e3bf1057a77068
Diffstat (limited to 'heatclient/common')
-rw-r--r--heatclient/common/base.py2
-rw-r--r--heatclient/common/utils.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/heatclient/common/base.py b/heatclient/common/base.py
index cca6a43..e881511 100644
--- a/heatclient/common/base.py
+++ b/heatclient/common/base.py
@@ -435,7 +435,7 @@ class Resource(object):
def __repr__(self):
reprkeys = sorted(k
- for k in self.__dict__.keys()
+ for k in self.__dict__
if k[0] != '_' and k != 'manager')
info = ", ".join("%s=%s" % (k, getattr(self, k)) for k in reprkeys)
class_name = reflection.get_class_name(self, fully_qualified=False)
diff --git a/heatclient/common/utils.py b/heatclient/common/utils.py
index c9d1ec0..ae32514 100644
--- a/heatclient/common/utils.py
+++ b/heatclient/common/utils.py
@@ -170,7 +170,7 @@ def print_dict(d, formatters=None):
caching=False, print_empty=False)
pt.align = 'l'
- for field in d.keys():
+ for field in d:
if field in formatters:
pt.add_row([field, formatters[field](d[field])])
else: