diff options
author | BonfaceKilz | 2020-07-24 02:15:59 +0300 |
---|---|---|
committer | BonfaceKilz | 2020-07-24 03:47:45 +0300 |
commit | ef62b2c146bb1c8960a3ee700c544d61519998b2 (patch) | |
tree | 41a43feeacf68445915badf01660ee068cf39a86 | |
parent | 09bc3137328fbefe41044b5124f3c6a7abaa8982 (diff) | |
download | genenetwork2-ef62b2c146bb1c8960a3ee700c544d61519998b2.tar.gz |
Remove unreachable conditional
* wqflask/base/GeneralObject.py(__getattr__): remove if statement that is
unreachable
-rw-r--r-- | wqflask/base/GeneralObject.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/wqflask/base/GeneralObject.py b/wqflask/base/GeneralObject.py index 37bfeda3..0fccaab3 100644 --- a/wqflask/base/GeneralObject.py +++ b/wqflask/base/GeneralObject.py @@ -43,10 +43,7 @@ class GeneralObject: return getattr(self, key) def __getattr__(self, key): - if key in self.__dict__.keys(): - return self.__dict__[key] - else: - return eval("self.__dict__.%s" % key) + return eval("self.__dict__.%s" % key) def __len__(self): return len(self.__dict__) - 1 |