contrib/memory.py
changeset 52656 3e84e001b6c1
parent 48875 6000f5b25c9b
--- a/contrib/memory.py	Mon Jan 06 01:44:46 2025 -0500
+++ b/contrib/memory.py	Tue Jan 07 17:28:46 2025 -0500
@@ -15,7 +15,7 @@
 def memusage(ui):
     """Report memory usage of the current process."""
     result = {'peak': 0, 'rss': 0}
-    with open('/proc/self/status', 'r') as status:
+    with open('/proc/self/status') as status:
         # This will only work on systems with a /proc file system
         # (like Linux).
         for line in status: