summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rwxr-xr-xcommon/misc.py3
-rw-r--r--common/strings.py4
2 files changed, 3 insertions, 4 deletions
diff --git a/common/misc.py b/common/misc.py
index e0df882..abcc05e 100755
--- a/common/misc.py
+++ b/common/misc.py
@@ -46,8 +46,7 @@ def validate(keyword, target):
return True
# if the target could not be validated until this return False
- else:
- return False
+ return False
#
diff --git a/common/strings.py b/common/strings.py
index faac65c..7a10471 100644
--- a/common/strings.py
+++ b/common/strings.py
@@ -33,9 +33,9 @@ class StaticAnswers:
# if specific keyword in referenced return that
if key in self.keywords.keys():
return self.keywords[key]
+
# in any other case return the whole dict
- else:
- return self.keywords["keywords"]
+ return self.keywords["keywords"]
def gen_help(self):
helpdoc = "\n".join(['%s' % value for (_, value) in self.helpfile.items()])