diff mercurial/statprof.py @ 50929: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 972f3e5c94b8
children 933551630b0d
line wrap: on
line diff
--- a/mercurial/statprof.py	Thu Aug 31 23:56:15 2023 +0200
+++ b/mercurial/statprof.py	Fri Sep 01 00:09:55 2023 +0200
@@ -167,7 +167,7 @@
         # a float
         if frequency:
             self.sample_interval = 1.0 / frequency
-        elif not pycompat.hasattr(self, 'sample_interval'):
+        elif not hasattr(self, 'sample_interval'):
             # default to 1000 Hz
             self.sample_interval = 1.0 / 1000.0
         else: