Skip to content

Commit

Permalink
Refactor code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Quving committed Apr 4, 2020
1 parent b020f78 commit 0557bb5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kubenode.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ def from_dict(kubenode_json):
)

def to_dict(self):
attrs = {str(i): getattr(self, i) for i in dir(self) if not i.startswith('__') and not callable(getattr(self, i))}
attrs = {str(i): getattr(self, i) for i in dir(self) if
not i.startswith('__') and not callable(getattr(self, i))}
return attrs

def __str__(self):
Expand Down

0 comments on commit 0557bb5

Please sign in to comment.