mercurial/profiling.py
changeset 48946 642e31cb55f0
parent 48875 6000f5b25c9b
child 50929 18c8c18993f0
--- a/mercurial/profiling.py	Mon Feb 21 13:03:43 2022 -0700
+++ b/mercurial/profiling.py	Mon Feb 21 13:08:28 2022 -0700
@@ -173,7 +173,7 @@
         statprof.display(fp, data=data, format=displayformat, **kwargs)
 
 
-class profile(object):
+class profile:
     """Start profiling.
 
     Profiling is active when the context manager is active. When the context
@@ -231,7 +231,7 @@
                 self._fp = open(path, b'wb')
             elif pycompat.iswindows:
                 # parse escape sequence by win32print()
-                class uifp(object):
+                class uifp:
                     def __init__(self, ui):
                         self._ui = ui