aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorBonfaceKilz2020-07-24 02:15:59 +0300
committerBonfaceKilz2020-07-24 03:47:45 +0300
commitef62b2c146bb1c8960a3ee700c544d61519998b2 (patch)
tree41a43feeacf68445915badf01660ee068cf39a86 /wqflask
parent09bc3137328fbefe41044b5124f3c6a7abaa8982 (diff)
downloadgenenetwork2-ef62b2c146bb1c8960a3ee700c544d61519998b2.tar.gz
Remove unreachable conditional
* wqflask/base/GeneralObject.py(__getattr__): remove if statement that is unreachable
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/base/GeneralObject.py5
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