summaryrefslogtreecommitdiffstats
path: root/common/strings.py
diff options
context:
space:
mode:
authornico <nico@magicbroccoli.de>2018-11-09 19:42:21 +0100
committernico <nico@magicbroccoli.de>2018-11-09 19:42:21 +0100
commitcd1442e216abf564daceaef5fe45555587eef69b (patch)
treeec8e7c27707619c439bd14396db3b1a9e15387dc /common/strings.py
parentd1b8090ee8f773628cc5eb04971b575debfec249 (diff)
code quality improvements
- remove unused variable * better iteration of xdata nodes - removed unnecessary else
Diffstat (limited to 'common/strings.py')
-rw-r--r--common/strings.py4
1 files changed, 2 insertions, 2 deletions
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()])