[PATCH 07 of 10] tests: update test-notify to pass our import checker

Augie Fackler raf at durin42.com
Mon Aug 28 10:55:58 EDT 2017


# HG changeset patch
# User Augie Fackler <raf at durin42.com>
# Date 1503435527 14400
#      Tue Aug 22 16:58:47 2017 -0400
# Node ID c34b3b4fbd7ebb6094836b71896530a7281cf01c
# Parent  198590263d2e765f0ba50ec295962ca96d1d8313
tests: update test-notify to pass our import checker

diff --git a/tests/test-notify.t b/tests/test-notify.t
--- a/tests/test-notify.t
+++ b/tests/test-notify.t
@@ -1,6 +1,7 @@
   $ cat > $TESTTMP/filter.py <<EOF
-  > from __future__ import print_function
-  > import sys, re
+  > from __future__ import absolute_import, print_function
+  > import re
+  > import sys
   > print(re.sub("\n[ \t]", " ", sys.stdin.read()), end="")
   > EOF
 


More information about the Mercurial-devel mailing list