From patchwork Mon Aug 28 14:55:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [02,of,10] tests: update test-log-exthook to pass our import checker From: Augie Fackler X-Patchwork-Id: 23413 Message-Id: <87e153a77ff33905183c.1503932153@augie-macbookpro2.roam.corp.google.com> To: mercurial-devel@mercurial-scm.org Date: Mon, 28 Aug 2017 10:55:53 -0400 # HG changeset patch # User Augie Fackler # Date 1503435493 14400 # Tue Aug 22 16:58:13 2017 -0400 # Node ID 87e153a77ff33905183cd5491b753918d256c388 # Parent 8108120d81448c42f5727d74d692b5c922a402ad tests: update test-log-exthook to pass our import checker diff --git a/tests/test-log-exthook.t b/tests/test-log-exthook.t --- a/tests/test-log-exthook.t +++ b/tests/test-log-exthook.t @@ -2,8 +2,12 @@ Test hg log changeset printer external h ------------------------------------------- $ cat > $TESTTMP/logexthook.py < from mercurial import repair, commands - > from mercurial import cmdutil + > from __future__ import absolute_import + > from mercurial import ( + > cmdutil, + > commands, + > repair, + > ) > def rot13description(self, ctx): > summary = "summary".encode('rot13') > description = ctx.description().strip().splitlines()[0].encode('rot13')