Patchwork tests: update test-convert-clonebranches to pass our import checker

login
register
mail settings
Submitter Augie Fackler
Date Aug. 25, 2017, 3:28 p.m.
Message ID <a7e8ce268f15dd160eff.1503674929@imladris.local>
Download mbox | patch
Permalink /patch/23344/
State Accepted
Headers show

Comments

Augie Fackler - Aug. 25, 2017, 3:28 p.m.
# HG changeset patch
# User Augie Fackler <raf@durin42.com>
# Date 1503431427 14400
#      Tue Aug 22 15:50:27 2017 -0400
# Node ID a7e8ce268f15dd160effdd476171467f84add1a1
# Parent  52b9e56c37c1e62ce338fc0f6cae1d50790186ce
tests: update test-convert-clonebranches to pass our import checker

Patch

diff --git a/tests/test-convert-clonebranches.t b/tests/test-convert-clonebranches.t
--- a/tests/test-convert-clonebranches.t
+++ b/tests/test-convert-clonebranches.t
@@ -31,7 +31,9 @@  Add a merge with one parent in the same 
 Miss perl... sometimes
 
   $ cat > filter.py <<EOF
-  > import sys, re
+  > from __future__ import absolute_import
+  > import re
+  > import sys
   > 
   > r = re.compile(r'^(?:\d+|pulling from)')
   > sys.stdout.writelines([l for l in sys.stdin if r.search(l)])