Patchwork [2,of,2,v2,pager] pager: use absolute_import

login
register
mail settings
Submitter Augie Fackler
Date Feb. 29, 2016, 10:32 p.m.
Message ID <49fdc159cde121f28896.1456785157@augie-macbookair2.roam.corp.google.com>
Download mbox | patch
Permalink /patch/13476/
State Superseded
Commit 63c2864af25fba69925545093b75014cbbf644e2
Delegated to: Yuya Nishihara
Headers show

Comments

Augie Fackler - Feb. 29, 2016, 10:32 p.m.
# HG changeset patch
# User Augie Fackler <augie@google.com>
# Date 1456715700 18000
#      Sun Feb 28 22:15:00 2016 -0500
# Node ID 49fdc159cde121f28896e9e96ff6b0d736d0abde
# Parent  d1857f4d298d40f553805cf3ee5ac02409069e75
# EXP-Topic pager
pager: use absolute_import

Patch

diff --git a/hgext/pager.py b/hgext/pager.py
--- a/hgext/pager.py
+++ b/hgext/pager.py
@@ -58,9 +58,21 @@  you can use --pager=<value>::
   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/patchbomb.py not using absolute_import
   hgext/purge.py not using absolute_import
   hgext/rebase.py not using absolute_import