# HG changeset patch # User Gregory Szorc # Date 1450763055 28800 # Node ID 071af8d385a948d55eda862445e7be3a32a1dc05 # Parent ce3ae9ccd800fb081c35fd098dd6b5abe53048ef lsprofcalltree: use absolute_import diff -r ce3ae9ccd800 -r 071af8d385a9 mercurial/lsprofcalltree.py --- 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) diff -r ce3ae9ccd800 -r 071af8d385a9 tests/test-check-py3-compat.t --- 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