i18n: update check-translation script to pass import checker
authorAugie Fackler <raf@durin42.com>
Tue, 22 Aug 2017 14:14:52 -0400
changeset 33899 078099304772
parent 33898 3595e4e0ae57
child 33900 10f1809ab98f
i18n: update check-translation script to pass import checker
i18n/check-translation.py
tests/test-check-py3-compat.t
--- a/i18n/check-translation.py	Tue Aug 22 14:14:34 2017 -0400
+++ b/i18n/check-translation.py	Tue Aug 22 14:14:52 2017 -0400
@@ -1,9 +1,11 @@
 #!/usr/bin/env python
 #
 # check-translation.py - check Mercurial specific translation problems
+from __future__ import absolute_import
+
+import re
 
 import polib
-import re
 
 scanners = []
 checkers = []
--- a/tests/test-check-py3-compat.t	Tue Aug 22 14:14:34 2017 -0400
+++ b/tests/test-check-py3-compat.t	Tue Aug 22 14:14:52 2017 -0400
@@ -19,7 +19,6 @@
   contrib/python-zstandard/tests/test_estimate_sizes.py not using absolute_import
   contrib/python-zstandard/tests/test_module_attributes.py not using absolute_import
   contrib/python-zstandard/tests/test_train_dictionary.py not using absolute_import
-  i18n/check-translation.py not using absolute_import
   setup.py not using absolute_import
   tests/test-demandimport.py not using absolute_import