changeset 27505:071af8d385a9

lsprofcalltree: use absolute_import
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 21 Dec 2015 21:44:15 -0800
parents ce3ae9ccd800
children e6d3dad71e44
files mercurial/lsprofcalltree.py tests/test-check-py3-compat.t
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/lsprofcalltree.py	Mon Dec 21 21:42:14 2015 -0800
+++ b/mercurial/lsprofcalltree.py	Mon Dec 21 21:44:15 2015 -0800
@@ -10,6 +10,8 @@
 of the GNU General Public License, incorporated herein by reference.
 """
 
+from __future__ import absolute_import
+
 def label(code):
     if isinstance(code, str):
         return '~' + code    # built-in functions ('~' sorts at the end)
--- a/tests/test-check-py3-compat.t	Mon Dec 21 21:42:14 2015 -0800
+++ b/tests/test-check-py3-compat.t	Mon Dec 21 21:44:15 2015 -0800
@@ -111,7 +111,6 @@
   mercurial/keepalive.py requires print_function
   mercurial/localrepo.py not using absolute_import
   mercurial/lsprof.py requires print_function
-  mercurial/lsprofcalltree.py not using absolute_import
   mercurial/lsprofcalltree.py requires print_function
   mercurial/mail.py requires print_function
   setup.py not using absolute_import