[PATCH 01 of 10] tests: update test-patchbomb to pass our import checker
Augie Fackler
raf at durin42.com
Mon Aug 28 15:27:29 UTC 2017
# HG changeset patch
# User Augie Fackler <raf at durin42.com>
# Date 1503435546 14400
# Tue Aug 22 16:59:06 2017 -0400
# Node ID 9bf8bd287bbf25b615a74cb6a47cce9c33bace4a
# Parent b1f75d8e887a4c06e6b120807f3defc5c7b78d33
tests: update test-patchbomb to pass our import checker
diff --git a/tests/test-patchbomb.t b/tests/test-patchbomb.t
--- a/tests/test-patchbomb.t
+++ b/tests/test-patchbomb.t
@@ -9,18 +9,19 @@ Mercurial-patchbomb/.* -> Mercurial-patc
--===+[0-9]+=+$ -> --===*= (glob)
$ cat > prune-blank-after-boundary.py <<EOF
+ > from __future__ import absolute_import, print_function
> import sys
> skipblank = False
> trim = lambda x: x.strip(' \r\n')
> for l in sys.stdin:
> if trim(l).endswith('=--') or trim(l).endswith('=='):
> skipblank = True
- > print l,
+ > print(l, end='')
> continue
> if not trim(l) and skipblank:
> continue
> skipblank = False
- > print l,
+ > print(l, end='')
> EOF
$ FILTERBOUNDARY="$PYTHON `pwd`/prune-blank-after-boundary.py"
$ echo "[format]" >> $HGRCPATH
More information about the Mercurial-devel
mailing list