Skip to content
Snippets Groups Projects
Commit eee437ff authored by Sébastien Helleu's avatar Sébastien Helleu
Browse files

Move ENCHANT_FOUND to have imports on top

parent cc166271
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -32,13 +32,12 @@ import sys
 
# enchant module is optional, spelling is checked on demand
# (argument -s/--spell)
ENCHANT_FOUND = False
try:
from enchant import Dict, DictWithPWL, DictNotFoundError
from enchant.checker import SpellChecker
ENCHANT_FOUND = True
except ImportError:
pass
ENCHANT_FOUND = False
 
from . utils import count_lines, replace_formatters
 
Loading
Loading
@@ -520,7 +519,6 @@ class PoCheck(object):
po_file.filename)]))
continue
# compile the file (except if disabled)
compile_output = ''
compile_rc = 0
if self.checks['compile']:
compile_output, compile_rc = po_file.compile()
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment