changeset 43088 | 0d612db7047c |
parent 43085 | eef9a2d67051 |
child 43104 | 74802979dd9d |
--- a/mercurial/statprof.py Sun Oct 06 14:58:42 2019 -0400 +++ b/mercurial/statprof.py Sun Oct 06 16:39:13 2019 -0400 @@ -168,7 +168,7 @@ # a float if frequency: self.sample_interval = 1.0 / frequency - elif not hasattr(self, 'sample_interval'): + elif not pycompat.hasattr(self, 'sample_interval'): # default to 1000 Hz self.sample_interval = 1.0 / 1000.0 else: