mercurial/statprof.py
changeset 50929 18c8c18993f0
parent 50334 972f3e5c94b8
child 51173 933551630b0d
--- 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: