lsprofcalltree: use absolute_import
authorGregory Szorc <gregory.szorc@gmail.com>
Mon, 21 Dec 2015 21:44:15 -0800
changeset 27505 071af8d385a9
parent 27504 ce3ae9ccd800
child 27506 e6d3dad71e44
lsprofcalltree: use absolute_import
mercurial/lsprofcalltree.py
tests/test-check-py3-compat.t
--- 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