commit: fe727bdb6bbcb6225196fff026f3b0ecba8082e5
Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 21 01:12:45 2025 +0000
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Sun Dec 21 01:14:47 2025 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=fe727bdb
portage.util.path.get_fs_type(): omit open mode "r" for pyupgrade
Fixes: e35bd03a3d6c3e12aa14890a667ac81674da0fb0
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>
lib/portage/util/path.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/portage/util/path.py b/lib/portage/util/path.py
index 86902a6d6a..6191cfe49d 100644
--- a/lib/portage/util/path.py
+++ b/lib/portage/util/path.py
@@ -73,7 +73,7 @@ def get_fs_type_linux(path: str) -> Optional[str]:
best_match_len = -1
fs_type = None
- with open("/proc/mounts", "r") as f:
+ with open("/proc/mounts") as f:
for line in f:
parts = line.split()
mount_point = parts[1]