aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristof Damian <christof@damian.net>2015-09-29 09:39:17 +0200
committerChristof Damian <christof@damian.net>2015-09-29 09:39:17 +0200
commit251d937f60aef57f8fa9f01594e91add6ec4d791 (patch)
tree6bae3230c4ea80385ed717da221ae5ff9d04722b
parent584cace6b514a9db647b99dec3be4c864cda4579 (diff)
downloadscudcloud-251d937f60aef57f8fa9f01594e91add6ec4d791.zip
scudcloud-251d937f60aef57f8fa9f01594e91add6ec4d791.tar.gz
scudcloud-251d937f60aef57f8fa9f01594e91add6ec4d791.tar.bz2
change condition to be more readable and tolerant
-rw-r--r--scudcloud-1.0/lib/speller.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scudcloud-1.0/lib/speller.py b/scudcloud-1.0/lib/speller.py
index b304f01..11f365e 100644
--- a/scudcloud-1.0/lib/speller.py
+++ b/scudcloud-1.0/lib/speller.py
@@ -24,7 +24,7 @@ class Speller(QObject):
return
dictionaryPath = self.getDictionaryPath()
language = self.parseLanguage(dictionaryPath)
- if dictionaryPath=='' or language is None:
+ if not dictionaryPath or language is None:
return
self.hunspell = hunspell.HunSpell(dictionaryPath + ".dic", dictionaryPath + ".aff")
self.initialized = True