[PATCH 8 of 8] pager: use absolute_import

Augie Fackler raf at durin42.com
Mon Mar 7 23:19:47 EST 2016


On Wed, Mar 02, 2016 at 03:55:53PM -0600, timeless wrote:
> # HG changeset patch
> # User timeless <timeless at mozdev.org>
> # Date 1456955146 0
> #      Wed Mar 02 21:45:46 2016 +0000
> # Node ID 1cdfa3780bd5bca83afbea7bbc398327f053c08b
> # Parent  81dbf397b8df734d12247c0454d3f9b84cfe0967
> pager: use absolute_import
>

patches 1-6 are queued, but 7 and 8 need a resend. Thanks!

> diff --git a/hgext/pager.py b/hgext/pager.py
> --- a/hgext/pager.py
> +++ b/hgext/pager.py
> @@ -58,9 +58,21 @@
>    will also work).
>
>  '''
> +from __future__ import absolute_import
>
> -import atexit, sys, os, signal, subprocess
> -from mercurial import commands, dispatch, util, extensions, cmdutil
> +import atexit
> +import os
> +import signal
> +import subprocess
> +import sys
> +
> +from mercurial import (
> +    cmdutil,
> +    commands,
> +    dispatch,
> +    extensions,
> +    util,
> +)
>  from mercurial.i18n import _
>
>  # Note for extension authors: ONLY specify testedwith = 'internal' for
> diff --git a/tests/test-check-py3-compat.t b/tests/test-check-py3-compat.t
> --- a/tests/test-check-py3-compat.t
> +++ b/tests/test-check-py3-compat.t
> @@ -73,7 +73,6 @@
>    hgext/largefiles/wirestore.py not using absolute_import
>    hgext/mq.py not using absolute_import
>    hgext/notify.py not using absolute_import
> -  hgext/pager.py not using absolute_import
>    hgext/rebase.py not using absolute_import
>    hgext/share.py not using absolute_import
>    hgext/transplant.py not using absolute_import
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


More information about the Mercurial-devel mailing list