changeset 33917:078099304772

i18n: update check-translation script to pass import checker
author Augie Fackler <raf@durin42.com>
date Tue, 22 Aug 2017 14:14:52 -0400
parents 3595e4e0ae57
children 10f1809ab98f
files i18n/check-translation.py tests/test-check-py3-compat.t
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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