Skip to content

Commit f376ce2

Browse files
committed
Use relative imports
1 parent 2a9c6b5 commit f376ce2

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

‎language_check/main.py‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
import re
77
import sys
88

9-
import language_check.console_mode
9+
from . import get_build_date
10+
from . import get_version
11+
from . import LanguageTool
1012

1113

1214
def parse_args():
@@ -33,8 +35,8 @@ def parse_args():
3335
help='print results as XML')
3436
parser.add_argument('--version', action='version',
3537
version='LanguageTool {} ({})'
36-
.format(language_check.get_version(),
37-
language_check.get_build_date()),
38+
.format(get_version(),
39+
get_build_date()),
3840
help='show LanguageTool version and build date')
3941
parser.add_argument('-a', '--apply', action='store_true',
4042
help='automatically apply suggestions if available')
@@ -78,7 +80,7 @@ def main():
7880
else:
7981
encoding = args.encoding or 'utf-8'
8082

81-
lang_tool = language_check.LanguageTool(
83+
lang_tool = LanguageTool(
8284
motherTongue=args.mother_tongue)
8385
guess_language = None
8486

0 commit comments

Comments
 (0)