diff mercurial/lsprof.py @ 50952:18c8c18993f0

pycompat: drop usage of hasattr/getattr/setattr/delatt proxy The function remains to ease extensions transition, but we no longer use them in core.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 01 Sep 2023 00:09:55 +0200
parents 642e31cb55f0
children 99632adff795
line wrap: on
line diff
--- a/mercurial/lsprof.py	Thu Aug 31 23:56:15 2023 +0200
+++ b/mercurial/lsprof.py	Fri Sep 01 00:09:55 2023 +0200
@@ -1,8 +1,6 @@
 import _lsprof
 import sys
 
-from .pycompat import getattr
-
 Profiler = _lsprof.Profiler
 
 # PyPy doesn't expose profiler_entry from the module.