mercurial/__init__.py
author Gregory Szorc <gregory.szorc@gmail.com>
Sat, 21 Nov 2015 23:26:22 -0800
changeset 27061 9c75daf89450
parent 0 9117c6561b0b
child 27220 4374d819ccd5
permissions -rw-r--r--
lsprof: support PyPy (issue4573) PyPy's _lsprof module doesn't export a "profiler_entry" symbol. This patch treats the symbol as optional and falls back to verifying the attribute is present on the first entry in the collected data as part of validation. There is a chance not every entry will contain the requested sort attribute. But, this patch does unbust lsprof on PyPy for the hg commands I've tested, so I assume it is sufficient. It's certainly better than the ImportError we encountered before. As part of the import refactor, I snuck in the addition of absolute_import.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines: