Mercurial > hg
comparison mercurial/lsprofcalltree.py @ 27505:071af8d385a9
lsprofcalltree: use absolute_import
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 21 Dec 2015 21:44:15 -0800 |
parents | beae42f3d93b |
children | 5a988b3c9645 |
comparison
equal
deleted
inserted
replaced
27504:ce3ae9ccd800 | 27505:071af8d385a9 |
---|---|
7 * Johan Dahlin | 7 * Johan Dahlin |
8 | 8 |
9 This software may be used and distributed according to the terms | 9 This software may be used and distributed according to the terms |
10 of the GNU General Public License, incorporated herein by reference. | 10 of the GNU General Public License, incorporated herein by reference. |
11 """ | 11 """ |
12 | |
13 from __future__ import absolute_import | |
12 | 14 |
13 def label(code): | 15 def label(code): |
14 if isinstance(code, str): | 16 if isinstance(code, str): |
15 return '~' + code # built-in functions ('~' sorts at the end) | 17 return '~' + code # built-in functions ('~' sorts at the end) |
16 else: | 18 else: |