We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5b73d7 commit 1618ce7Copy full SHA for 1618ce7
msgcheck.py
@@ -33,11 +33,11 @@
33
34
# enchant module is optional, spelling is checked on demand
35
# (argument -s/--spell)
36
-enchant_found = False
+ENCHANT_FOUND = False
37
try:
38
import enchant
39
from enchant.checker import SpellChecker
40
- enchant_found = True
+ ENCHANT_FOUND = True
41
except:
42
pass
43
@@ -466,7 +466,7 @@ def main():
466
467
# exit now with error if spelling was asked but python enchant module was
468
# not found
469
- if args.spelling and not enchant_found:
+ if args.spelling and not ENCHANT_FOUND:
470
print('Error: "enchant" module was not found to check spelling')
471
print('Please install python-enchant.')
472
sys.exit(1)
0 commit comments