Skip to content

Commit 1618ce7

Browse files
committed
Use upper case for enchant constant
1 parent f5b73d7 commit 1618ce7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

msgcheck.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@
3333

3434
# enchant module is optional, spelling is checked on demand
3535
# (argument -s/--spell)
36-
enchant_found = False
36+
ENCHANT_FOUND = False
3737
try:
3838
import enchant
3939
from enchant.checker import SpellChecker
40-
enchant_found = True
40+
ENCHANT_FOUND = True
4141
except:
4242
pass
4343

@@ -466,7 +466,7 @@ def main():
466466

467467
# exit now with error if spelling was asked but python enchant module was
468468
# not found
469-
if args.spelling and not enchant_found:
469+
if args.spelling and not ENCHANT_FOUND:
470470
print('Error: "enchant" module was not found to check spelling')
471471
print('Please install python-enchant.')
472472
sys.exit(1)

0 commit comments

Comments
 (0)